Commit cab82421af9775ac2eca4854bab83c5a90392f32

Authored by changpengfei
1 parent 589fed6e13
Exists in master and in 1 other branch dev

添加修改疾病

Showing 1 changed file with 18 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ cab8242
... ... @@ -724,5 +724,23 @@
724 724 logEntity.setLogDate(new Date());
725 725 lymsLogsService.save(logEntity);
726 726 }
  727 +
  728 + @PostMapping("updatePatient")
  729 + public BaseResponse updatePatient(LymsPatient patient,LymsPcase pcase,LymsIllness illness){
  730 + BaseResponse baseResponse=new BaseResponse();
  731 + baseResponse.setErrorcode(1);
  732 + baseResponse.setErrormsg("修改失败!");
  733 + boolean f=false;
  734 + if(null!=patient.getId() && null!=pcase.getPcid() && null!=illness.getId()){
  735 +
  736 + f=lymsPatientService.saveOrUpdate(patient);
  737 + f=lymsPcaseService.saveOrUpdate(pcase);
  738 + f=lymsIllnessService.saveOrUpdate(illness);
  739 + baseResponse.setErrorcode(0);
  740 + baseResponse.setErrormsg("");
  741 + }
  742 +
  743 + return baseResponse;
  744 + }
727 745 }