Commit 261e609e4b35fc6a479d0947a0511c0903abaf01
1 parent
704b63b110
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 7 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
261e609
... | ... | @@ -383,11 +383,7 @@ |
383 | 383 | * @return |
384 | 384 | */ |
385 | 385 | public BaseResponse updateBabyBookbuilding(BabyBookbuildingAddRequest request, Integer userId) { |
386 | - //预建档的要加上编码 | |
387 | - if(request.getYn()==0 && StringUtils.isEmpty(request.getEncoded())){ | |
388 | - String encodedUtil = getEncodedUtil(); | |
389 | - request.setEncoded(encodedUtil); | |
390 | - } | |
386 | + | |
391 | 387 | BabyModel model = getBabyModel(request, true, userId); |
392 | 388 | |
393 | 389 | String hid = autoMatchFacade.getHospitalId(userId); |
394 | 390 | |
... | ... | @@ -1140,9 +1136,15 @@ |
1140 | 1136 | } |
1141 | 1137 | //新生儿民族Id |
1142 | 1138 | bm.setBnationId(b.getBnationId());//新生儿民族Id |
1139 | + | |
1143 | 1140 | // 编码,新增时候增加修改不做处理 |
1144 | 1141 | if (StringUtils.isEmpty(b.getId())) { |
1145 | 1142 | bm.setEncoded(b.getEncoded()); |
1143 | + } | |
1144 | + //预建档的要加上编码 | |
1145 | + if(b.getYn()==0 && StringUtils.isEmpty(b.getEncoded())){ | |
1146 | + String encodedUtil = getEncodedUtil(); | |
1147 | + bm.setEncoded(encodedUtil); | |
1146 | 1148 | } |
1147 | 1149 | bm.setLiveType(b.getLiveType()); |
1148 | 1150 | bm.setFileCode(b.getFileCode()); |