From 5f3129c47cc8d3aa9ddffb2c468d908f2416e544 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期二, 27 八月 2024 11:02:12 +0800
Subject: [PATCH] 修改MES接口问题

---
 Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs |   49 +++++++++++++++++++++++--------------------------
 1 files changed, 23 insertions(+), 26 deletions(-)

diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
index f671968..61a35d6 100644
--- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
+++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
@@ -41,7 +41,7 @@
         /// </summary>
         /// <param name="model"></param>
         /// <returns></returns>
-        public bool ErpAddExportNotice(SoInfo model)
+        public void HttpAddExportNotice(SoInfo model)
         {
             try
             {
@@ -226,7 +226,7 @@
                         SONo = billNo,
                         Type = model.SoType,
                         Status = "0",
-                        Origin = "WMS",
+                        Origin = model.Origin,
                         CustomerNo = model.Customer,
                         CustomerName = customer.CustomerName,
                         LogisticsId = logisticsId,
@@ -242,12 +242,10 @@
 
                     if (n <= 0 || m <= 0)
                     {
-                        Db.RollbackTran();
-                        return false;
+                        throw new Exception("鍏ュ簱鍗曟垨鏄庣粏娣诲姞淇濆瓨澶辫触");
                     }
                     Db.CommitTran();
-                    return true;
-
+                    
                 }
                 catch (Exception ex)
                 {
@@ -259,7 +257,6 @@
             }
             catch (Exception ex)
             {
-                Db.RollbackTran();
                 throw new Exception(ex.Message);
             }
         }
@@ -363,31 +360,31 @@
                     .LeftJoin<SysUserInfor>((a, b, c, d, e) => a.CheckUser == e.Id)
                     .Select((a, b, c, d, e) => new ExportNoticeDto()
                     {
-                        Id = a.Id,
-                        SONo = a.SONo,
-                        Type = a.Type,
-                        Status = a.Status,
-                        Origin = a.Origin,
-                        CustomerNo = a.CustomerNo,
-                        CustomerName = a.CustomerName,
-                        LotNo = a.LotNo,
-                        LotText = a.LotText,
-                        SupplierLot = a.SupplierLot,
-                        LogisticsId = a.LogisticsId,
+                        //Id = a.Id,
+                        //SONo = a.SONo,
+                        //Type = a.Type,
+                        //Status = a.Status,
+                        //Origin = a.Origin,
+                        //CustomerNo = a.CustomerNo,
+                        //CustomerName = a.CustomerName,
+                        //LotNo = a.LotNo,
+                        //LotText = a.LotText,
+                        //SupplierLot = a.SupplierLot,
+                        //LogisticsId = a.LogisticsId,
                         LogisticsName = b.CarrierName,
-                        IsWave = a.IsWave,
-                        WaveNo = a.WaveNo,
-                        IsDespatch = a.IsDespatch,
-                        Demo = a.Demo,
+                        //IsWave = a.IsWave,
+                        //WaveNo = a.WaveNo,
+                        //IsDespatch = a.IsDespatch,
+                        //Demo = a.Demo,
 
                         CreateUserName = c.RealName,
                         UpdateUserName = c.RealName,
-                        CreateTime = a.CreateTime,
-                        UpdateTime = a.UpdateTime,
+                        //CreateTime = a.CreateTime,
+                        //UpdateTime = a.UpdateTime,
 
                         CheckUserName = e.RealName,
-                        CheckTime = a.CheckTime
-                    })
+                        //CheckTime = a.CheckTime
+                    },true)
                     .OrderByDescending(a => a.CreateTime)
                     .ToOffsetPage(page, limit, ref total);
                 count = total;

--
Gitblit v1.8.0