Commit d5abb60a8c83a25bf425aaf3ef0f1a8f3755fc3d

Authored by qiaoyuewang
1 parent b82c6f88b1
Exists in dev

9:判断建当时,档案号是否重复

Showing 1 changed file with 1 additions and 1 deletions

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