Commit 36f7b2da98e762a1aef44f4e50e42737cedf7081

Authored by jiangjiazhi
1 parent 50cb6e9982

全部孕妇管理增加按照排序

Showing 1 changed file with 9 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 36f7b2d
... ... @@ -319,15 +319,18 @@
319 319 }
320 320 }*/
321 321 Patients patients = patientsService.findOnePatientById(antExAddRequest.getParentId());
322   - patients.setLastCheckEmployeeId(antExAddRequest.getCheckDoctor());
  322 + Patients patients1 =new Patients();
  323 + patients1.setId(patients.getId());
  324 + patients1.setLastCheckEmployeeId(antExAddRequest.getCheckDoctor());
323 325  
324   - model.setPid(patients.getPid());
325   - if (StringUtils.isNotEmpty(patients.getEnable()) && "0".equals(patients.getEnable())) {
326   - patients.setEnable("1");
  326 + model.setPid(patients1.getPid());
  327 + if (StringUtils.isNotEmpty(patients1.getEnable()) && "0".equals(patients1.getEnable())) {
  328 + patients1.setEnable("1");
327 329 }
  330 +
328 331 patientsService.updateNextCheckTime(antExAddRequest.getNextCheckTime(), patients.getId());
329   - patientsService.updatePatient(patients);
330   - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(antExAddRequest.getNextCheckTime())? null : DateUtil.parseYMD(antExAddRequest.getNextCheckTime()));
  332 + patientsService.updatePatient(patients1);
  333 + patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(antExAddRequest.getNextCheckTime()) ? null : DateUtil.parseYMD(antExAddRequest.getNextCheckTime()));
331 334  
332 335 antenatalExaminationService.addOneBabyAnt(model);
333 336