Commit 8ee72946aa33651a8d7082d03cbca02233997f6c
1 parent
c3d55f8d27
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/facade/DischargeAbstractFacade.java
View file @
8ee7294
... | ... | @@ -128,6 +128,12 @@ |
128 | 128 | List<DischargeAbstractBabyModel> dischargeAbstractBabyModelList = new ArrayList<>(); |
129 | 129 | if (babyList != null && babyList.size() > 0) { |
130 | 130 | for (DischargeAbstractSaveRequest.Baby baby : babyList) { |
131 | + | |
132 | + if (StringUtils.isEmpty(baby.getpId())) | |
133 | + { | |
134 | + continue; | |
135 | + } | |
136 | + | |
131 | 137 | DischargeAbstractBabyModel dischargeAbstractBabyModel = new DischargeAbstractBabyModel(); |
132 | 138 | BeanUtils.copy(baby, dischargeAbstractBabyModel); |
133 | 139 | dischargeAbstractBabyModel.setMotherId(dischargeAbstractMotherModel.getId()); |