Commit 66b6335fdf1d9dbf52b03e24a378801c666bce18
1 parent
2ae413f095
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 5 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
66b6335
... | ... | @@ -1300,8 +1300,6 @@ |
1300 | 1300 | puerperaQuery.setPhoneOrCert(param.getCardNo()); |
1301 | 1301 | } else if (param.getHospitalId() != null & !StringUtils.isEmpty(param.getVcCardNo())) { |
1302 | 1302 | |
1303 | - puerperaQuery.setVcCardNo(param.getVcCardNo()); | |
1304 | - | |
1305 | 1303 | long start = System.currentTimeMillis(); |
1306 | 1304 | BabyModelQuery babyQuery = new BabyModelQuery(); |
1307 | 1305 | babyQuery.setYn(YnEnums.YES.getId()); |
... | ... | @@ -1394,7 +1392,11 @@ |
1394 | 1392 | } |
1395 | 1393 | } |
1396 | 1394 | |
1397 | - Patients patients = patientsService.findOnePatientByCardNo(puerperaQuery); | |
1395 | + Patients patients = null; | |
1396 | + if (StringUtils.isNotEmpty(puerperaQuery.getCardNo())) | |
1397 | + { | |
1398 | + patients = patientsService.findOnePatientByCardNo(puerperaQuery); | |
1399 | + } | |
1398 | 1400 | map.put("patients", patients); |
1399 | 1401 | map.put("records", results); |
1400 | 1402 | map.put("buildInfo", buildInfo == null ? null : getBabyBuildResult(buildInfo)); |