Commit 51ef2d93145d5d0e41b8791b707eaec05c9a65f7

Authored by qiaoyuewang
1 parent 7b37a6d249
Exists in dev

1:判断建当时,高危档案号是否重复

Showing 1 changed file with 5 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ 51ef2d9
... ... @@ -296,6 +296,11 @@
296 296 patientsQuery.setHighRiskFileCode(yunRequest.getHighRiskFileCode());
297 297 //判断该手机号码在 孕期内有没有建档
298 298 List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery);
  299 + if(CollectionUtils.isNotEmpty(patients)){
  300 + br.setErrorcode(ErrorCodeConstants.DATA_EXIST);
  301 + br.setErrormsg("该高危专档案号已存在");
  302 + return br;
  303 + }
299 304 if (yunRequest.getLastMenstrualPeriod() != null && !yunRequest.getLastMenstrualPeriod().equals("")) {//todowtt
300 305 if (CollectionUtils.isNotEmpty(patients) && patients.get(0).getLastMenses().getTime() < DateUtil.parseYMD(yunRequest.getLastMenstrualPeriod()).getTime()) {
301 306 br.setErrorcode(ErrorCodeConstants.DATA_EXIST);