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/SBG027Controller.cls | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/force-app/main/default/classes/SBG027Controller.cls b/force-app/main/default/classes/SBG027Controller.cls
index 0ebe7ec..4631772 100644
--- a/force-app/main/default/classes/SBG027Controller.cls
+++ b/force-app/main/default/classes/SBG027Controller.cls
@@ -402,11 +402,16 @@
} else {
logstr = iflog.Log__c;
}
+ // 娣诲姞aws涓婄嚎寮�鍏� by sushanhu 20220420
+ Boolean piOn =AWSServiceTool.getAWSServiceStatus();
try{
-
- //update to aws 2022/3/9 dennis
+ //add by sushanhu for test 20220421
+ //piOn=false;
+ if (piOn) {
+ //update to aws 2022/3/9 dennis
PIHelper.PIIntegration pi =PIHelper.getPIIntegrationInfo('SBG027');
- NFMUtil.response result =NFMUtil.sendToPiAWS(rowDataStr,pi.newUrl,pi.token);
+ // NFMUtil.response result =NFMUtil.sendToPiAWS(rowDataStr,pi.newUrl,pi.token);
+ AWSServiceTool.response result = AWSServiceTool.sendToPiAWS(rowDataStr,pi.newUrl,pi.token);//update forpipl by sushanhu 20220425
system.debug('aws result---'+result);
status = result.status;
system.debug('aws status--'+status);
@@ -422,8 +427,12 @@
iflog.ErrorLog__c +=responseBody;
}
//add by sushanhu 20220406 鍐欏叆閿欒鏃ュ織 end
- // NFMUtil.sendToSap(rowDataStr, NFMUtil.SBG027_ENDPOINT);
- // rowData.retry_cnt__c = 0;
+ }else {
+ NFMUtil.sendToSap(rowDataStr, NFMUtil.SBG027_ENDPOINT);
+ rowData.retry_cnt__c = 0;
+
+ }
+
}catch(Exception ex) {
// TODO IOException
// 銈ㄣ儵銉笺亴鐧虹敓銇椼仧鍫村悎
--
Gitblit v1.9.1