From f2900f2e7a9fef2e536c34e8d8406ac60c0f06ba Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期四, 17 七月 2025 23:36:32 +0800
Subject: [PATCH] 添加首检的查询条件,添加首检,巡检返回总行数

---
 StandardInterface/MES.Service/service/BasicData/Partner/MesCustomerManager.cs |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/StandardInterface/MES.Service/service/BasicData/Partner/MesCustomerManager.cs b/StandardInterface/MES.Service/service/BasicData/Partner/MesCustomerManager.cs
index 6294cfb..da0b3c1 100644
--- a/StandardInterface/MES.Service/service/BasicData/Partner/MesCustomerManager.cs
+++ b/StandardInterface/MES.Service/service/BasicData/Partner/MesCustomerManager.cs
@@ -15,20 +15,23 @@
         {
             switch (customer.Type)
             {
+                //鍙嶇鐢�
                 case "0":
                     if (UpdateCustomerStatus(db, entity.Id, "A"))
                         return 1;
                     break;
+                //绂佺敤
                 case "1":
                     if (UpdateCustomerStatus(db, entity.Id, "B"))
                         return 1;
                     break;
+                    //鍙嶅鏍�
                 case "3":
                     if (DeleteCustomer(db, entity.Id))
                         return 1;
                     break;
+                    //瀹℃牳
                 case "2":
-                case "4":
                     if (InsertOrUpdate(db, entity))
                         return 1;
                     break;
@@ -67,7 +70,7 @@
                             throw new NotImplementedException("鍒犻櫎澶辫触");
                         break;
                     case "2":
-                    case "4":
+               
                         if (!InsertOrUpdateBatch(db, customerGroup.Value))
                             throw new NotImplementedException("鍚屾澶辫触");
                         break;
@@ -142,6 +145,9 @@
             CreateDate = DateTime.Now,
             CreateOrg = Convert.ToDecimal(customer.FCreateOrgId),
             UseOrg = Convert.ToDecimal(customer.FUseOrgId),
+            CustType =  customer.CustType,
+            CustGroup  =  customer.CustGroup,
+            Type= customer.Type,
             Company = "1000",
             Factory = "1000"
         };

--
Gitblit v1.9.3