Commit 292dce84fe45a5bf40d4cdd854f12cdaab17b69e
1 parent
78283bb5a0
Exists in
master
and in
8 other branches
code update
Showing 2 changed files with 30 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
292dce8
| ... | ... | @@ -254,6 +254,22 @@ |
| 254 | 254 | } |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | + //判断就诊卡号是否已经建档 | |
| 258 | + if (StringUtils.isNotEmpty(request.getVcCardNo()) ) | |
| 259 | + { | |
| 260 | + BabyModelQuery babyQuery = new BabyModelQuery(); | |
| 261 | + babyQuery.setYn(YnEnums.YES.getId()); | |
| 262 | + babyQuery.setVcCardNo(request.getVcCardNo()); | |
| 263 | + babyQuery.setHospitalId(request.getHospitalId()); | |
| 264 | + List<BabyModel> models = babyBookbuildingService.queryBabyBuildByCond(babyQuery); | |
| 265 | + if (CollectionUtils.isNotEmpty(models)) | |
| 266 | + { | |
| 267 | + br.setErrorcode(ErrorCodeConstants.DATA_EXIST); | |
| 268 | + br.setErrormsg("儿童就诊卡号在该医院已经建档"); | |
| 269 | + return br; | |
| 270 | + } | |
| 271 | + } | |
| 272 | + | |
| 257 | 273 | Patients patients = null; |
| 258 | 274 | PersonModel resperson = null; |
| 259 | 275 | String babyPersonId = ""; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
292dce8
| ... | ... | @@ -113,6 +113,20 @@ |
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + //就诊卡号判断 | |
| 117 | + if (StringUtils.isNotEmpty(yunRequest.getVcCardNo())) | |
| 118 | + { | |
| 119 | + patientsQuery.setVcCardNo(yunRequest.getVcCardNo()); | |
| 120 | + patientsQuery.setHospitalId(yunRequest.getHospitalId()); | |
| 121 | + List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); | |
| 122 | + if (CollectionUtils.isNotEmpty(patients)) | |
| 123 | + { | |
| 124 | + br.setErrorcode(ErrorCodeConstants.DATA_EXIST); | |
| 125 | + br.setErrormsg("该就诊卡号在该医院已经建档"); | |
| 126 | + return br; | |
| 127 | + } | |
| 128 | + } | |
| 129 | + | |
| 116 | 130 | Integer type = 1; //1孕妇 2儿童 3产妇 |
| 117 | 131 | Date date = null; |
| 118 | 132 | if (yunRequest.getLastMenstrualPeriod() != null) |