Commit 70f0e146f82c34edb128cf8cda45fb6989849ae0
1 parent
a0b64aee5e
Exists in
master
and in
1 other branch
下次预约时间修改
Showing 1 changed file with 7 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
70f0e14
... | ... | @@ -136,8 +136,8 @@ |
136 | 136 | Patients patients = patientsService.findOnePatientById(antExAddRequest.getParentId()); |
137 | 137 | |
138 | 138 | patients.setLastCheckEmployeeId(antExAddRequest.getCheckDoctor()); |
139 | - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(antExAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(antExAddRequest.getNextCheckTime())); | |
140 | 139 | patientsService.updatePatient(patients); |
140 | + patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(antExAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(antExAddRequest.getNextCheckTime())); | |
141 | 141 | //修改孕妇高危等级 |
142 | 142 | updateLastRisk(antExAddRequest.getParentId()); |
143 | 143 | |
144 | 144 | |
... | ... | @@ -160,12 +160,13 @@ |
160 | 160 | } |
161 | 161 | Patients patients = patientsService.findOnePatientById(antExAddRequest.getParentId()); |
162 | 162 | patients.setLastCheckEmployeeId(antExAddRequest.getCheckDoctor()); |
163 | - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(antExAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(antExAddRequest.getNextCheckTime())); | |
163 | + | |
164 | 164 | model.setPid(patients.getPid()); |
165 | 165 | if (StringUtils.isNotEmpty(patients.getEnable()) && "0".equals(patients.getEnable())) { |
166 | 166 | patients.setEnable("1"); |
167 | 167 | } |
168 | 168 | patientsService.updatePatient(patients); |
169 | + patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(antExAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(antExAddRequest.getNextCheckTime())); | |
169 | 170 | antenatalExaminationService.addOneBabyAnt(model); |
170 | 171 | |
171 | 172 | //修改最后一次检查时间 |
172 | 173 | |
... | ... | @@ -248,13 +249,14 @@ |
248 | 249 | |
249 | 250 | Patients patients = patientsService.findOnePatientById(excAddRequest.getParentId()); |
250 | 251 | patients.setLastCheckEmployeeId(excAddRequest.getProdDoctor()); |
251 | - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(excAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(excAddRequest.getNextCheckTime())); | |
252 | + | |
252 | 253 | if (StringUtils.isNotEmpty(patients.getEnable()) && "0".equals(patients.getEnable())) { |
253 | 254 | patients.setEnable("1"); |
254 | 255 | } |
255 | 256 | //修改患者风险等级 |
256 | 257 | // updatePatientRiskLevel(antExChuModel, patients); |
257 | 258 | patientsService.updatePatient(patients); |
259 | + patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(excAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(excAddRequest.getNextCheckTime())); | |
258 | 260 | //修改本系统最后的高危 |
259 | 261 | updateLastRisk(patients.getId()); |
260 | 262 | //修改本院最后一次定义高危 |
261 | 263 | |
... | ... | @@ -292,10 +294,11 @@ |
292 | 294 | antExChuModel.setHospitalId(autoMatchFacade.getHospitalId(userId)); |
293 | 295 | antenatalExaminationService.addOneAntEx(antExChuModel); |
294 | 296 | //修改患者风险等级 |
295 | - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(excAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(excAddRequest.getNextCheckTime())); | |
297 | + | |
296 | 298 | patients.setLastCheckEmployeeId(excAddRequest.getProdDoctor()); |
297 | 299 | // updatePatientRiskLevel(antExChuModel, patients); |
298 | 300 | patientsService.updatePatient(patients); |
301 | + patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(excAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(excAddRequest.getNextCheckTime())); | |
299 | 302 | updateLastRisk(patients.getId()); |
300 | 303 | |
301 | 304 | //修改本院最后一次定义高危 |