From cd6e1780b21f01990cec27a10fe65769bcf84dcc Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期二, 25 十一月 2025 14:16:22 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs"
index fa185a4..4797f8c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundPickingService.cs"
@@ -1581,7 +1581,10 @@
                 if (outboundOrder.OrderStatus != newStatus)
                 {
                     await _outboundOrderService.Db.Updateable<Dt_OutboundOrder>()
-                        .SetColumns(x => x.OrderStatus == newStatus)
+                        .SetColumns( x=> new Dt_OutboundOrder {
+                             OrderStatus = newStatus,
+                             Operator = App.User.UserName,
+                         })
                         .Where(x => x.OrderNo == orderNo)
                         .ExecuteCommandAsync();
 
@@ -1629,8 +1632,12 @@
 
                 if (outboundOrder.OrderStatus != newStatus)
                 {
-                    await _outboundOrderService.Db.Updateable<Dt_OutboundOrder>()
-                        .SetColumns(x => x.OrderStatus == newStatus)
+                    await _outboundOrderService.Db.Updateable<Dt_OutboundOrder>()                       
+                          .SetColumns(x => new Dt_OutboundOrder
+                          {
+                              OrderStatus = newStatus,
+                              Operator = App.User.UserName,
+                          })
                         .Where(x => x.OrderNo == orderNo)
                         .ExecuteCommandAsync();
 
@@ -1702,8 +1709,13 @@
                         .Where(x => x.OrderId == outboundOrder.Id)
                         .ExecuteCommandAsync();
 
-                    await _outboundOrderService.Db.Updateable<Dt_OutboundOrder>()
-                        .SetColumns(x => x.ReturnToMESStatus == 1)
+                    await _outboundOrderService.Db.Updateable<Dt_OutboundOrder>()                        
+                          .SetColumns(x => new Dt_OutboundOrder
+                          {
+                              ReturnToMESStatus = 1,
+                              Operator = App.User.UserName,
+                          })
+
                         .Where(x => x.OrderNo == orderNo)
                         .ExecuteCommandAsync();
                 }
@@ -1845,6 +1857,7 @@
             if (outboundOrder != null && allCompleted && outboundOrder.OrderStatus != (int)OutOrderStatusEnum.鍑哄簱瀹屾垚)
             {
                 outboundOrder.OrderStatus = (int)OutOrderStatusEnum.鍑哄簱瀹屾垚;
+                outboundOrder.Operator = App.User.UserName;
                 await _outboundOrderService.Db.Updateable(outboundOrder).ExecuteCommandAsync();
 
                 _logger.LogInformation($"璁㈠崟 {orderNo} 宸叉爣璁颁负鍑哄簱瀹屾垚");

--
Gitblit v1.9.3