Commit 81f84913540ff86cb7b4090940b735b1325d9d9e
1 parent
004e43e3a0
Exists in
master
and in
6 other branches
全部孕妇管理增加按照排序
Showing 1 changed file with 6 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/TempFacade.java
View file @
81f8491
... | ... | @@ -65,6 +65,9 @@ |
65 | 65 | @Autowired |
66 | 66 | private MongoTemplate mongoTemplate; |
67 | 67 | |
68 | +private AccessPermissionFacade accessPermissionFacade; | |
69 | + | |
70 | + | |
68 | 71 | public BaseResponse addOrUpdateOneTemp(TempAddRequest addRequest, Integer userId) { |
69 | 72 | Assert.notNull(addRequest, "请求为空."); |
70 | 73 | String hospital = autoMatchFacade.getHospitalId(userId); |
71 | 74 | |
72 | 75 | |
... | ... | @@ -109,13 +112,14 @@ |
109 | 112 | |
110 | 113 | public BaseResponse findTempDataList(TempQueryRequest queryRequest, Integer userId) { |
111 | 114 | |
112 | - String hospital = autoMatchFacade.getHospitalId(userId); | |
115 | + List<String> hospital = accessPermissionFacade.getCurrentUserHospPermissions(userId); | |
113 | 116 | PatientsQuery patientsQuery = new PatientsQuery(); |
114 | 117 | patientsQuery.setCardNo(queryRequest.getCardNo()); |
115 | 118 | patientsQuery.setVcCardNo(queryRequest.getVcCardNo()); |
116 | - patientsQuery.setHospitalId(hospital); | |
119 | + patientsQuery.setHospitalList(hospital); | |
117 | 120 | patientsQuery.setLastMensesStart(queryRequest.capEnd()); |
118 | 121 | patientsQuery.setLastMensesEnd(queryRequest.capStart()); |
122 | + patientsQuery.setExtEnable(false); | |
119 | 123 | |
120 | 124 | Date currentDate = DateUtil.formatDate(new Date()); |
121 | 125 | if (null != queryRequest.getStartAge()) { |