Jelajahi Sumber

代码修改

LAPTOP-KB9HII50\70708 1 tahun lalu
induk
melakukan
9ad8300abd

+ 20 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/base/servicePackage/ServiceItemPlanDO.java

@ -33,6 +33,8 @@ public class ServiceItemPlanDO extends UuidIdentityEntityWithCreateTime {
    private String guidanceMessage;//指导留言
    private String followupStatus;//随访状态 0取消 1已完成 2未开始 3进行中 4待审核
    private String planDoctor;//计划负责人
    private String planDoctorName;//计划负责人
    @Column(name = "patient")
    public String getPatient() {
@ -169,4 +171,22 @@ public class ServiceItemPlanDO extends UuidIdentityEntityWithCreateTime {
    public void setReservationType(Integer reservationType) {
        this.reservationType = reservationType;
    }
    @Transient
    public String getPlanDoctor() {
        return planDoctor;
    }
    public void setPlanDoctor(String planDoctor) {
        this.planDoctor = planDoctor;
    }
    @Transient
    public String getPlanDoctorName() {
        return planDoctorName;
    }
    public void setPlanDoctorName(String planDoctorName) {
        this.planDoctorName = planDoctorName;
    }
}

+ 3 - 1
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/rehabilitation/controller/RehabilitationManageController.java

@ -401,7 +401,9 @@ public class RehabilitationManageController extends EnvelopRestEndpoint {
        try {
            rehabilitationGuidanceService.sendSpecialistWeixinMessage(patient,doctor,type,relationCode,planId,reservationType);
            return success("请求成功!");
        } catch (Exception e) {
        }catch (ServiceException se){
            return Envelop.getError(se.getMessage());
        }catch (Exception e) {
            e.printStackTrace();
            return failed("请求失败");
        }

+ 5 - 0
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/rehabilitation/service/RehabilitationManageService.java

@ -1449,6 +1449,11 @@ public class RehabilitationManageService {
                planDO.setFollowupStatus(followup.getStatus());
            }
        }
        PatientRehabilitationPlanDO rehabilitationPlanDO = patientRehabilitationPlanDao.findById(planDO.getPlanId()).orElse(null);
        if(rehabilitationPlanDO!=null){
            planDO.setPlanDoctor(rehabilitationPlanDO.getPlanDoctor());
            planDO.setPlanDoctorName(rehabilitationPlanDO.getPlanDoctorName());
        }
        return planDO;
    }