Commit 43e708df34bdbe1abb28edf7b7132f6d2e7cf4b4
1 parent
620474c3c6
Exists in
dev
13:判断建当时,档案号是否重复
Showing 1 changed file with 6 additions and 16 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
43e708d
| ... | ... | @@ -310,27 +310,17 @@ |
| 310 | 310 | } |
| 311 | 311 | } |
| 312 | 312 | if (StringUtils.isNotEmpty(yunRequest.getFileCode())) { |
| 313 | - System.out.println("检查档案号"); | |
| 314 | - System.out.println("检查档案号"); | |
| 315 | - System.out.println("检查档案号"); | |
| 316 | - patientsQuery.setCardNo(null); | |
| 317 | - patientsQuery.setPhone(null); | |
| 318 | - patientsQuery.setFileCode(yunRequest.getFileCode()); | |
| 313 | + PatientsQuery query = new PatientsQuery(); | |
| 314 | + query.setFileCode(yunRequest.getFileCode()); | |
| 315 | + query.setHospitalId(yunRequest.getHospitalId()); | |
| 316 | + query.setYn(YnEnums.YES.getId()); | |
| 319 | 317 | //判断该手机号码在 孕期内有没有建档 |
| 320 | - List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); | |
| 321 | - if(CollectionUtils.isNotEmpty(patients)){ | |
| 318 | + List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(query); | |
| 319 | + if(CollectionUtils.isNotEmpty(patients) ){ | |
| 322 | 320 | br.setErrorcode(ErrorCodeConstants.DATA_EXIST); |
| 323 | - System.out.println("检查档案号完毕"); | |
| 324 | - System.out.println("检查档案号完毕"); | |
| 325 | - System.out.println("检查档案号完毕"); | |
| 326 | 321 | br.setErrormsg("该档案号已存在"); |
| 327 | 322 | return br; |
| 328 | 323 | } |
| 329 | - | |
| 330 | - }else{ | |
| 331 | - System.out.println("检查档案号完毕为空"); | |
| 332 | - System.out.println("检查档案号完毕为空"); | |
| 333 | - System.out.println("检查档案号完毕为空"); | |
| 334 | 324 | } |
| 335 | 325 | //就诊卡号判断 |
| 336 | 326 | // if (StringUtils.isNotEmpty(yunRequest.getVcCardNo())) { |