|
|
|
<?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.DiagnosisPrimaryMapper">
|
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.model.DiagnosisPrimary">
|
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="processId" column="process_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="primaryDiagnosisId" column="primary_diagnosis_id" jdbcType="VARCHAR"/>
|
|
|
|
<result property="patientDiseaseInfo" column="patient_disease_info" 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
|
|
|
|
,process_id,primary_diagnosis,patient_disease_info,
|
|
|
|
create_user_id,create_time,update_user_id,
|
|
|
|
update_time
|
|
|
|
</sql>
|
|
|
|
<select id="queryAskPrimaryList" resultType="com.supervision.vo.ask.DiagnosisPrimaryVO">
|
|
|
|
select t1.*, t2.disease_name as primaryDiseaseName
|
|
|
|
from vp_diagnosis_primary t1
|
|
|
|
left join vp_disease t2 on t1.primary_diagnosis_id = t2.id
|
|
|
|
where t1.delete_flag = 0
|
|
|
|
</select>
|
|
|
|
</mapper>
|