Commit 2da2c220bb6840f0e964b094af3a45fb9a49118d
1 parent
287abe6af7
Exists in
luanping
#fix:优化威县his跳转到产检页面的接口
Showing 2 changed files with 10 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PatientController.java
View file @
2da2c22
... | ... | @@ -81,6 +81,7 @@ |
81 | 81 | private AntExRecordService recordService; |
82 | 82 | |
83 | 83 | @RequestMapping(method = RequestMethod.GET,value = "/xtwx/getWXPatient") |
84 | + @ResponseBody | |
84 | 85 | public BaseResponse getWxPatients(@RequestParam("patienId") String patienId){ |
85 | 86 | BaseResponse baseResponse=new BaseResponse(); |
86 | 87 | if (Strings.isNullOrEmpty(patienId)){ |
... | ... | @@ -90,6 +91,7 @@ |
90 | 91 | } |
91 | 92 | PatientsQuery patientsQuery =new PatientsQuery(); |
92 | 93 | patientsQuery.setYn(1); |
94 | + patientsQuery.setHospitalId("2100002421"); | |
93 | 95 | patientsQuery.setPatientHId(patienId); |
94 | 96 | List<Patients> patientsList=patientsService.queryPatient(patientsQuery); |
95 | 97 | if (CollectionUtils.isEmpty(patientsList)){ |
... | ... | @@ -115,6 +117,8 @@ |
115 | 117 | params.put("nextCheckTime",antExManagerResult.getNextCheckTime()); |
116 | 118 | params.put("username",antExManagerResult.getName()); |
117 | 119 | baseResponse.setObject(params); |
120 | + baseResponse.setErrorcode(0); | |
121 | + baseResponse.setErrormsg("成功"); | |
118 | 122 | } |
119 | 123 | return baseResponse; |
120 | 124 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PatientWxController.java
View file @
2da2c22
... | ... | @@ -533,7 +533,11 @@ |
533 | 533 | }*/ |
534 | 534 | |
535 | 535 | @RequestMapping(method = RequestMethod.GET,value = "/wx/getWXPatient") |
536 | - public BaseResponse getWxPatients(@RequestParam("patientId") String patientId){ | |
536 | + @ResponseBody | |
537 | + public BaseResponse getWxPatients(@RequestHeader("Authorization")String authorization,@RequestParam("patientId") String patientId){ | |
538 | + if (!authorization.contains(Authorization)){ | |
539 | + return new BaseResponse().setErrorcode(-1).setErrormsg("权限异常"); | |
540 | + } | |
537 | 541 | BaseResponse baseResponse=new BaseResponse(); |
538 | 542 | if (Strings.isNullOrEmpty(patientId)){ |
539 | 543 | baseResponse.setErrorcode(-1); |
... | ... | @@ -542,6 +546,7 @@ |
542 | 546 | } |
543 | 547 | PatientsQuery patientsQuery =new PatientsQuery(); |
544 | 548 | patientsQuery.setYn(1); |
549 | + patientsQuery.setHospitalId(hospitalId); | |
545 | 550 | patientsQuery.setPatientHId(patientId); |
546 | 551 | List<Patients> patientsList=patientsService.queryPatient(patientsQuery); |
547 | 552 | if (CollectionUtils.isEmpty(patientsList)){ |