From 66defd4e876bc7b7bcbd4ec0ff7ab741b87eb8ee Mon Sep 17 00:00:00 2001 From: shiyang <316555390@qq.com> Date: Thu, 4 Nov 2021 17:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=82=A3=E8=80=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=89=80=E6=9C=89=E7=97=85=E4=BE=8B=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=82=A3=E8=80=85bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lyms/talkonlineweb/controller/PatientController.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 31e97d4..aab79b9 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -326,6 +326,19 @@ public class PatientController { baseResponse.setObject(patientInfo2); return baseResponse; } + /** + * 查询患者信息所有病例 + * + * @param patientInfo + * @return + */ + @GetMapping("queryPatient2") + public BaseResponse queryPatient2(PatientInfo patientInfo) { + BaseResponse baseResponse = new BaseResponse(); + List patientInfo2 = patientInfoService.list(Wrappers.query(patientInfo)); + baseResponse.setObject(patientInfo2); + return baseResponse; + } /** @@ -732,7 +745,7 @@ public class PatientController { } @PostMapping("updatePatientCase") - public BaseResponse updatePatient(LymsPatient patient,LymsPcase pcase,LymsIllness illness){ + public BaseResponse updatePatient(LymsPatient patient,LymsPcase pcase,LymsIllness illness,Integer ilid){ BaseResponse baseResponse=new BaseResponse(); baseResponse.setErrorcode(1); baseResponse.setErrormsg("修改失败!"); @@ -741,6 +754,7 @@ public class PatientController { f=lymsPatientService.saveOrUpdate(patient); f=lymsPcaseService.saveOrUpdate(pcase); + illness.setId(ilid);//前端传入一组夸对象组合。后端用3组对象接受。前端传的是ilid这里id值是错误的。需要ilid赋给id。 f=lymsIllnessService.saveOrUpdate(illness); baseResponse.setErrorcode(0); baseResponse.setErrormsg(""); -- 1.8.3.1