From 8badb57ea2c82557850ad5b39281c3e8714eb119 Mon Sep 17 00:00:00 2001
From: liuyan <liuyan@prec-tech.com>
Date: 星期四, 24 十一月 2022 10:08:31 +0800
Subject: [PATCH] 科室信息漏传SPO问题
---
force-app/main/default/classes/NFMUtil.cls | 53 +++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 43 insertions(+), 10 deletions(-)
diff --git a/force-app/main/default/classes/NFMUtil.cls b/force-app/main/default/classes/NFMUtil.cls
index 56315c8..69e9c8d 100644
--- a/force-app/main/default/classes/NFMUtil.cls
+++ b/force-app/main/default/classes/NFMUtil.cls
@@ -63,6 +63,9 @@
public static String NFM703_ENDPOINT = null;
public static String NFM115_ENDPOINT = null;
+ // 鐢靛瓙绛炬敹鍗昐FDC2SAP thh 20220427 start
+ public static String NFM116_ENDPOINT = null;
+ // 鐢靛瓙绛炬敹鍗昐FDC2SAP thh 20220427 end
public static String NFM112_ENDPOINT = null;
@@ -126,10 +129,16 @@
NFM112_ENDPOINT = 'http://wdp.olympus.com.cn:8089/RESTAdapter/NFM112';
NFM115_ENDPOINT = 'https://wdp.olympus.com.cn:44301/RESTAdapter/NFM115';
+
+ // sanbox鐢靛瓙绛炬敹鍗昐FDC2SAP thh 20220427 start
+ NFM116_ENDPOINT = 'https://wdp.olympus.com.cn:44301/RESTAdapter/NFM116';
+ // sanbox鐢靛瓙绛炬敹鍗昐FDC2SAP thh 20220427 end
+
// 鏂版湇鍔$郴缁� 娴嬭瘯鐜
AWS_DOMAIN = 'https://olympus.bqbot.com';
// 鏂版湇鍔$郴缁� 鏈湴鐜锛堜复鏃讹級
// AWS_DOMAIN = 'http://114.249.236.98:29990';
+ // AWS_DOMAIN = 'http://114.249.231.75:29995';
// AWS_DOMAIN = 'http://jzbase.bqbot.com:29990';
// AWS_DOMAIN = 'http://114.249.238.243:29990';
@@ -179,10 +188,16 @@
NFM702_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM702';
NFM703_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM703';
+ //鍏堟鍚庝慨
+ NFM112_ENDPOINT = 'http://wdp.olympus.com.cn:8089/RESTAdapter/NFM112';
//鏍锋湰绠$悊
NFM115_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM115';
- // 鏂版湇鍔$郴缁�
+ // 鐢靛瓙绛炬敹鍗昐FDC2SAP thh 20220427 start
+ NFM116_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM116';
+ // 鐢靛瓙绛炬敹鍗昐FDC2SAP thh 20220427 end
+
+ // 鏂版湇鍔$郴缁�
AWS_DOMAIN = 'https://svc-elb.olympuschina.com';
requestURILMS = '/v1/uc/user/syncOlympusUnit';
@@ -365,6 +380,24 @@
return rtn;
}
+ // lt 20220419 Start
+ /**
+ * @return yyyy/MM/dd 銇棩浠樻枃瀛楀垪
+ */
+ public static String formatDateTime2StrSprit2(DateTime dt) {
+ String rtn = null;
+ if (dt == null) {
+ rtn = '';
+ } else {
+ String pDate = formatDateTime2Str(dt);
+ rtn = (pDate.substring(0, 4)) + '/' +
+ (pDate.substring(4, 6)) + '/' +
+ (pDate.substring(6, 8));
+ }
+ return rtn;
+ }
+ // lt 20220419 End
+
/**
* add wangweipeng 2022/02/11
* [formatDateTime2StrDateTime description]
@@ -517,7 +550,7 @@
col = '';
}
rtn = transferMap.get(col + key);
- if (rtn == null) {
+ if (!transferMap.containsKey(col + key)) { //lt 20220530 update
iflog.ErrorLog__c += 'Warning! Please check [' + col + '] can not transfer key [' + key + ']\n';
rtn = key;
}
@@ -1047,13 +1080,13 @@
req.setEndpoint(endpoint);
req.setMethod('GET');
HTTPResponse response = http.send(req);
- String statusCode = response.getStatus();
+ String statusCode = String.valueof(response.getStatusCode());
System.debug('response:' + response);
//http锛氱姸鎬佸拰code
//濡傛灉鐘舵�佷笉閫氳繃 锛� 鍒欏皢鐘舵�佸強绌虹殑鐨勬暟鎹� 锛� 杩斿洖
- if (String.isNotBlank(statusCode)) {
- return new response(statusCode, null);
- }
+ // if (String.isNotBlank(statusCode)) {
+ // return new response(statusCode, null);
+ // }
System.debug('=====2======' + response.getBody());
//姝e父鎵ц
return new response(statusCode, response.getBody());
@@ -1070,13 +1103,13 @@
req.setMethod('POST');
req.setBody(jsonStr);
HTTPResponse response = http.send(req);
- String statusCode = response.getStatus();
+ String statusCode = String.valueof(response.getStatusCode());
System.debug('response:' + response);
//http锛氱姸鎬佸拰code
//濡傛灉鐘舵�佷笉閫氳繃 锛� 鍒欏皢鐘舵�佸強绌虹殑鐨勬暟鎹� 锛� 杩斿洖
- if (String.isNotBlank(statusCode)) {
- return new response(statusCode, null);
- }
+ // if (String.isNotBlank(statusCode)) {
+ // return new response(statusCode, null);
+ // }
System.debug('=====2======' + response.getBody());
//姝e父鎵ц
return new response(statusCode, response.getBody());
--
Gitblit v1.9.1