Commit cb0768a6cb0f6d367c08891ed3469b356e76397f

Authored by qiaoyuewang
1 parent c47c2842f4
Exists in dev

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

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 @ cb0768a
... ... @@ -301,7 +301,7 @@
301 301 br.setErrormsg("该高危专案档案号已存在");
302 302 return br;
303 303 }
304   - if(patients.get(0).getFileCode()!=null && !(patients.get(0).getFileCode().length() >0)){
  304 + if(CollectionUtils.isNotEmpty(patients) && !(patients.get(0).getFileCode().length() >0)){
305 305 br.setErrorcode(ErrorCodeConstants.DATA_EXIST);
306 306 br.setErrormsg("该档案号已存在");
307 307 return br;