From 646ac6f3e1e77d0481e46ea15a6eb6db4ecba065 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期一, 23 六月 2025 13:17:23 +0800
Subject: [PATCH] 11

---
 MES.Service/service/BasicData/MesCustomerManager.cs |   23 ++++++++---------------
 1 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/MES.Service/service/BasicData/MesCustomerManager.cs b/MES.Service/service/BasicData/MesCustomerManager.cs
index b89d003..805a5fa 100644
--- a/MES.Service/service/BasicData/MesCustomerManager.cs
+++ b/MES.Service/service/BasicData/MesCustomerManager.cs
@@ -56,13 +56,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,24 +118,19 @@
 
     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.FContact,
+            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"
         };

--
Gitblit v1.9.3