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 e481708..239cb32 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -182,6 +182,24 @@ public class PatientController { } /** + * 更新患者信息---小程序端使用 + * + * @param patient + * @return + */ + @PostMapping("updatePatient") + public BaseResponse updatePatient(LymsPatient patient){ + BaseResponse baseResponse=new BaseResponse(); + boolean f=false; + if(Objects.nonNull(patient.getId()) ){ + patient.setUpdatedtime(new Date()); + f=lymsPatientService.saveOrUpdate(patient); + } + baseResponse.setErrorcode(f==true?0:1); + return baseResponse; + } + + /** * 删除患者 * * @param id