From 3ab68d4877acffcb9677ecf369e15210e5db6981 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期一, 28 四月 2025 17:03:08 +0800
Subject: [PATCH] 一些更改

---
 Tiger.Business.WMS/Common/WmsTask.cs |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/Tiger.Business.WMS/Common/WmsTask.cs b/Tiger.Business.WMS/Common/WmsTask.cs
index 518fb91..3b052c8 100644
--- a/Tiger.Business.WMS/Common/WmsTask.cs
+++ b/Tiger.Business.WMS/Common/WmsTask.cs
@@ -769,22 +769,27 @@
         /// <summary>
         /// 璁剧疆褰撳墠鐗╂枡鐨勯粯璁ゅ偍浣�
         /// </summary>
-        public ApiAction<ScanOutput> SetDefaultLocation(DbClient db, BAS_ITEM Item, WMS_LOCATION location)
+        public ApiAction<ScanOutput> SetDefaultLocation(DbClient db, BAS_ITEM Item, WMS_LOCATION location, long RcvLineId)
         {
             var action = new ApiAction<ScanOutput>(new ScanOutput());
 
             //璋冪敤璁剧疆榛樿鍌ㄤ綅鎺ュ彛
-            //var iInput = new CreateRcvLineLocationInput
-            //{
-
-            //};
-            //var result = await DI.Resolve<IWMS_U9C>().CreateRcvLineLocation(iInput);
-            //if (!result.IsSuccessed)
-            //{
-            //    action.IsSuccessed = false;
-            //    action.LocaleMsg = result.LocaleMsg;
-            //}
-            //else
+            var iInput = new CreateRcvLineLocationInput
+            {
+                IsLogin = true,
+                RcvLineLocationParam = new()
+                {
+                    RcvLineId = RcvLineId,
+                    BinCode = location.LOCATION_CODE,
+                }
+            };
+            var result =  DI.Resolve<IWMS_U9C>().CreateRcvLineLocation(iInput).Result;
+            if (!result.IsSuccessed)
+            {
+                action.IsSuccessed = false;
+                action.LocaleMsg = result.LocaleMsg;
+            }
+            else
             {
                 Item.DEFAULT_LOCATION = location.LOCATION_CODE;
                 db.Updateable(Item, UserCode).UpdateColumns(q => new { q.DEFAULT_LOCATION, q.UPDATE_TIME, q.UPDATE_USER }).ExecuteCommand();

--
Gitblit v1.9.3