From bf780b6c83012b5beb3d7515b8fb61753c5fb736 Mon Sep 17 00:00:00 2001
From: sjz <1240968267@qq.com>
Date: 星期四, 26 六月 2025 08:48:37 +0800
Subject: [PATCH] 采购承诺交期改string类型

---
 MES.Service/service/BasicData/MesCustomerManager.cs |   27 +++++++++++----------------
 1 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/MES.Service/service/BasicData/MesCustomerManager.cs b/MES.Service/service/BasicData/MesCustomerManager.cs
index b89d003..29d3864 100644
--- a/MES.Service/service/BasicData/MesCustomerManager.cs
+++ b/MES.Service/service/BasicData/MesCustomerManager.cs
@@ -2,6 +2,7 @@
 using MES.Service.Dto.webApi;
 using MES.Service.Modes;
 using SqlSugar;
+using System.ComponentModel.DataAnnotations;
 
 namespace MES.Service.service.BasicData;
 
@@ -56,13 +57,11 @@
                 switch (customerGroup.Key)
                 {
                     case "0":
-                        if (!UpdateCustomerStatusBatch(db, customerGroup.Value,
-                                "A"))
+                        if (!UpdateCustomerStatusBatch(db, customerGroup.Value,"A"))
                             throw new NotImplementedException("鍚敤澶辫触");
                         break;
                     case "1":
-                        if (!UpdateCustomerStatusBatch(db, customerGroup.Value,
-                                "B"))
+                        if (!UpdateCustomerStatusBatch(db, customerGroup.Value,"B"))
                             throw new NotImplementedException("绂佺敤澶辫触");
                         break;
                     case "2":
@@ -120,26 +119,22 @@
 
     private MesCustomer GetSysDepartment(ErpCustomer customer)
     {
-
-        //ERP鍌宠几鐨勬帴鍙f暩鎿氳綁鎻涚偤MES鏁告摎搴瓧娈�
-
         return new MesCustomer
         {
             Id = Convert.ToDecimal(customer.Id),
             CustNo = customer.FNumber,
             CustSname = customer.FShortName,
             CustName = customer.FName,
-            Anred = customer.Fcontact,
-            Telf1 = customer.Fmobilephone,
-            Fseller = customer.Fseller,
+            Anred = customer.FtContact,
+            Telf1 = customer.FMobilephone,
+            Fseller = customer.FSeller,
             Fforbidstatus = customer.FForbidStatus,
-            fremarks =customer.Fremarks,
-            FSubsidiary =customer.FSubsidiary,
-            Fumbrella = customer.Fumbrella,
-            CreateDate=DateTime.Now,
-            LastupdateDate=DateTime.Now,
+            CreateDate = DateTime.Now,
+            CreateOrg= Convert.ToDecimal(customer.FCreateOrgId),
+            UseOrg= Convert.ToDecimal(customer.FUseOrgId),
             Company = "1000",
-            Factory = "1000"
+            Factory = "1000",
+            DataType= customer.FDocumentStatus
         };
     }
 

--
Gitblit v1.9.3