From eca13a5ffc805ea1252a75dfeae46afd1cdbe701 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期二, 11 十一月 2025 14:48:12 +0800
Subject: [PATCH] 巡检入库检bug修复,物料检验周期字段增加
---
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