From 6c4d7a01e69e24615e13c331865ae4d2c7d15364 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 19 二月 2025 08:23:58 +0800 Subject: [PATCH] 1.补料单优化 2.工单优化 --- service/QC/LljService.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/service/QC/LljService.cs b/service/QC/LljService.cs index e6be715..b4f51a4 100644 --- a/service/QC/LljService.cs +++ b/service/QC/LljService.cs @@ -26,11 +26,12 @@ .WhereIF( StringUtil.IsNotNullOrEmpty(queryObj.result) && "鏈畬鎴�".Equals(queryObj.result), - a => (a.FcheckResu ?? "") == "") + a => (a.STATUS ?? "") != "宸叉彁浜�") + //a => (a.FcheckResu ?? "") == ""|| (a.FcheckResu ?? "") == "妫�楠屼腑") .WhereIF( StringUtil.IsNotNullOrEmpty(queryObj.result) && !"鏈畬鎴�".Equals(queryObj.result), - a => (a.FcheckResu ?? "") != "") + a => (a.STATUS ?? "") == "宸叉彁浜�") .WhereIF(UtilityHelper.CheckGuid(parsedGuid), a => a.guid == parsedGuid) .OrderByDescending(a => a.CreateDate) @@ -313,6 +314,7 @@ commit += db.Updateable<MesQaItemsDetectDetail5>() .SetColumns(s => s.FcheckResu == result) .SetColumns(s => s.FenterQty == count) + .SetColumns(s => s.FngRate == (s.CheckQyt == 0 ? (decimal?)null : (decimal?)(Convert.ToDouble(noCount) / Convert.ToDouble(count)))) .Where(s => s.Guid == detail.ParentGuid) .ExecuteCommand(); -- Gitblit v1.9.3