From 4420517bbbffea48cabe7a7dcdf2e1c4b440fc85 Mon Sep 17 00:00:00 2001
From: GWY <guweiyi@prec-tech.com>
Date: 星期一, 30 五月 2022 16:15:26 +0800
Subject: [PATCH] 两个LS特殊条件在说明的增减

---
 force-app/main/default/classes/OrderTriggerHandler.cls |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/OrderTriggerHandler.cls b/force-app/main/default/classes/OrderTriggerHandler.cls
index c4e5054..3bdf83f 100644
--- a/force-app/main/default/classes/OrderTriggerHandler.cls
+++ b/force-app/main/default/classes/OrderTriggerHandler.cls
@@ -1925,6 +1925,12 @@
             if (newOrder.SP_33__c == true && oldOrder.SP_33__c == false) {
                 newOrder.Description += sObjectFieldMaps.get('SP_33__c').getDescribe().getLabel() + ' \r\n ';
             }
+            if (newOrder.SP_32__c == true && oldOrder.SP_32__c == false) {
+                newOrder.Description += sObjectFieldMaps.get('SP_32__c').getDescribe().getLabel() + ' \r\n ';
+            }
+            if (newOrder.SP_31__c == true && oldOrder.SP_31__c == false) {
+                newOrder.Description += sObjectFieldMaps.get('SP_31__c').getDescribe().getLabel() + ' \r\n ';
+            }
             if (newOrder.SP_11__c == true && oldOrder.SP_11__c == false) {
                 newOrder.Description += sObjectFieldMaps.get('SP_11__c').getDescribe().getLabel() + ' \r\n ';
             }
@@ -1991,6 +1997,12 @@
             if (newOrder.SP_33__c == false && oldOrder.SP_33__c == true) {
                 newOrder.Description =  newOrder.Description.remove(sObjectFieldMaps.get('SP_33__c').getDescribe().getLabel() + ' \r\n ');
             }
+            if (newOrder.SP_32__c == false && oldOrder.SP_32__c == true) {
+                newOrder.Description =  newOrder.Description.remove(sObjectFieldMaps.get('SP_32__c').getDescribe().getLabel() + ' \r\n ');
+            }
+            if (newOrder.SP_31__c == false && oldOrder.SP_31__c == true) {
+                newOrder.Description =  newOrder.Description.remove(sObjectFieldMaps.get('SP_31__c').getDescribe().getLabel() + ' \r\n ');
+            }
             if (newOrder.SP_11__c == false && oldOrder.SP_11__c == true) {
                 newOrder.Description = newOrder.Description.remove(sObjectFieldMaps.get('SP_11__c').getDescribe().getLabel() + ' \r\n ');
             }

--
Gitblit v1.9.1