GP12修改
This commit is contained in:
@@ -146,7 +146,7 @@ namespace ZR.Admin.WebApi.Controllers
|
|||||||
return SUCCESS(response);
|
return SUCCESS(response);
|
||||||
}catch(Exception ex)
|
}catch(Exception ex)
|
||||||
{
|
{
|
||||||
return SUCCESS("请刷新页面");
|
return SUCCESS("请刷新页面,错误代码:" + ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,12 +145,20 @@ namespace ZR.Service.Business
|
|||||||
{
|
{
|
||||||
List<QcGp12AlterationDefectDto> defectList = new();
|
List<QcGp12AlterationDefectDto> defectList = new();
|
||||||
var predicate = Expressionable.Create<QcGp12BaseDefect>().And(it => it.Status == "1");
|
var predicate = Expressionable.Create<QcGp12BaseDefect>().And(it => it.Status == "1");
|
||||||
List<string> groupList = Context
|
/*List<string> groupList = Context
|
||||||
.Queryable<QcGp12BaseDefect>()
|
.Queryable<QcGp12BaseDefect>()
|
||||||
.Where(predicate.ToExpression())
|
.Where(predicate.ToExpression())
|
||||||
.GroupBy(it => it.Group)
|
.GroupBy(it => it.Group)
|
||||||
.Select(it => it.Group)
|
.Select(it => it.Group)
|
||||||
.ToList();
|
.ToList();*/
|
||||||
|
List<string> groupList = new()
|
||||||
|
{
|
||||||
|
"油漆",
|
||||||
|
"设备",
|
||||||
|
"毛坯",
|
||||||
|
"程序",
|
||||||
|
"班组操作"
|
||||||
|
};
|
||||||
foreach (string group in groupList)
|
foreach (string group in groupList)
|
||||||
{
|
{
|
||||||
QcGp12AlterationDefectDto defectDto = new();
|
QcGp12AlterationDefectDto defectDto = new();
|
||||||
@@ -180,12 +188,20 @@ namespace ZR.Service.Business
|
|||||||
.Create<QcGp12BaseDefect>()
|
.Create<QcGp12BaseDefect>()
|
||||||
.And(it => it.Type == "打磨")
|
.And(it => it.Type == "打磨")
|
||||||
.And(it => it.Status == "1");
|
.And(it => it.Status == "1");
|
||||||
List<string> groupList = Context
|
/* List<string> groupList = Context
|
||||||
.Queryable<QcGp12BaseDefect>()
|
.Queryable<QcGp12BaseDefect>()
|
||||||
.Where(predicate.ToExpression())
|
.Where(predicate.ToExpression())
|
||||||
.GroupBy(it => it.Group)
|
.GroupBy(it => it.Group)
|
||||||
.Select(it => it.Group)
|
.Select(it => it.Group)
|
||||||
.ToList();
|
.ToList();*/
|
||||||
|
List<string> groupList = new()
|
||||||
|
{
|
||||||
|
"油漆",
|
||||||
|
"设备",
|
||||||
|
"毛坯",
|
||||||
|
"程序",
|
||||||
|
"班组操作"
|
||||||
|
};
|
||||||
foreach (string group in groupList)
|
foreach (string group in groupList)
|
||||||
{
|
{
|
||||||
QcGp12AlterationDefectDto defectDto = new();
|
QcGp12AlterationDefectDto defectDto = new();
|
||||||
|
|||||||
Reference in New Issue
Block a user