From 2682be2d1932fd43e0226c011bb32ae3c5e643bf Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期五, 25 三月 2022 17:17:45 +0800
Subject: [PATCH] LastBuy触发器
---
force-app/main/default/classes/NFM503InfoFileBatch.cls | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/force-app/main/default/classes/NFM503InfoFileBatch.cls b/force-app/main/default/classes/NFM503InfoFileBatch.cls
index 4703d3f..5149138 100644
--- a/force-app/main/default/classes/NFM503InfoFileBatch.cls
+++ b/force-app/main/default/classes/NFM503InfoFileBatch.cls
@@ -6,7 +6,7 @@
public static String transId;
public static String token;
public static integer isSuccess=0;
- public static List<String> sfRecordIds;
+ public static List<String> sfRecordIds =new List<String>();
//add staic sushanhu 20220302 end
Boolean IsNeedExecute = false; //2021-06-28 mzy WLIG-BYHD79 SFDC鐜batch鍚堝苟璋冩煡 鏄惁绗﹀悎鎵ц鏉′欢
//add nfm 503 aws response start sushanhu 20220301
@@ -192,17 +192,17 @@
update bidInfoFileList;
// add 纭浜嬪姟 sushanhu 20220302 start
- isSuccess =1;
+
if (fileList.size() > 0 ) {
for (FileAddress__c fileAddress : fileList) {
+ system.debug('fileAddress.Id---'+json.serialize(fileAddress));
sfRecordIds.add(fileAddress.Id);
system.debug('fileAddress.Id---'+fileAddress.Id);
}
}
system.debug('鎴愬姛鐨則oken'+token);
-
- // PIHelper.confirmFileTrans('NFM503',1,JSON.serialize(sfRecordIds),transId,token,transUrl);
-
+ isSuccess =1;
+
// if (!confirm) {
// //鍥炴粴
// if (sp != null) {
@@ -230,8 +230,8 @@
global void finish(Database.BatchableContext BC) {
// add confirm transaction for pipl sushanhu 20220314 start
- if (sfRecordIds==null) {
- PIHelper.confirmFileTrans('NFM503',0,'',transId,token,transUrl);
+ if (isSuccess==0) {
+ PIHelper.confirmFileTrans('NFM503',isSuccess,'',transId,token,transUrl);
}else {
PIHelper.confirmFileTrans('NFM503',isSuccess,JSON.serialize(sfRecordIds),transId,token,transUrl);
}
--
Gitblit v1.9.1