Commit d74109f4e1c3654a5c69fd3032a51297b4241353
1 parent
2516fe458b
Exists in
master
and in
8 other branches
修改新电子病历
Showing 1 changed file with 14 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
d74109f
... | ... | @@ -189,10 +189,20 @@ |
189 | 189 | } |
190 | 190 | } catch (Exception e) { |
191 | 191 | } |
192 | - if (!list.isEmpty()) { | |
192 | + /* if (!list.isEmpty()) { | |
193 | 193 | patients.setRiskLevelId(JsonUtil.array2JsonString(list)); |
194 | - } | |
194 | + }*/ | |
195 | 195 | patientsService.updatePatient(patients); |
196 | + if (!list.isEmpty()) { | |
197 | + Patients patients1 = new Patients(); | |
198 | + patients1.setRiskLevelId(JsonUtil.array2JsonString(list)); | |
199 | + patients1.setModified(new Date()); | |
200 | + PatientsQuery patientsQuery = new PatientsQuery(); | |
201 | + patientsQuery.setPid(patients.getPid()); | |
202 | + patientsQuery.setYn(YnEnums.YES.getId()); | |
203 | + patientsQuery.setType(1); | |
204 | + patientsService.findAndModify(patientsQuery, patients1); | |
205 | + } | |
196 | 206 | } |
197 | 207 | |
198 | 208 | //修改患者风险等级 |
199 | 209 | |
... | ... | @@ -224,10 +234,12 @@ |
224 | 234 | patientsService.updatePatient(patients); |
225 | 235 | if (!list.isEmpty()) { |
226 | 236 | Patients patients1 = new Patients(); |
237 | + patients1.setModified(new Date()); | |
227 | 238 | patients1.setRiskLevelId(JsonUtil.array2JsonString(list)); |
228 | 239 | PatientsQuery patientsQuery = new PatientsQuery(); |
229 | 240 | patientsQuery.setPid(patients.getPid()); |
230 | 241 | patientsQuery.setYn(YnEnums.YES.getId()); |
242 | + patientsQuery.setType(1); | |
231 | 243 | patientsService.findAndModify(patientsQuery, patients1); |
232 | 244 | } |
233 | 245 | } |