Commit 7e8bf39269ba9b11099b7aa7a5dca0e9583b110c
1 parent
5d08de1972
Exists in
master
and in
8 other branches
修改建档时对手机号的唯一性判断
Showing 1 changed file with 11 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsArchiveFacade.java
View file @
7e8bf39
... | ... | @@ -185,6 +185,17 @@ |
185 | 185 | if (CollectionUtils.isNotEmpty(modelList)){ |
186 | 186 | ResidentsArchiveModel archiveModel = modelList.get(0); |
187 | 187 | |
188 | + if (archiveModel != null & StringUtils.isNotEmpty(addRequest.getPhone()) && !archiveModel.getPhone().equals(addRequest.getPhone()) ){ | |
189 | + query.setCertificateNum(null); | |
190 | + query.setPhone(addRequest.getPhone()); | |
191 | + modelList = residentsArchiveService.queryResident(query); | |
192 | + if (CollectionUtils.isNotEmpty(modelList)){ | |
193 | + br.setErrorcode(ErrorCodeConstants.DATA_EXIST); | |
194 | + br.setErrormsg("该手机号在医院已经建档"); | |
195 | + return br; | |
196 | + } | |
197 | + } | |
198 | + | |
188 | 199 | if (archiveModel != null && StringUtils.isNotEmpty(archiveModel.getVcCardNo()) && !archiveModel.getVcCardNo().equals(addRequest.getVcCardNo())){ |
189 | 200 | |
190 | 201 | //判断该就诊卡号是否在该医院建档 |