|
|
@ -5,25 +5,25 @@
|
|
|
|
<mapper namespace="com.supervision.mapper.DiseasePhysicalMapper">
|
|
|
|
<mapper namespace="com.supervision.mapper.DiseasePhysicalMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.model.DiseasePhysical">
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.model.DiseasePhysical">
|
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="toolId" column="tool_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="toolId" column="tool_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="locationId" column="location_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="locationId" column="location_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="requireCheckFlag" column="require_check_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="requireCheckFlag" column="require_check_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="primarilyDiagnosisCriteriaFlag" column="primarily_diagnosis_criteria_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="primarilyDiagnosisCriteriaFlag" column="primarily_diagnosis_criteria_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="basisConfirmFlag" column="basis_confirm_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="basisConfirmFlag" column="basis_confirm_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="basisIdentificationFlag" column="basis_identification_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="basisIdentificationFlag" column="basis_identification_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="diagnosisAssessmentFlag" column="diagnosis_assessment_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="diagnosisAssessmentFlag" column="diagnosis_assessment_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="expectedDiagnosisResult" column="expected_diagnosis_result" jdbcType="VARCHAR"/>
|
|
|
|
<result property="expectedDiagnosisResult" column="expected_diagnosis_result" jdbcType="VARCHAR"/>
|
|
|
|
<result property="fullCheckFlag" column="full_check_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="fullCheckFlag" column="full_check_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="locationDiagnosisFlag" column="location_diagnosis_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="locationDiagnosisFlag" column="location_diagnosis_flag" jdbcType="INTEGER"/>
|
|
|
|
<result property="result" column="result" jdbcType="VARCHAR"/>
|
|
|
|
<result property="result" column="result" jdbcType="VARCHAR"/>
|
|
|
|
<result property="normalResult" column="normal_result" jdbcType="VARCHAR"/>
|
|
|
|
<result property="normalResult" column="normal_result" jdbcType="VARCHAR"/>
|
|
|
|
<result property="trait" column="trait" jdbcType="VARCHAR"/>
|
|
|
|
<result property="trait" column="trait" jdbcType="VARCHAR"/>
|
|
|
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@ -60,4 +60,33 @@
|
|
|
|
left join vp_config_physical_location cpl on dp.location_id = cpl.id
|
|
|
|
left join vp_config_physical_location cpl on dp.location_id = cpl.id
|
|
|
|
where dp.disease_id = #{diseaseId} order by dp.create_time desc
|
|
|
|
where dp.disease_id = #{diseaseId} order by dp.create_time desc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryListStrByDiseaseId" resultType="com.supervision.vo.manage.DiseasePhysicalStrResVo">
|
|
|
|
|
|
|
|
select dp.id,
|
|
|
|
|
|
|
|
dp.disease_id as diseaseId,
|
|
|
|
|
|
|
|
dp.tool_id as toolId,
|
|
|
|
|
|
|
|
cpl.parent_id as toolParentId,
|
|
|
|
|
|
|
|
dp.location_id as locationId,
|
|
|
|
|
|
|
|
cpl.location_name as locationName,
|
|
|
|
|
|
|
|
cpt.tool_name as toolName,
|
|
|
|
|
|
|
|
cpt.type as toolType,
|
|
|
|
|
|
|
|
case ifnull(dp.primarily_diagnosis_criteria_flag,0) when 0 then null when 1 then '初步诊断依据' end as primarilyDiagnosisCriteriaFlag,
|
|
|
|
|
|
|
|
case ifnull(dp.basis_confirm_flag,0) when 0 then null when 1 then '证实诊断依据' end as basisConfirmFlag,
|
|
|
|
|
|
|
|
case ifnull(dp.basis_identification_flag,0) when 0 then null when 1 then '鉴别依据' end as basisIdentificationFlag,
|
|
|
|
|
|
|
|
case ifnull(dp.full_check_flag,0) when 0 then null when 1 then '全面依据' end as fullCheckFlag,
|
|
|
|
|
|
|
|
dp.diagnosis_assessment_flag as diagnosisAssessmentFlag,
|
|
|
|
|
|
|
|
dp.location_diagnosis_flag as locationDiagnosisFlag,
|
|
|
|
|
|
|
|
dp.expected_diagnosis_result as expectedDiagnosisResult,
|
|
|
|
|
|
|
|
dp.require_check_flag as requireCheckFlag,
|
|
|
|
|
|
|
|
dp.result as result,
|
|
|
|
|
|
|
|
dp.normal_result as normalResult,
|
|
|
|
|
|
|
|
dp.trait as trait
|
|
|
|
|
|
|
|
from vp_disease_physical dp
|
|
|
|
|
|
|
|
left join vp_config_physical_tool cpt on dp.tool_id = cpt.id
|
|
|
|
|
|
|
|
left join vp_config_physical_location cpl on dp.location_id = cpl.id
|
|
|
|
|
|
|
|
where dp.disease_id = #{diseaseId} order by dp.create_time desc
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|