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("");