diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 94aa4bb..50752db 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -724,4 +724,22 @@ public class PatientController { logEntity.setLogDate(new Date()); lymsLogsService.save(logEntity); } + + @PostMapping("updatePatient") + public BaseResponse updatePatient(LymsPatient patient,LymsPcase pcase,LymsIllness illness){ + BaseResponse baseResponse=new BaseResponse(); + baseResponse.setErrorcode(1); + baseResponse.setErrormsg("修改失败!"); + boolean f=false; + if(null!=patient.getId() && null!=pcase.getPcid() && null!=illness.getId()){ + + f=lymsPatientService.saveOrUpdate(patient); + f=lymsPcaseService.saveOrUpdate(pcase); + f=lymsIllnessService.saveOrUpdate(illness); + baseResponse.setErrorcode(0); + baseResponse.setErrormsg(""); + } + + return baseResponse; + } }