From 1941a5e2c2a0c657490b575eac8df8f6efbdd1ce Mon Sep 17 00:00:00 2001 From: changpengfei Date: Sat, 18 Sep 2021 14:10:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=82=A3=E8=80=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF---=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AB=AF=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../talkonlineweb/controller/PatientController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- 1.8.3.1