From a5c6ae27661fa81496900d903c5331d179cd971a Mon Sep 17 00:00:00 2001
From: sjz <1240968267@qq.com>
Date: 星期五, 23 五月 2025 12:29:16 +0800
Subject: [PATCH] 123
---
MES.Service/service/BasicData/MesCustomerManager.cs | 25 +++++++++++--------------
1 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/MES.Service/service/BasicData/MesCustomerManager.cs b/MES.Service/service/BasicData/MesCustomerManager.cs
index 6a5369c..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,24 +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,
+ CreateOrg= Convert.ToDecimal(customer.FCreateOrgId),
+ UseOrg= Convert.ToDecimal(customer.FUseOrgId),
Company = "1000",
- Factory = "1000"
+ Factory = "1000",
+ DataType= customer.FDocumentStatus
};
}
--
Gitblit v1.9.3