|
@@ -185,8 +185,9 @@ public class MedCheckWorkFacade {
|
|
|
*/
|
|
|
public void upload(int nodeId,String behospitalCode,String remark,String nodeName,String cardNum) {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ if(StringUtil.isBlank(remark)) { //没有登陆信息, 不上报
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("code", "1201");
|
|
@@ -203,17 +204,16 @@ public class MedCheckWorkFacade {
|
|
|
map.put("proName",nodeName+ behospitalCode);
|
|
|
map.put("detailProName",nodeName+ behospitalCode);
|
|
|
map.put("cardNum",cardNum);
|
|
|
-
|
|
|
JSONObject json = JSON.parseObject(remark);
|
|
|
- map.put("doctorId",json.getJSONObject("data").get("yongHuID"));
|
|
|
- map.put("wardId",json.getJSONObject("data").get("guDingBQID"));
|
|
|
- map.put("specId",json.getJSONObject("data").get("guDingZKID"));
|
|
|
+ map.put("doctorId",json.get("yongHuID"));
|
|
|
+ map.put("wardId",json.get("guDingBQID"));
|
|
|
+ map.put("specId",json.get("guDingZKID"));
|
|
|
map.put("opId",map.get("doctorId"));
|
|
|
- map.put("opName",json.getJSONObject("data").get("XingMing"));
|
|
|
- map.put("operatorDepId",json.getJSONObject("data").get("guDingBMID"));
|
|
|
- map.put("operatorDepName",json.getJSONObject("data").get("guDingBMMC"));
|
|
|
+ map.put("opName",json.get("XingMing"));
|
|
|
+ map.put("operatorDepId",json.get("guDingBMID"));
|
|
|
+ map.put("operatorDepName",json.get("guDingBMMC"));
|
|
|
try {
|
|
|
- HttpPost post = new HttpPost("http://10.104.141.84:30030/ClosedLoopApi/swagger/ui/index#!/DataProcess/DataProcess_setData");
|
|
|
+ HttpPost post = new HttpPost("http://172.16.201.167/ClosedLoopApi/api/DataProcess/setData");
|
|
|
post.setHeader("Content-Type", "application/json;charset=UTF-8");
|
|
|
StringEntity se = new StringEntity(JSON.toJSONString(map));
|
|
|
se.setContentEncoding("utf-8");
|