From 78456b712df7ed58cb43ea980395a07c502a356a Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期二, 08 七月 2025 17:49:22 +0800
Subject: [PATCH] 销售退货 退货组织,收料通的单创建人

---
 StandardInterface/MES.Service/service/QC/LljService.cs |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/StandardInterface/MES.Service/service/QC/LljService.cs b/StandardInterface/MES.Service/service/QC/LljService.cs
index f396676..29de55e 100644
--- a/StandardInterface/MES.Service/service/QC/LljService.cs
+++ b/StandardInterface/MES.Service/service/QC/LljService.cs
@@ -66,8 +66,8 @@
                      || a.ItemModel.ToLower()
                         .Contains(queryObj.SearchValue.ToLower()))
           //  .OrderByDescending((a, b,
-            .OrderBy ((a, b,
-                    e, f, g, i) => a.Id)
+            
+            .OrderBy ((a, b,e, f, g, i) => a.Id)
             //.Select((a, b,
             //        e, f, g, i) => new LtsLlj
             //        {
@@ -682,6 +682,7 @@
             return db.Updateable<MesQaItemsDetect01>()
                 .SetColumns(it =>
                     it.FngDesc == dto.Remarks) //SetColumns鏄彲浠ュ彔鍔犵殑 鍐�2涓氨2涓瓧娈佃祴鍊�
+                .SetColumns(it => it.PHSY == dto.PHSY)//鐮村潖瀹為獙鏁�
                 .Where(it => it.ReleaseNo == dto.releaseNo)
                 .ExecuteCommand();
         });
@@ -693,13 +694,11 @@
         return SqlSugarHelper.UseTransactionWithOracle(db =>
         {
             return db.Updateable<MesQaItemsDetectDetail5>()
-                 .SetColumns(it =>
-                     it.Funit == dto.Remarks) //SetColumns鏄彲浠ュ彔鍔犵殑 鍐�2涓氨2涓瓧娈佃祴鍊�
-                .Where(it => it.Id == dto.pid)
-                .ExecuteCommand();
-            return db.Updateable<MesQaItemsDetectDetail5>()
-                 .SetColumns(it =>
-                     it.Meom == dto.Meom) 
+                .SetColumns(it => new MesQaItemsDetectDetail5
+                {
+                    Funit = dto.Remarks,
+                    Meom = dto.Meom
+                })
                 .Where(it => it.Id == dto.pid)
                 .ExecuteCommand();
         });

--
Gitblit v1.9.3