From 00a72fff219241eb5b0405a066cc859d07cf7735 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 17 九月 2025 10:23:44 +0800
Subject: [PATCH] 1111

---
 service/Wom/MesWorkProdManager.cs |   35 ++++++++++++++++++-----------------
 1 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/service/Wom/MesWorkProdManager.cs b/service/Wom/MesWorkProdManager.cs
index 4f00f5a..07d18e1 100644
--- a/service/Wom/MesWorkProdManager.cs
+++ b/service/Wom/MesWorkProdManager.cs
@@ -81,9 +81,10 @@
         }
 
         // 5. 妫�鏌ユ潯鐮佹槸鍚﹂噸澶嶆壂鎻�
-        var exists = Db.Queryable<MesWorkProd, MesWorkProdCDetails>((a, b) =>
-                new JoinQueryInfos(JoinType.Inner,
-                    a.Id == b.MesWorkProdId))
+        var exists = Db.Queryable<MesWorkProd, MesWorkProdCDetails>(
+                (a, b) =>
+                    new JoinQueryInfos(JoinType.Inner,
+                        a.Id == b.MesWorkProdId))
             .Where((a, b) => b.ItemBarcode == request.ItemBarcode
                              && a.BillTypeId == billTypeId
                              && a.TransactionNo == transactionNo)
@@ -93,10 +94,10 @@
             throw new Exception("鏉$爜閲嶅鎵弿锛岃鏍稿锛�");
 
         // 6. 鑾峰彇宸叉姤宸ユ暟閲�
-        var reportedQty = Db
-            .Queryable<MesWorkProd, MesWorkProdCDetails>((a, b) =>
-                new JoinQueryInfos(JoinType.Inner,
-                    a.BillNo == b.BillNo))
+        var reportedQty = Db.Queryable<MesWorkProd, MesWorkProdCDetails>(
+                (a, b) =>
+                    new JoinQueryInfos(JoinType.Inner,
+                        a.BillNo == b.BillNo))
             .Where((a, b) => a.BillTypeId == billTypeId
                              && a.TransactionNo == transactionNo
                              && a.TaskNo == barcode.BillNo)
@@ -208,18 +209,18 @@
 
                 // 13. 鏇存柊宸ュ崟宸叉姤宸ユ暟閲�
                 db.Updateable<Womdaa>()
-                    .SetColumns(x => new Womdaa
-                    {
-                        Daa011 = (x.Daa011 ?? 0) + (int)barcode.Quantity
-                    })
-                    .Where(x => x.Daa001 == barcode.BillNo)
-                    .ExecuteCommand();
+                        .SetColumns(x => new Womdaa
+                        {
+                            Daa011 = (x.Daa011 ?? 0) + (int)barcode.Quantity
+                        })
+                        .Where(x => x.Daa001 == barcode.BillNo)
+                        .ExecuteCommand();
 
                 // 14. 閲嶆柊鑾峰彇鏈�鏂板凡鎶ュ伐鏁伴噺
-                reportedQty = db
-                    .Queryable<MesWorkProd, MesWorkProdCDetails>((a, b) =>
-                        new JoinQueryInfos(JoinType.Inner,
-                            a.BillNo == b.BillNo))
+                reportedQty = db.Queryable<MesWorkProd, MesWorkProdCDetails>(
+                        (a, b) =>
+                            new JoinQueryInfos(JoinType.Inner,
+                                a.BillNo == b.BillNo))
                     .Where((a, b) => a.BillTypeId == billTypeId
                                      && a.TransactionNo == transactionNo
                                      && a.TaskNo == barcode.BillNo)

--
Gitblit v1.9.3