lighter 4 anni fa
parent
commit
0a89388681

+ 2 - 3
src/main/java/thyyxxk/webserver/controller/powersi/PowerSiApiController.java

@@ -13,6 +13,7 @@ import thyyxxk.webserver.config.exception.ExceptionEnum;
 import thyyxxk.webserver.entity.ResultVo;
 import thyyxxk.webserver.utils.FilterUtil;
 import thyyxxk.webserver.utils.ResultVoUtil;
+import thyyxxk.webserver.utils.TokenUtil;
 
 /**
  * @description: 创智中台接口
@@ -28,13 +29,13 @@ public class PowerSiApiController {
 
     @GetMapping("/getEmpiViewUrl")
     public ResultVo<String> getEmpiViewUrl(@RequestParam("id") String id) {
+        log.info("【操作员:{}】,请求患者360视图:{}", TokenUtil.getTokenUserId(), id);
         JSONObject param = new JSONObject();
         param.put("de000000009", "");
         param.put("de000000010", id);
         RestTemplate template = new RestTemplate();
         String url = powersiApiUrl + "/empiDataProvide/queryEmpiPatientListByIdentIndex";
         JSONObject result = template.postForObject(url, param, JSONObject.class);
-        log.info("请求患者主索引:{}", result);
         if (null == result) {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
         }
@@ -46,12 +47,10 @@ public class PowerSiApiController {
             return ResultVoUtil.fail(ExceptionEnum.NULL_POINTER, "没有找到此患者的主索引。");
         }
         JSONObject index = data.getJSONObject(0);
-
         String empiViewUrl = String.format("http://172.16.32.183:9002/mmg_business_thyy/business/#/360pat/patientView?" +
                         "mainIndex=%s&patName=%s&sexName=%s&visitId=%s&tag=patientTime",
                 index.getString("de000000007"), index.getString("de020103900"),
                 FilterUtil.filterSex(index.getString("de020104000")), id);
-
         return ResultVoUtil.success(empiViewUrl);
     }