From f50c0ec115e25dc7f980bafda8169ed5ddfe1a8f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 08 四月 2022 21:04:16 +0800
Subject: [PATCH] Session
---
force-app/main/default/classes/SBG027TriggerHandler.cls | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/classes/SBG027TriggerHandler.cls b/force-app/main/default/classes/SBG027TriggerHandler.cls
index 7f4b0dc..abf6168 100644
--- a/force-app/main/default/classes/SBG027TriggerHandler.cls
+++ b/force-app/main/default/classes/SBG027TriggerHandler.cls
@@ -6,19 +6,22 @@
}
System.debug('-----SBG027OrderTrigger start');
Map<Id, Id> accIds = new Map<Id, Id>();
- List<String> strlist = new List<String>();
- for (Order newOrd : newList) {
+
+ /*for (Order newOrd : newList) {
strlist.add(newOrd.id);
- }
+ }*/
for (Order newOrd : newList) {
Order oldOrd = oldMap.get(newOrd.Id);
- if (oldOrd.confirm__c ==false && newOrd.confirm__c == true ){
+ if ((oldOrd.confirm__c ==false && newOrd.confirm__c == true) || newOrd.Is_batch__c == true){
+ newOrd.Is_batch__c = false;
SBG027TriggerHandler.SBG027_Ids.add(newOrd.Id);
BatchIF_Log__c iflog = new BatchIF_Log__c();
iflog.Type__c = 'SBG027';
iflog.Log__c = 'callout start\n';
insert iflog;
+ List<String> strlist = new List<String>();
+ strlist.add(newOrd.id);
iflog = [Select Id, Name from BatchIF_Log__c where Id = :iflog.Id];
//SBG027TriggerHandler.callout(iflog.id,strlist, new Map<String, String>());
SBG027Controller.callout(iflog.id,strlist, new Map<String, String>());
--
Gitblit v1.9.1