Commit 35bff24b0ca64f88b8eec91c18d17edc086927f6
1 parent
a66cceac01
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 8 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PreEugebicsServiceImpl.java
View file @
35bff24
... | ... | @@ -122,6 +122,10 @@ |
122 | 122 | if (model != null && "5d0b782f-b61b-441b-b8c5-4bf55eece273".equals(model.getSex())) { |
123 | 123 | hmodel = model; |
124 | 124 | } |
125 | + else | |
126 | + { | |
127 | + wmodel = model; | |
128 | + } | |
125 | 129 | |
126 | 130 | if (model == null) { |
127 | 131 | |
... | ... | @@ -137,6 +141,10 @@ |
137 | 141 | ResidentsArchiveModel model1 = mongoTemplate.findOne(Query.query(Criteria.where("certificateNum").is(datas.get(0).getSpouseCertificateNum()).and("hospitalId").is(hospitalId)), ResidentsArchiveModel.class); |
138 | 142 | if (model1 != null && !"5d0b782f-b61b-441b-b8c5-4bf55eece273".equals(model1.getSex())) { |
139 | 143 | wmodel = model1; |
144 | + } | |
145 | + else | |
146 | + { | |
147 | + hmodel = model1; | |
140 | 148 | } |
141 | 149 | } |
142 | 150 | ////男 |