Commit 5803f50ea89e7a7b01eeba496ae8219add93b03e
1 parent
708119f165
Exists in
master
and in
6 other branches
预约建档
Showing 1 changed file with 30 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java
View file @
5803f50
... | ... | @@ -139,6 +139,36 @@ |
139 | 139 | } |
140 | 140 | |
141 | 141 | |
142 | + /** | |
143 | + * 判断是否已经建档 | |
144 | + * @param response | |
145 | + * @param idCard | |
146 | + */ | |
147 | + @RequestMapping(value = "/isBookArchive",method = RequestMethod.GET) | |
148 | + public BaseResponse isBookArchive(HttpServletResponse response, String idCard){ | |
149 | + | |
150 | + | |
151 | + ArchiveDataQuery query = new ArchiveDataQuery(); | |
152 | + query.setIdCard(idCard); | |
153 | + List<ArchiveData> list = archiveDataServicer.query(query.convertToQuery()); | |
154 | + if (CollectionUtils.isNotEmpty(list)) | |
155 | + { | |
156 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.DATA_EXIST).setErrormsg("已经提交过预约建档"); | |
157 | + } | |
158 | + | |
159 | + PatientsQuery patientsQuery = new PatientsQuery(); | |
160 | + patientsQuery.setYn(YnEnums.YES.getId()); | |
161 | + patientsQuery.setType(1); | |
162 | + patientsQuery.setCardNo(idCard); | |
163 | + List<Patients> patientses = patientsService.queryPatient(patientsQuery); | |
164 | + if (CollectionUtils.isNotEmpty(patientses)) | |
165 | + { | |
166 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.DATA_EXIST).setErrormsg("已经建档"); | |
167 | + } | |
168 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
169 | + } | |
170 | + | |
171 | + | |
142 | 172 | @RequestMapping(value = "/queryTodayArchiveList", method = RequestMethod.GET) |
143 | 173 | @ResponseBody |
144 | 174 | @TokenRequired |