|
|
|
<?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.MedicalRecTreatmentPlanMapper">
|
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.model.MedicalRecTreatmentPlan">
|
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="medicalRecId" column="medical_rec_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,medical_rec_id,treatment_plan_id,
|
|
|
|
create_user_id,create_time,update_user_id,
|
|
|
|
update_time
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="queryListByMedicalRecId" resultType="com.supervision.vo.manage.MedicalRecTreatmentPlanResVo">
|
|
|
|
select
|
|
|
|
mrtp.id as id,
|
|
|
|
mrtp.medical_rec_id as medicalRecId,
|
|
|
|
mrtp.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_medical_rec_treatment_plan mrtp
|
|
|
|
left join vp_config_treatment_plan ctp on mrtp.treatment_plan_id = ctp.id
|
|
|
|
where mrtp.medical_rec_id = #{medicalRecId}
|
|
|
|
</select>
|
|
|
|
</mapper>
|