From cc7487a59bd4b0fa5bed1dd59f6d0565ace81b8b Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期五, 21 四月 2023 09:48:22 +0800
Subject: [PATCH] opd计划Cl3

---
 force-app/main/default/classes/OPDPlanHandler.cls |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/force-app/main/default/classes/OPDPlanHandler.cls b/force-app/main/default/classes/OPDPlanHandler.cls
index 7540370..a8e137f 100644
--- a/force-app/main/default/classes/OPDPlanHandler.cls
+++ b/force-app/main/default/classes/OPDPlanHandler.cls
@@ -457,15 +457,20 @@
                     if (uList[0].ZongjianApprovalManager__r.IsActive == true || String.isNotBlank(uList[0].ZongjianApprovalManager__c)) {
                         n.ZongjianApprovalManager__c = uList[0].ZongjianApprovalManager__c;
                     }
-                    if (uList[0].Salesdepartment__c == '1.鍗庡寳' || uList[0].Salesdepartment__c == '2.涓滃寳') {
-                        if (uList[0].TongkuoZongjianHD__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjianHD__c)) {
-                            n.TongkuoZongjian__c = uList[0].TongkuoZongjianHD__c;
-                        }
-                    }else{
-                        if (uList[0].TongkuoZongjian__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjian__c)) {
-                            n.TongkuoZongjian__c = uList[0].TongkuoZongjian__c;
-                        }
+                    // 20230420 ljh DB202304312550 start
+                    // if (uList[0].Salesdepartment__c == '1.鍗庡寳' || uList[0].Salesdepartment__c == '2.涓滃寳') {
+                    //     if (uList[0].TongkuoZongjianHD__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjianHD__c)) {
+                    //         n.TongkuoZongjian__c = uList[0].TongkuoZongjianHD__c;
+                    //     }
+                    // }else{
+                    //     if (uList[0].TongkuoZongjian__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjian__c)) {
+                    //         n.TongkuoZongjian__c = uList[0].TongkuoZongjian__c;
+                    //     }
+                    // }
+                    if (uList[0].TongkuoZongjian__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjian__c)) {
+                        n.TongkuoZongjian__c = uList[0].TongkuoZongjian__c;
                     }
+                    // 20230420 ljh DB202304312550 end
                 }
                 /*if (uList.size() > 0) {
                     String MId = uList[0].SalesManager__c;

--
Gitblit v1.9.1