Commit 7e11bb9f34d60cb079ef45083eb227589deba6ef
1 parent
55fb562538
Exists in
master
and in
6 other branches
产检人数明细查看修复
Showing 1 changed file with 6 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/NewbornServiceImpl.java
View file @
7e11bb9
... | ... | @@ -105,6 +105,12 @@ |
105 | 105 | * @return |
106 | 106 | */ |
107 | 107 | private boolean buildArchive(Integer userId, String pid, String babyId) { |
108 | + if(StringUtils.isEmpty(pid)) { | |
109 | + BabyModel babyModel = mongoTemplate.findById(babyId, BabyModel.class); | |
110 | + if(babyModel != null) { | |
111 | + pid = babyModel.getPid(); | |
112 | + } | |
113 | + } | |
108 | 114 | Assert.notNull(pid, "pid 不能为null"); |
109 | 115 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
110 | 116 | // 如果本院已有记录 直接走正常流程 |