| | |
| | | // 新服务系统 本地环境(临时) |
| | | // AWS_DOMAIN = 'http://114.249.236.98:29990'; |
| | | // AWS_DOMAIN = 'http://jzbase.bqbot.com:29990'; |
| | | // AWS_DOMAIN = 'http://114.249.238.243:29990'; |
| | | |
| | | |
| | | requestURILMS = '/v1/uc/user/syncOlympusUnit'; |
| | |
| | | // 智慧医疗&服务新系统通信 用户接口 |
| | | NFM621_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM621'; |
| | | NFM622_ENDPOINT = 'https://api-platform.olympuschina.com/prod-api/api/sso/sfdc_activitydata'; |
| | | NFM701_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM701'; |
| | | NFM702_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM702'; |
| | | NFM703_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM703'; |
| | | |
| | | //样本管理 |
| | | NFM115_ENDPOINT = 'https://wdp.olympus.com.cn:44302/RESTAdapter/NFM115'; |
| | | |
| | | // 新服务系统 |
| | | AWS_DOMAIN = 'https://svc-elb.olympuschina.com'; |
| | |
| | | } |
| | | |
| | | /** |
| | | * [formatDate2StrDateNewTime description] |
| | | * @param dt [日期] |
| | | * @return [description] |
| | | * 拼接日期/时间,参数日期(年月日)+ 当前时间(时分秒) |
| | | */ |
| | | public static String formatDate2StrDateNewTime(Date dt) { |
| | | String rtn = null; |
| | | if (dt == null) { |
| | | return rtn; |
| | | } |
| | | rtn = String.valueOf(dt); |
| | | rtn = rtn.replaceAll('-', ''); |
| | | if (rtn >= '40001231') { |
| | | rtn = '99991231'; |
| | | } else if (rtn < '19000101') { |
| | | rtn = '19000101'; |
| | | } |
| | | |
| | | String phourMinuteSecond = String.valueOf(DateTime.now()); |
| | | if(phourMinuteSecond.length() >= 19){ |
| | | phourMinuteSecond = phourMinuteSecond.subString(10,19).replaceall(':', ''); |
| | | } |
| | | return rtn + phourMinuteSecond; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @return yyyyMMddHHmmss の日付文字列 |
| | | */ |
| | | public static String formatDateTime2Str(Datetime dt) { |
| | |
| | | } |
| | | return parseStr2Date(pDateTime.substring(0, 8)); |
| | | } |
| | | |
| | | /** |
| | | * add wangweipeng 2022/02/15 |
| | | * [parseStr2DateTime description] |
| | | * @param pDate [日期(不包括时间)] |
| | | * @return [description] |
| | | * |
| | | * 拼接日期/时间,其中日期为真实日期,时间为当前时间 |
| | | |
| | | */ |
| | | public static Datetime parseStr3DateTime(String pDate) { |
| | | if (String.isBlank(pDate)) { |
| | | return null; |
| | | } |
| | | String phourMinuteSecond = String.valueOf(DateTime.now()); |
| | | if(phourMinuteSecond.length() >= 19){ |
| | | phourMinuteSecond = phourMinuteSecond.subString(10,19).replaceall(':', ''); |
| | | } |
| | | return parseStr2DateTime(pDate.substring(0, 8), phourMinuteSecond); |
| | | } |
| | | |
| | | public static Datetime parseStr2DateTime(String pDateTime) { |
| | | if (pDateTime == null || pDateTime.length() != 14) { |
| | | return null; |
| | |
| | | system.debug('resb:' + resb); |
| | | return resb; |
| | | } |
| | | |
| | | |
| | | //发送给共通平台 精琢技术 thh 2021-09-22 end |
| | | |
| | | public static Integer ControllerUtil() { |