From f02d3a8ffc05a10a64859b2a16d5d43c8abb0fb9 Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期一, 23 三月 2026 11:13:36 +0800
Subject: [PATCH] 北京回长沙的最终版

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/Container/Partial/VV_ContainerInfoService.cs |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/Container/Partial/VV_ContainerInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/Container/Partial/VV_ContainerInfoService.cs"
index e5633ef..44939d0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/Container/Partial/VV_ContainerInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/Container/Partial/VV_ContainerInfoService.cs"
@@ -308,6 +308,20 @@
                           CommonFunction.ChangeLocationState(locationinfo, locationState);
                           Dt_taskinfo taskinfo = new Dt_taskinfo();
                           //琛ㄧず灏嗚酱鎵垮嚭鍒板叆搴撳彛
+                          try
+                          {
+                              if (item.containerdtl_goodsCode != null && item.containerdtl_goodsCode != "")
+                              {
+                                  taskinfo.task_sn = item.containerdtl_goodsCode;
+                              }
+                          }
+                          catch (Exception)
+                          {
+
+                              throw;
+                          }
+                          
+
                           if (workStation == "20101")
                           {
                               string target = CommonFunction.GetOutboundAddress(general_Info, locationinfo.location_layer);
@@ -330,6 +344,7 @@
                               taskinfo.task_createtime = DateTime.Now;
                               taskinfo.task_materielType = item.containerdtl_type;
                               taskinfo.task_weight = item.containerdtl_goodsWeight;
+                              
                           }
                           else
                           {
@@ -848,9 +863,9 @@
                         Dt_locationinfoRepository.Instance.Update(locationinfo, true);
 
                         // 鏇存敼娴嬮噺鍑哄簱鐨勭姸鎬佷负涓烘祴閲�
-                        Dt_container_detail dt_container_detail = Dt_container_detailRepository.Instance.FindFirst(x => x.containerdtl_barcode == containerInfo.containerdtl_barcode);
-                        dt_container_detail.containerdtl_text1 = "鏈祴閲�";
-                        Dt_container_detailRepository.Instance.Update(dt_container_detail, true);
+                        //Dt_container_detail dt_container_detail = Dt_container_detailRepository.Instance.FindFirst(x => x.containerdtl_barcode == containerInfo.containerdtl_barcode);
+                        //dt_container_detail.containerdtl_text1 = "鏈祴閲�";
+                        //Dt_container_detailRepository.Instance.Update(dt_container_detail, true);
 
                         string target = CommonFunction.GetInboundAddress(general_Info, locationinfo.location_layer);
                         //鐢熸垚WMS浠诲姟

--
Gitblit v1.9.3