GP12修改

This commit is contained in:
2025-02-22 14:28:28 +08:00
parent e7cff07b8a
commit d3d44882b3
2 changed files with 21 additions and 5 deletions

View File

@@ -146,7 +146,7 @@ namespace ZR.Admin.WebApi.Controllers
return SUCCESS(response);
}catch(Exception ex)
{
return SUCCESS("请刷新页面");
return SUCCESS("请刷新页面,错误代码:" + ex.Message);
}
}

View File

@@ -145,12 +145,20 @@ namespace ZR.Service.Business
{
List<QcGp12AlterationDefectDto> defectList = new();
var predicate = Expressionable.Create<QcGp12BaseDefect>().And(it => it.Status == "1");
List<string> groupList = Context
/*List<string> groupList = Context
.Queryable<QcGp12BaseDefect>()
.Where(predicate.ToExpression())
.GroupBy(it => it.Group)
.Select(it => it.Group)
.ToList();
.ToList();*/
List<string> groupList = new()
{
"油漆",
"设备",
"毛坯",
"程序",
"班组操作"
};
foreach (string group in groupList)
{
QcGp12AlterationDefectDto defectDto = new();
@@ -180,12 +188,20 @@ namespace ZR.Service.Business
.Create<QcGp12BaseDefect>()
.And(it => it.Type == "打磨")
.And(it => it.Status == "1");
List<string> groupList = Context
/* List<string> groupList = Context
.Queryable<QcGp12BaseDefect>()
.Where(predicate.ToExpression())
.GroupBy(it => it.Group)
.Select(it => it.Group)
.ToList();
.ToList();*/
List<string> groupList = new()
{
"油漆",
"设备",
"毛坯",
"程序",
"班组操作"
};
foreach (string group in groupList)
{
QcGp12AlterationDefectDto defectDto = new();