Commit bf045491860147926a2fec551c8eb76fa4a5f692
1 parent
673f7f4d50
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 20 additions and 17 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
View file @
bf04549
| ... | ... | @@ -117,25 +117,25 @@ |
| 117 | 117 | } else if (action.startsWith("Mysql")) { |
| 118 | 118 | return syncMysqlData(action,id,className,json); |
| 119 | 119 | } else if ("POSTMSG".equals(action)) { |
| 120 | -// String result = HttpClientUtil.doPostSSL(CENTER_BASE_URL + "/biz-push-web/push", LymsEncodeUtil.aesDecrypt(json, mongo_crypto_key)); | |
| 121 | -// if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(result)) | |
| 122 | -// { | |
| 123 | -// Map<String,Integer> map = JsonUtil.str2Obj(result, Map.class); | |
| 124 | -// if ("0".equals(map.get("errorcode").toString())) | |
| 125 | -// { | |
| 126 | -// return true; | |
| 127 | -// } | |
| 128 | -// } | |
| 129 | - String result = HttpRequest.sendPost(CENTER_BASE_URL+"saveCreatedSMS", LymsEncodeUtil.aesDecrypt(json, mongo_crypto_key), CENTER_TOKEN); | |
| 120 | + String result = HttpClientUtil.doPostSSL(CENTER_BASE_URL + "/biz-push-web/push", LymsEncodeUtil.aesDecrypt(json, mongo_crypto_key)); | |
| 130 | 121 | if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(result)) |
| 131 | 122 | { |
| 132 | - return true; | |
| 133 | -// Map<String,String> map = JsonUtil.str2Obj(result, Map.class); | |
| 134 | -// if ("0".equals(map.get("errorcode"))) | |
| 135 | -// { | |
| 136 | -// return true; | |
| 137 | -// } | |
| 123 | + Map<String,Integer> map = JsonUtil.str2Obj(result, Map.class); | |
| 124 | + if ("0".equals(map.get("errorcode").toString())) | |
| 125 | + { | |
| 126 | + return true; | |
| 127 | + } | |
| 138 | 128 | } |
| 129 | +// String result = HttpRequest.sendPost(CENTER_BASE_URL+"saveCreatedSMS", LymsEncodeUtil.aesDecrypt(json, mongo_crypto_key), CENTER_TOKEN); | |
| 130 | +// if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(result)) | |
| 131 | +// { | |
| 132 | +// return true; | |
| 133 | +//// Map<String,String> map = JsonUtil.str2Obj(result, Map.class); | |
| 134 | +//// if ("0".equals(map.get("errorcode"))) | |
| 135 | +//// { | |
| 136 | +//// return true; | |
| 137 | +//// } | |
| 138 | +// } | |
| 139 | 139 | return false; |
| 140 | 140 | } |
| 141 | 141 | return false; |
platform-msg-generate/src/main/java/com/lyms/platform/msg/service/impl/MsgGenerateServiceImpl.java
View file @
bf04549