Commit 8697c24e1d6d1d34940822ce966266f52d3268c6

Authored by liquanyu
1 parent 0a08360d08

code update

Showing 2 changed files with 11 additions and 4 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java View file @ 8697c24
... ... @@ -268,6 +268,17 @@
268 268 br.setErrormsg("儿童就诊卡号在该医院已经建档");
269 269 return br;
270 270 }
  271 +
  272 + PatientsQuery patientsQuery = new PatientsQuery();
  273 + patientsQuery.setVcCardNo(request.getVcCardNo());
  274 + patientsQuery.setHospitalId(request.getHospitalId());
  275 + List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery);
  276 + if (CollectionUtils.isNotEmpty(patients))
  277 + {
  278 + br.setErrorcode(ErrorCodeConstants.DATA_EXIST);
  279 + br.setErrormsg("该就诊卡号在该医院已经建档");
  280 + return br;
  281 + }
271 282 }
272 283  
273 284 Patients patients = null;
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ 8697c24
... ... @@ -117,8 +117,6 @@
117 117 if (StringUtils.isNotEmpty(yunRequest.getVcCardNo()))
118 118 {
119 119 patientsQuery.setCardNo(null);
120   - patientsQuery.setBuildTypeEq(null);
121   - patientsQuery.setDueStatus(null);
122 120 patientsQuery.setPhone(null);
123 121 patientsQuery.setVcCardNo(yunRequest.getVcCardNo());
124 122 patientsQuery.setHospitalId(yunRequest.getHospitalId());
... ... @@ -390,8 +388,6 @@
390 388 if (StringUtils.isNotEmpty(yunRequest.getVcCardNo()))
391 389 {
392 390 patientsQuery.setCardNo(null);
393   - patientsQuery.setBuildTypeEq(null);
394   - patientsQuery.setDueStatus(null);
395 391 patientsQuery.setPhone(null);
396 392 patientsQuery.setVcCardNo(yunRequest.getVcCardNo());
397 393 patientsQuery.setHospitalId(yunRequest.getHospitalId());