suqinyi 3 mēneši atpakaļ
vecāks
revīzija
74666e87f5

+ 4 - 0
business/base-service/src/main/java/com/yihu/jw/article/service/KnowledgeArticleDictService.java

@ -458,6 +458,10 @@ public class KnowledgeArticleDictService extends BaseJpaService<KnowledgeArticle
                patientBusinessDO.setCollection(0);
                patientBusinessDO.setDel(1);
                patientBusinessDO = patientBusinessDao.save(patientBusinessDO);
                //更新数量
                String updatasql="  update wlyy_knowledge_article_dict set is_share=is_share+1 where id='"+patientBusinessDO.getRelationCode()+"'";
                jdbcTemplate.execute(updatasql);
                if (patientBusinessDO.getRelationType() == 2) {
                    WlyySurveyUserDO wlyySurveyUserDO = new WlyySurveyUserDO();
                    String doctor = patientBusinessDO.getDoctor();

+ 34 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/followup/Followup.java

@ -102,6 +102,15 @@ public class Followup extends LongIdentityEntity {
	private Integer pgStatus;//pg_status
	private String visitCount;//访视次序 (中度到重度慢阻肺)
	private String planId;
	private String planDetailId;
	private String planItemId;
	@Column(name = "doctor_read_status")
	public Integer getDoctorReadStatus() {
		return doctorReadStatus;
@ -481,4 +490,29 @@ public class Followup extends LongIdentityEntity {
	public void setVisitCount(String visitCount) {
		this.visitCount = visitCount;
	}
	@Transient
	public String getPlanId() {
		return planId;
	}
	public void setPlanId(String planId) {
		this.planId = planId;
	}
	@Transient
	public String getPlanDetailId() {
		return planDetailId;
	}
	public void setPlanDetailId(String planDetailId) {
		this.planDetailId = planDetailId;
	}
	@Transient
	public String getPlanItemId() {
		return planItemId;
	}
	public void setPlanItemId(String planItemId) {
		this.planItemId = planItemId;
	}
}

+ 1 - 0
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/article/ArticleEndpoint.java

@ -356,6 +356,7 @@ public class ArticleEndpoint extends EnvelopRestEndpoint {
    ) throws Exception {
        try {
            //[{"user":"ff8080818ccd5d24018d33c0ccf000ed","userName":"巫灿辉","relationCode":"ff80808190fe73fb0191017219db0011","relationType":3,"relationName":"0730高血压测试","createUser":"402803816babc778016babca6d540008","createUserName":"蒋星"}]
            System.out.println("sendArticleToUser==>"+json);
            JSONArray jsonArray = JSONArray.parseArray(json);
            List<KnowledgeArticleUserDO> knowledgeArticleUserDOList = new ArrayList<>();

+ 8 - 0
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/service/consult/KnowledgeArticleUserService.java

@ -1,5 +1,6 @@
package com.yihu.jw.hospital.service.consult;
import com.alibaba.fastjson.JSON;
import com.yihu.jw.article.dao.KnowledgeArticleUserDao;
import com.yihu.jw.entity.base.patient.BasePatientBusinessDO;
import com.yihu.jw.entity.hospital.article.KnowledgeArticleUserDO;
@ -34,6 +35,7 @@ public class KnowledgeArticleUserService extends BaseJpaService<KnowledgeArticle
     */
    public List<KnowledgeArticleUserDO> sendArticleToUser(List<KnowledgeArticleUserDO> knowledgeArticleUserDOList) {
        ArrayList<KnowledgeArticleUserDO> list = new ArrayList<>();
        System.out.println("knowledgeArticleUserDOList.size()==>"+knowledgeArticleUserDOList.size());
        if (knowledgeArticleUserDOList != null && knowledgeArticleUserDOList.size() > 0) {
            for (KnowledgeArticleUserDO articleUserDO : knowledgeArticleUserDOList) {
                KnowledgeArticleUserDO knowledgeArticleUserDO = knowledgeArticleUserDao.findByrelationCodeAndUserAndDel(articleUserDO.getRelationCode(), articleUserDO.getUser());
@ -44,15 +46,21 @@ public class KnowledgeArticleUserService extends BaseJpaService<KnowledgeArticle
                    list.add(knowledgeArticleUserDO);
                }
                BasePatientBusinessDO businessDO = new BasePatientBusinessDO();
                businessDO.setPatient(articleUserDO.getUser());
                businessDO.setPatientName(articleUserDO.getUserName());
                businessDO.setDoctor(articleUserDO.getCreateUser());
                businessDO.setDoctorName(articleUserDO.getCreateUserName());
                businessDO.setRelationCode(articleUserDO.getRelationCode());
                businessDO.setRelationName(articleUserDO.getRelationName());
                businessDO.setRelationType(articleUserDO.getRelationType());
                businessDO.setDel(1);
                businessDO.setCreateTime(new Date());
                businessDO.setUpdateTime(new Date());
                basePatientBusinessDao.save(businessDO);
                String updatasql="  update wlyy_knowledge_article_dict set is_share=is_share+1 where id='"+businessDO.getRelationCode()+"'";
                jdbcTemplate.execute(updatasql);
                System.out.println("保存-BasePatientBusinessDO-成功"+ JSON.toJSONString(businessDO));
            }
        }
        System.out.println("保存数量==>" + list.size());

+ 18 - 30
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/common/LabelController.java

@ -43,30 +43,20 @@ public class LabelController extends EnvelopRestEndpoint {
    @GetMapping(value = "signPage")
    @ApiOperation(value = "慢病管理", notes = "慢病管理")
    public Envelop signPage(@ApiParam(name = "page", value = "第几页")
                             @RequestParam(value = "page", required = true) Integer page,
                             @ApiParam(name = "size", value = "每页大小")
                             @RequestParam(value = "size", required = true) Integer size,
                            @ApiParam(name = "name", value = "居民姓名")
                                @RequestParam(value = "name", required = false) String name,
                            @ApiParam(name = "idcard", value = "身份证")
                                @RequestParam(value = "idcard", required = false) String idcard,
                            @ApiParam(name = "address", value = "地址")
                                @RequestParam(value = "address", required = false) String address,
                            @ApiParam(name = "hospitalName", value = "签约社区")
                                @RequestParam(value = "hospitalName", required = false) String hospitalName,
                            @ApiParam(name = "doctorName", value = "签约医生")
                                @RequestParam(value = "doctorName", required = false) String doctorName,
                            @ApiParam(name = "health", value = "健康情况")
                                @RequestParam(value = "health", required = false) String health,
                            @ApiParam(name = "disease", value = "疾病类型")
                                @RequestParam(value = "disease", required = false) String disease,
                            @ApiParam(name = "zbType", value = "专病类型")
                                @RequestParam(value = "zbType", required = false) String zbType,
                            @ApiParam(name = "zdyGroup", value = "自定义分组")
                                @RequestParam(value = "zdyGroup", required = false) String zdyGroup,
                            @ApiParam(name = "diseaseCondition", value = "病情")
                                @RequestParam(value = "diseaseCondition", required = false) String diseaseCondition) {
    public Envelop signPage(
            @ApiParam(name = "page", value = "第几页") @RequestParam(value = "page", required = true) Integer page,
            @ApiParam(name = "size", value = "每页大小") @RequestParam(value = "size", required = true) Integer size,
            @ApiParam(name = "name", value = "居民姓名") @RequestParam(value = "name", required = false) String name,
            @ApiParam(name = "idcard", value = "身份证") @RequestParam(value = "idcard", required = false) String idcard,
            @ApiParam(name = "address", value = "地址") @RequestParam(value = "address", required = false) String address,
            @ApiParam(name = "hospitalName", value = "签约社区") @RequestParam(value = "hospitalName", required = false) String hospitalName,
            @ApiParam(name = "doctorName", value = "签约医生") @RequestParam(value = "doctorName", required = false) String doctorName,
            @ApiParam(name = "health", value = "健康情况") @RequestParam(value = "health", required = false) String health,
            @ApiParam(name = "disease", value = "疾病类型") @RequestParam(value = "disease", required = false) String disease,
            @ApiParam(name = "zbType", value = "专病类型") @RequestParam(value = "zbType", required = false) String zbType,
            @ApiParam(name = "zdyGroup", value = "自定义分组") @RequestParam(value = "zdyGroup", required = false) String zdyGroup,
            @ApiParam(name = "diseaseCondition", value = "病情") @RequestParam(value = "diseaseCondition", required = false) String diseaseCondition
    ) {
        try {
            return labelService.signPage(page, size, name, idcard, address, hospitalName, doctorName, health, disease,
                    zbType, zdyGroup, diseaseCondition);
@ -154,12 +144,10 @@ public class LabelController extends EnvelopRestEndpoint {
    @PostMapping(value = "savePatientLabel")
    @ApiOperation(value = "保存居民标签", notes = "保存居民标签")
    public Envelop savePatientLabel(@ApiParam(name = "patient", value = "居民ID")
                                    @RequestParam(value = "patient", required = true) String patient,
                                    @ApiParam(name = "doctor", value = "医生ID")
                                    @RequestParam(value = "doctor", required = true) String doctor,
                                    @ApiParam(name = "labelDOS", value = "标签集合",required = false)
                                    @RequestParam(value = "labelDOS", required = false) String labelDOS) {
    public Envelop savePatientLabel(
            @ApiParam(name = "patient", value = "居民ID") @RequestParam(value = "patient", required = true) String patient,
            @ApiParam(name = "doctor", value = "医生ID") @RequestParam(value = "doctor", required = true) String doctor,
            @ApiParam(name = "labelDOS", value = "标签集合",required = false) @RequestParam(value = "labelDOS", required = false) String labelDOS) {
        try {
            List<WlyyPatientLabelDO> labels = null;
            if(StringUtils.isNotBlank(labelDOS)){

+ 1 - 1
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/followup/service/FollowUpService.java

@ -1512,7 +1512,7 @@ public class FollowUpService {
        String sqlList = "select  wf.id as id,wf.followup_no as followupNo,wf.followup_date as followupDate,wf.followup_plan_date as followupPlanDate,wf.followup_next_date as followupNextDate," +
                " wf.followup_type as followupType,wf.followup_class as followupClass,wf.followup_manager_status as followupManagerStatus,wf.doctor_code as doctorCode,wf.doctor_name as doctorName," +
                "wf.jwdoctor_code as jwdoctorCode,wf.org_code as orgCode,wf.org_name as orgName,wf.jworg_code as jworgCode,wf.patient_code as patientCode,wf.patient_name as patientName,wf.idcard," +
                "wf.data_from as dataFrom,wf.status,wf.followup_cont ent_phone as followupContentPhone,wf.creater,wf.sign_type as signType,wf.admin_team_code as adminTeamCode,wf.sign_code as signCode," +
                "wf.data_from as dataFrom,wf.status,wf.followup_content_phone as followupContentPhone,wf.creater,wf.sign_type as signType,wf.admin_team_code as adminTeamCode,wf.sign_code as signCode," +
                "wf.prescription_code as prescriptionCode,wf.type, q.plan_id as planId ,q.plan_detail_id  as planDetailId,q.id as planItemId ";
        String sql = " from wlyy_followup wf " +
                "  inner join base_service_item_plan q on wf.id=q.relation_code  " +

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

@ -63,7 +63,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
    public String getRehabilitationPatientListNew(
            @ApiParam(name = "downPatientId", value = "下转表id", required = false) @RequestParam(value = "downPatientId", required = false) String downPatientId,
            @ApiParam(name = "doctorId", value = "医生id", required = false) @RequestParam(value = "doctorId", required = false) String doctorId,
            @ApiParam(name = "idcard", value = "身份证", required = false) @RequestParam(value = "idcard", required = false) String idcard,
            @ApiParam(name = "idcard", value = "检索-身份证或者姓名", required = false) @RequestParam(value = "idcard", required = false) String idcard,
            @ApiParam(name = "status", value = "", defaultValue = "0", required = false) @RequestParam(value = "status", required = false) String status,
            @ApiParam(name = "page", value = "起始页", required = false) @RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
            @ApiParam(name = "pagesize", value = "每页显示数据条数", required = false) @RequestParam(value = "pagesize", required = false, defaultValue = "10") Integer pagesize
@ -262,6 +262,31 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
        }
    }
    /**
     * 查询居民的康复计划
     * todo 还需要代办项目还需要重新join一张新表 todayTaskCount 今日任务项,等后面在整
     */
    @RequestMapping(value = "getPatientRehabilitationDoctorByPatientId", method = RequestMethod.GET)
    @ApiOperation("查询居民的康复计划的医生信息")
    public String getPatientRehabilitationDoctorByPatientId(
            @ApiParam(name = "patientId", value = "居民", required = false) @RequestParam(value = "patientId", required = false) String patientId,
            @ApiParam(name = "planId", value = "计划id", required = false) @RequestParam(value = "planId", required = false) String planId,
            @ApiParam(name = "diseaseId", value = "专病id", required = false) @RequestParam(value = "diseaseId", required = false) String diseaseId
    ) {
        try {
            HashMap<String, Object> result = rehabilitationInfoService.getPatientRehabilitationDoctorByPatientId(patientId, planId, diseaseId);
            return write(200, "请求成功", "data", result);
        } catch (Exception e) {
            e.printStackTrace();
            return error(-1, "操作失败");
        }
    }
    /**
     * 查询病例信息
     */

+ 57 - 18
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/rehabilitation/service/RehabilitationInfoService.java

@ -960,7 +960,7 @@ public class RehabilitationInfoService {
        String limitSql = " LIMIT " + (page - 1) * pagesize + "," + pagesize;
        String filterSql = "";
        if (StringUtils.isNotBlank(idcard)) {
            filterSql += " and (d.idcard='" + idcard + "' or d.name like '%"+idcard+"%' ) ";
            filterSql += " and (d.idcard='" + idcard + "' or d.name like '%" + idcard + "%' ) ";
        }
        if (StringUtils.isNotBlank(downPatientId)) {
            //wlyy_rehabilitation_patient_info的id
@ -1081,9 +1081,9 @@ public class RehabilitationInfoService {
     * 获取所有居民的康复计列表
     */
    public List<Map<String, Object>> getRehabilitationPatientPlan(String idcard, String doctorId, String patientId,
                                                                  String finishStatus, Integer page, Integer pagesize,String diseaseId) {
                                                                  String finishStatus, Integer page, Integer pagesize, String diseaseId) {
        String sqlTem = "";
        if(StringUtils.isNotBlank(diseaseId)){
        if (StringUtils.isNotBlank(diseaseId)) {
            sqlTem += "	and w.disease ='" + diseaseId + "' ";
        }
@ -1094,10 +1094,10 @@ public class RehabilitationInfoService {
                "	   ( " +
                "		SELECT GROUP_CONCAT(q.`name`) FROM base_disease_hospital q  " +
                "        INNER JOIN wlyy_patient_rehabilitation_plan w ON q.id = w.disease  " +
                "		 WHERE 1 = 1 AND w.patient=a.id "+sqlTem+" GROUP BY w.patient " +
                "		 WHERE 1 = 1 AND w.patient=a.id " + sqlTem + " GROUP BY w.patient " +
                "	   ) 'diseaseListName', " +
                "      ( " +
                "        SELECT GROUP_CONCAT(DISTINCT w.plan_doctor_name) FROM wlyy_patient_rehabilitation_plan w WHERE a.id = w.patient  " +sqlTem+
                "        SELECT GROUP_CONCAT(DISTINCT w.plan_doctor_name) FROM wlyy_patient_rehabilitation_plan w WHERE a.id = w.patient  " + sqlTem +
                "      ) 'planDoctorListName', " +
                "	         if(ti.num is null,0,ti.num) 'itemAllCount',  " +
                "      if(tu.num1 is null,0,tu.num1) 'unFinishCount',  " +
@ -1106,7 +1106,7 @@ public class RehabilitationInfoService {
                "FROM " +
                "	base_patient a " +
                "	left JOIN wlyy_patient_rehabilitation_plan b ON a.id = b.patient " +
                "   LEFT JOIN wlyy_rehabilitation_plan_detail d on b.id = d.plan_id "+
                "   LEFT JOIN wlyy_rehabilitation_plan_detail d on b.id = d.plan_id " +
                "	INNER JOIN wlyy_rehabilitation_patient_info c ON c.patient = a.id  " +
                " LEFT JOIN (  " +
                "        SELECT  " +
@ -1115,7 +1115,7 @@ public class RehabilitationInfoService {
                "          wlyy_patient_rehabilitation_plan w  " +
                "        INNER JOIN wlyy_rehabilitation_plan_detail q ON w.id = q.plan_id  " +
                "        INNER JOIN base_service_item_plan e ON e.plan_detail_id = q.id  " +
                "        WHERE  1 = 1  " + sqlTem+
                "        WHERE  1 = 1  " + sqlTem +
                "        GROUP BY w.patient  " +
                ") tu on tu.patient=a.id  " +
                "LEFT JOIN (  " +
@ -1125,7 +1125,7 @@ public class RehabilitationInfoService {
                "          wlyy_patient_rehabilitation_plan w  " +
                "        INNER JOIN wlyy_rehabilitation_plan_detail q ON w.id = q.plan_id  " +
                "        INNER JOIN base_service_item_plan e ON e.plan_detail_id = q.id  " +
                "        WHERE  1 = 1  " + sqlTem+
                "        WHERE  1 = 1  " + sqlTem +
                "        AND e.plan_time = DATE_FORMAT(NOW(), '%Y-%m-%d')  " +
                "        AND e.`status` = '0'  " +
                "        GROUP BY w.patient  " +
@ -1137,20 +1137,20 @@ public class RehabilitationInfoService {
                "          wlyy_patient_rehabilitation_plan w  " +
                "        INNER JOIN wlyy_rehabilitation_plan_detail q ON w.id = q.plan_id  " +
                "        INNER JOIN base_service_item_plan e ON e.plan_detail_id = q.id  " +
                "        WHERE  1 = 1  " + sqlTem+
                "        WHERE  1 = 1  " + sqlTem +
                "        GROUP BY w.patient  " +
                ") ti on ti.patient=a.id "+
                ") ti on ti.patient=a.id " +
                "WHERE " +
                "	1 = 1  " +
                "	AND a.del = '1' ";
        if (StringUtils.isNotBlank(doctorId) && StringUtils.isBlank(patientId)) {
            //计划负责人或者任务执行人-执行人不为空
            sql += "	AND (b.plan_doctor='" + doctorId + "' OR c.doctor='" + doctorId + "' or d.doctor='"+doctorId+"')";
            sql += "	AND (b.plan_doctor='" + doctorId + "' OR c.doctor='" + doctorId + "' or d.doctor='" + doctorId + "')";
            sql += " and  c.doctor is not null  ";
        }
        if(StringUtils.isNotBlank(diseaseId)){
        if (StringUtils.isNotBlank(diseaseId)) {
            sql += "	AND b.disease ='" + diseaseId + "' ";
        }
@ -1195,7 +1195,7 @@ public class RehabilitationInfoService {
                        "FROM " +
                        "	base_patient a " +
                        "	INNER JOIN wlyy_patient_rehabilitation_plan b ON a.id = b.patient " +
                        "   LEFT JOIN wlyy_rehabilitation_plan_detail d on b.id = d.plan_id "+
                        "   LEFT JOIN wlyy_rehabilitation_plan_detail d on b.id = d.plan_id " +
                        "	INNER JOIN wlyy_rehabilitation_patient_info c ON c.patient = b.patient  " +
                        " LEFT JOIN ( " +
                        "    SELECT w.patient,count(DISTINCT e.id) num  FROM wlyy_patient_rehabilitation_plan w  " +
@ -1203,14 +1203,14 @@ public class RehabilitationInfoService {
                        "       INNER JOIN base_service_item_plan e ON e.plan_detail_id = q.id  " +
                        "    WHERE 1 = 1  AND e.`status`='0'   " +
                        "   GROUP BY w.patient " +
                        "   ) t1 on t1.patient=a.id "+
                        "   ) t1 on t1.patient=a.id " +
                        "WHERE " +
                        "	1 = 1  " +
                        "	AND a.del = '1' ";
        if (StringUtils.isNotBlank(doctorId)) {
            //计划负责人或者任务执行人-执行人不为空
            sql += "	AND (b.plan_doctor='" + doctorId + "' OR c.doctor='" + doctorId + "' or d.doctor='"+doctorId+"')";
            sql += "	AND (b.plan_doctor='" + doctorId + "' OR c.doctor='" + doctorId + "' or d.doctor='" + doctorId + "')";
            sql += " and  c.doctor is not null  ";
        }
        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
@ -1236,7 +1236,7 @@ public class RehabilitationInfoService {
    /**
     * todo 还需要代办项目还需要重新join一张新表 todayTaskCount 今日任务项,等后面在整
     */
    public List<Map<String, Object>> getPatientRehabilitationByPatientId(String patientId, String planId,String diseaseId) {
    public List<Map<String, Object>> getPatientRehabilitationByPatientId(String patientId, String planId, String diseaseId) {
        String sql = "SELECT DISTINCT  " +
                "	 a.id,a.`name`,a.birthday,a.phone,a.sex,a.mobile,TIMESTAMPDIFF(YEAR,a.birthday,NOW()) 'age',a.idcard, " +
                "	 b.id 'planId',b.title 'planTitle',b.plan_doctor 'planDoctor',b.plan_doctor_name 'planDoctorName'" +
@ -1268,10 +1268,12 @@ public class RehabilitationInfoService {
        if (StringUtils.isNotBlank(planId)) {
            sql += "	AND b.id='" + planId + "' ";
        }
        if(StringUtils.isNotBlank(diseaseId)){
        if (StringUtils.isNotBlank(diseaseId)) {
            sql += "	AND d.id='" + diseaseId + "' ";
        }
        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
        return list;
    }
@ -1293,7 +1295,7 @@ public class RehabilitationInfoService {
                "	LEFT JOIN wlyy_rehabilitation_plan_detail pd ON pd.plan_id = q.id " +
                "WHERE " +
                "	1 = 1  " +
                " 	AND ( d.create_user = '" + doctorId + "'  OR q.plan_doctor='" + doctorId + "' OR ISNULL( d.create_user ) or pd.doctor='"+doctorId+"' )  " +
                " 	AND ( d.create_user = '" + doctorId + "'  OR q.plan_doctor='" + doctorId + "' OR ISNULL( d.create_user ) or pd.doctor='" + doctorId + "' )  " +
                "	AND ( ISNULL( d.type ) OR d.type = 2 ) " +
                "	GROUP BY d.`status`";
        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
@ -1371,4 +1373,41 @@ public class RehabilitationInfoService {
        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
        return list;
    }
    public  HashMap<String, Object> getPatientRehabilitationDoctorByPatientId(String patientId, String planId, String diseaseId) {
        String sql = "SELECT\n" +
                "	DISTINCT a.plan_doctor planDoctor, a.plan_doctor_name as planDoctorName\n" +
                "FROM\n" +
                "	wlyy_patient_rehabilitation_plan a\n" +
                "	INNER JOIN base_disease_hospital b ON a.disease = b.id \n" +
                "WHERE\n" +
                "	1 = 1 and a.plan_doctor is not null \n";
        String whereSql = "";
        if (StringUtils.isNotBlank(patientId)) {
            whereSql += "	AND a.patient = '" + patientId + "'";
        }
        if (StringUtils.isNotBlank(diseaseId)) {
            whereSql += "	AND a.disease = '" + diseaseId + "'";
        }
        if (StringUtils.isNotBlank(planId)) {
            whereSql += " AND a.id='" + planId + "' ";
        }
        sql += whereSql;
        List<Map<String, Object>> planDoctorList = jdbcTemplate.queryForList(sql);
        String detailsql = "SELECT\n" +
                "	DISTINCT c.doctor_name,c.doctor\n" +
                "FROM\n" +
                "	wlyy_patient_rehabilitation_plan a\n" +
                "	INNER JOIN base_disease_hospital b ON a.disease = b.id \n" +
                "	INNER JOIN wlyy_rehabilitation_plan_detail c ON a.id=c.plan_id\n" +
                "WHERE\n" +
                "	1 = 1 and c.doctor is not null \n";
        detailsql+=whereSql;
        List<Map<String, Object>> planDetailDoctorList = jdbcTemplate.queryForList(detailsql);
        HashMap<String, Object> resultMap = new HashMap<>();
        resultMap.put("planDoctorList",planDoctorList);
        resultMap.put("planDetailDoctorList",planDetailDoctorList);
        return resultMap;
    }
}