41 lines
1.8 KiB
XML
41 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.supervision.mapper.DiseaseTreatmentPlanMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.model.DiseaseTreatmentPlan">
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
<result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/>
|
|
<result property="treatmentPlanId" column="treatment_plan_id" jdbcType="VARCHAR"/>
|
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
id
|
|
,disease_id,treatment_plan_id,create_user_id,
|
|
create_time,update_user_id,update_time
|
|
</sql>
|
|
|
|
|
|
<select id="queryListByDiseaseId" resultType="com.supervision.vo.manage.DiseaseTreatmentPlanResVo">
|
|
select
|
|
dtp.id as id,
|
|
dtp.disease_id as diseaseId,
|
|
dtp.treatment_plan_id as treatmentPlanId,
|
|
ctp.disposal_plan_id as disposalPlanId,
|
|
ctp.disposal_plan as disposalPlan,
|
|
ctp.disposal_method as disposalMethod,
|
|
ctp.first_measures_id as firstMeasuresId,
|
|
ctp.first_measures as firstMeasures,
|
|
ctp.second_measures as secondMeasures,
|
|
ctp.recommended_medication as recommendedMedication
|
|
from vp_disease_treatment_plan dtp
|
|
left join vp_config_treatment_plan ctp on dtp.treatment_plan_id = ctp.id
|
|
where dtp.disease_id = #{diseaseId}
|
|
</select>
|
|
</mapper>
|