From cab82421af9775ac2eca4854bab83c5a90392f32 Mon Sep 17 00:00:00 2001 From: changpengfei Date: Mon, 11 Oct 2021 14:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E7=96=BE?= =?UTF-8?q?=E7=97=85?= 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 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; + } } -- 1.8.3.1