From be438dd071400936c44a1425ec8d886f63c83329 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期五, 11 七月 2025 14:33:08 +0800
Subject: [PATCH] 1

---
 WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs b/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs
index 0320ea4..a9cfe66 100644
--- a/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs
+++ b/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs
@@ -46,7 +46,7 @@
 
         public IInboundOrderRepository Repository => BaseDal;
 
-        public InboundOrderService(IInboundOrderRepository BaseDal, IMapper mapper, IBasicService basicService,IBasicRepository basicRepository, IInboundRepository inboundRepository, IUnitOfWorkManage unitOfWorkManage, ITaskRepository taskRepository, IStockService stockService, IInboundOrderDetailService inboundOrderDetailService, IInboundOrder_HtyService inboundOrderHtyService, IInboundOrderDetail_HtyService inboundOrderDetail_HtyService) : base(BaseDal)
+        public InboundOrderService(IInboundOrderRepository BaseDal, IMapper mapper, IBasicService basicService, IBasicRepository basicRepository, IInboundRepository inboundRepository, IUnitOfWorkManage unitOfWorkManage, ITaskRepository taskRepository, IStockService stockService, IInboundOrderDetailService inboundOrderDetailService, IInboundOrder_HtyService inboundOrderHtyService, IInboundOrderDetail_HtyService inboundOrderDetail_HtyService) : base(BaseDal)
         {
             _mapper = mapper;
             _unitOfWorkManage = unitOfWorkManage;
@@ -118,7 +118,6 @@
                     {
                         Dt_InboundOrderDetail orderDetail = new Dt_InboundOrderDetail()
                         {
-                            OrderId = inboundOrderOld.Id,
                             MaterielCode = item.MaterielCode,
                             BatchNo = item.BatchNo,
                             OrderQuantity = item.OrderQuantity,
@@ -126,13 +125,15 @@
                             OverInQuantity = 0,
                             OrderDetailStatus = OrderDetailStatusEnum.New.ObjToInt(),
                             LinId = item.LinId,
-                            LPNNo=item.LPN_No,
+                            LPNNo = item.LPN_No,
                             MaterielName = item.MaterielName,
-                            MaterieSpec = item.MaterieSpec
+                            MaterieSpec = item.MaterieSpec,
+                            Creater = "涓婃父WMS"
                         };
 
                         Dt_InboundOrder inboundOrder = new Dt_InboundOrder()
                         {
+                            OrderNo = model.AsnNo,
                             UpperOrderNo = model.AsnNo,
                             WarehouseId = warehouse.WarehouseId,
                             //SupplierId = "",
@@ -142,6 +143,7 @@
                             TransactionCode = model.TransactionCode,
                             InoutType = model.OrderType,
                             OrderType = model.InoutType.ObjToInt(),
+                            Creater = "涓婃父WMS",
                             Details = new List<Dt_InboundOrderDetail> { orderDetail }
                         };
                         //switch (model.OrderType)//鍗曟嵁绫诲瀷

--
Gitblit v1.9.3