Commit 5d193f88928779ba550767519fc2ca68358ba036

Authored by liquanyu
1 parent 747715807a

预约建档

Showing 1 changed file with 10 additions and 7 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java View file @ 5d193f8
... ... @@ -149,13 +149,6 @@
149 149 public BaseResponse isBookArchive(HttpServletResponse response, String idCard){
150 150  
151 151  
152   - ArchiveDataQuery query = new ArchiveDataQuery();
153   - query.setIdCard(idCard);
154   - List<ArchiveData> list = archiveDataServicer.query(query.convertToQuery());
155   - if (CollectionUtils.isNotEmpty(list))
156   - {
157   - return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_POWER).setErrormsg("已经提交过预约建档,请到医生处建档");
158   - }
159 152  
160 153 PatientsQuery patientsQuery = new PatientsQuery();
161 154 patientsQuery.setYn(YnEnums.YES.getId());
... ... @@ -166,6 +159,16 @@
166 159 {
167 160 return new BaseResponse().setErrorcode(ErrorCodeConstants.DATA_EXIST).setErrormsg("已经建档");
168 161 }
  162 +
  163 + ArchiveDataQuery query = new ArchiveDataQuery();
  164 + query.setIdCard(idCard);
  165 + List<ArchiveData> list = archiveDataServicer.query(query.convertToQuery());
  166 + if (CollectionUtils.isNotEmpty(list))
  167 + {
  168 + return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_POWER).setErrormsg("已经提交过预约建档,请到医生处建档");
  169 + }
  170 +
  171 +
169 172 return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
170 173 }
171 174