Commit 66defd4e876bc7b7bcbd4ec0ff7ab741b87eb8ee

Authored by shiyang
1 parent b7eaa8c155
Exists in master

查询患者信息所有病例,修改患者bug

Showing 1 changed file with 15 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 66defd4
... ... @@ -326,6 +326,19 @@
326 326 baseResponse.setObject(patientInfo2);
327 327 return baseResponse;
328 328 }
  329 + /**
  330 + * 查询患者信息所有病例
  331 + *
  332 + * @param patientInfo
  333 + * @return
  334 + */
  335 + @GetMapping("queryPatient2")
  336 + public BaseResponse queryPatient2(PatientInfo patientInfo) {
  337 + BaseResponse baseResponse = new BaseResponse();
  338 + List<PatientInfo> patientInfo2 = patientInfoService.list(Wrappers.query(patientInfo));
  339 + baseResponse.setObject(patientInfo2);
  340 + return baseResponse;
  341 + }
329 342  
330 343  
331 344 /**
... ... @@ -732,7 +745,7 @@
732 745 }
733 746  
734 747 @PostMapping("updatePatientCase")
735   - public BaseResponse updatePatient(LymsPatient patient,LymsPcase pcase,LymsIllness illness){
  748 + public BaseResponse updatePatient(LymsPatient patient,LymsPcase pcase,LymsIllness illness,Integer ilid){
736 749 BaseResponse baseResponse=new BaseResponse();
737 750 baseResponse.setErrorcode(1);
738 751 baseResponse.setErrormsg("修改失败!");
... ... @@ -741,6 +754,7 @@
741 754  
742 755 f=lymsPatientService.saveOrUpdate(patient);
743 756 f=lymsPcaseService.saveOrUpdate(pcase);
  757 + illness.setId(ilid);//前端传入一组夸对象组合。后端用3组对象接受。前端传的是ilid这里id值是错误的。需要ilid赋给id。
744 758 f=lymsIllnessService.saveOrUpdate(illness);
745 759 baseResponse.setErrorcode(0);
746 760 baseResponse.setErrormsg("");