From 38a8b2931abd72ee04285794aacbea7ed7c49228 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期二, 13 五月 2025 17:06:43 +0800
Subject: [PATCH] 抽检合格回库/不合格移库开发完成

---
 Controllers/DebugController.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Controllers/DebugController.cs b/Controllers/DebugController.cs
index 04585b2..90a1f58 100644
--- a/Controllers/DebugController.cs
+++ b/Controllers/DebugController.cs
@@ -29,7 +29,7 @@
         {
             return DebugService.AgvSeriesReports(model);
         }
-
+            
         /// <summary>
         /// 鍒濆鍖栨暟鎹簱
         /// </summary>
@@ -105,13 +105,13 @@
                         }
                     }
 
-                    var cgDetail = db.Queryable<TN_CG_Detail>().First(a => a.S_CNTR_CODE == model.CntId && a.S_CG_ID == model.CgId);
+                    var cgDetail = db.Queryable<TN_CG_Detail>().First(a => a.S_CNTR_CODE == model.CntId && a.S_ITEM_CODE == model.ItemCode);
                     if (cgDetail == null) {
                         var locList = new List<TN_CG_Detail>();
-                        locList.Add(new TN_CG_Detail { S_CNTR_CODE = model.CntId, S_CG_ID = model.CntId });
+                        locList.Add(new TN_CG_Detail { S_CNTR_CODE = model.CntId, S_ITEM_CODE = model.ItemCode });
                         if (db.Insertable<TN_CG_Detail>(locList).ExecuteCommand() <= 0) {
                             tran.RollbackTran();
-                            return $"鎻掑叆鎵樼洏鐗╂枡鍏崇郴{model.CntId}-{model.CgId}澶辫触";
+                            return $"鎻掑叆鎵樼洏鐗╂枡鍏崇郴{model.CntId}-{model.ItemCode}澶辫触";
                         }
                     }
 
@@ -127,7 +127,7 @@
     }
 
     public class CgInfo {
-        public string CgId { get; set; }
+        public string ItemCode { get; set; }
         public string CntId { get; set; }
         public string LocId { get; set; }
     }

--
Gitblit v1.9.1