ソースを参照

添加查询门诊患者是否正在进行门诊统筹流程的接口。

lighter 2 年 前
コミット
160a39e3ef

+ 16 - 0
src/main/java/thyyxxk/webserver/controller/medicalinsurance/MarkMtFeesController.java

@@ -3,6 +3,7 @@ package thyyxxk.webserver.controller.medicalinsurance;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
+import org.springframework.web.client.RestTemplate;
 import thyyxxk.webserver.config.auth.PassToken;
 import thyyxxk.webserver.config.exception.ExceptionEnum;
 import thyyxxk.webserver.entity.ResultVo;
@@ -129,6 +130,21 @@ public class MarkMtFeesController {
         return getStringObjectMap(param, result, "医生保存处方试算", false);
     }
 
+    @PassToken
+    @GetMapping("/isPatientDuringSiSettle")
+    public Map<String, Object> isPatientDuringSiSettle(@RequestParam("patientId") String patientId) {
+        ResultVo<Integer> resvo = mzService.isPatientDuringSiSettle(patientId);
+        Map<String, Object> map = new HashMap<>();
+        if (resvo.getData() == 1) {
+            map.put("code", -1);
+            map.put("msg", "此患者正处于医保统筹进程中,请稍候。");
+        } else {
+            map.put("code", 0);
+            map.put("msg", "OK");
+        }
+        return map;
+    }
+
     @PassToken
     @PostMapping("/payOnline")
     public ResultVo<String> payOnline(@RequestBody EcToken token) {

+ 4 - 0
src/main/java/thyyxxk/webserver/service/externalhttp/SiMzSrvc.java

@@ -1,5 +1,6 @@
 package thyyxxk.webserver.service.externalhttp;
 
+import com.dtflys.forest.annotation.Get;
 import com.dtflys.forest.annotation.JSONBody;
 import com.dtflys.forest.annotation.Post;
 import com.dtflys.forest.annotation.Var;
@@ -35,4 +36,7 @@ public interface SiMzSrvc {
 
     @Post("{url}/directRegistration")
     ResultVo<FundDetail> directRegistration(@Var("url") String url, @JSONBody SiMzBusinessParams param);
+
+    @Get("{url}/isPatientDuringSiSettle?patientId={patientId}")
+    ResultVo<Integer> isPatientDuringSiSettle(@Var("url") String url, @Var("patientId") String patientId);
 }

+ 4 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiMzService.java

@@ -435,4 +435,8 @@ public class SiMzService {
     public ResultVo<FundDetail> directRegistration(SiMzBusinessParams param) {
         return mzSrvc.directRegistration(siMzFeeUrl, param);
     }
+
+    public ResultVo<Integer> isPatientDuringSiSettle(String patientId) {
+        return mzSrvc.isPatientDuringSiSettle(siMzFeeUrl, patientId);
+    }
 }

+ 14 - 14
src/main/resources/application.yml

@@ -73,21 +73,21 @@ si-api-url: http://dms.hun.hsip.gov.cn/isp-api/powercsb/1101
 si-access-key: 04eMGRg7beAO6vqwrZiLacV8Uy3jNn7QGDUcBO
 si-secret-key: SK3Oip3a2R3NLz2xm58Mpmi69oFu96KrdKNRKglN
 si-zy-fee-url: http://172.16.32.166:1000/zyFee
-si-mz-fee-url: http://172.16.32.166:1100/mzFee
+#si-mz-fee-url: http://172.16.32.166:1100/mzFee
 si-injury-fee-url: http://172.16.32.163:2100/siInjury
 si-injury-systm-url: http://172.16.32.163:2000/siInjury
-thmz-api-url: http://172.16.32.160:81/thmz/api/v1
+#thmz-api-url: http://172.16.32.160:81/thmz/api/v1
 
-  #测试环境
-  #si-api-url: http://10.93.30.130:20001/isp-api/powercsb/1101
-  #si-access-key: Zgs5jfxaKb86XbCuUzLK9EhFjiQfHR1vydaPzp
-  #si-secret-key: SKT2ETMT3XkAYApqh79DCnN9ZjfbQEBMPU0GyLz9
-  #si-zy-fee-url: http://localhost:1000/zyFee
-  #si-mz-fee-url: http://localhost:1100/mzFee
-  #si-injury-fee-url: http://localhost:2100/siInjury
-  #si-injury-systm-url: http://localhost:2000/siInjury
-#thmz-api-url: http://172.16.30.33:81/thmz/api/v1
+#测试环境
+#si-api-url: http://10.93.30.130:20001/isp-api/powercsb/1101
+#si-access-key: Zgs5jfxaKb86XbCuUzLK9EhFjiQfHR1vydaPzp
+#si-secret-key: SKT2ETMT3XkAYApqh79DCnN9ZjfbQEBMPU0GyLz9
+#si-zy-fee-url: http://localhost:1000/zyFee
+si-mz-fee-url: http://localhost:1100/mzFee
+#si-injury-fee-url: http://localhost:2100/siInjury
+#si-injury-systm-url: http://localhost:2000/siInjury
+thmz-api-url: http://172.16.30.33:81/thmz/api/v1
 
-logging:
-  level:
-    thyyxxk.webserver.dao: debug
+#logging:
+#  level:
+#    thyyxxk.webserver.dao: debug