|
|
@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="patientName" column="patient_name" /> |
|
|
|
<result property="patientName" column="patient_name" /> |
|
|
|
<result property="patientAge" column="patient_age" /> |
|
|
|
<result property="patientAge" column="patient_age" /> |
|
|
|
<result property="patientSex" column="patient_sex" /> |
|
|
|
<result property="patientSex" column="patient_sex" /> |
|
|
|
<result property="patientPhone" column="patient_phone" /> |
|
|
|
<result property="patientIdCard" column="patient_id_card" /> |
|
|
|
<result property="description" column="description" /> |
|
|
|
<result property="description" column="description" /> |
|
|
|
<result property="currentPosition" column="current_position" /> |
|
|
|
<result property="currentPosition" column="current_position" /> |
|
|
|
<result property="temperature" column="temperature" /> |
|
|
|
<result property="temperature" column="temperature" /> |
|
|
@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectPatientManageVo"> |
|
|
|
<sql id="selectPatientManageVo"> |
|
|
|
select patient_id, patient_name, patient_age, patient_sex, patient_phone, description, curren_postition, temperature, diagnosed_time, is_diagnosed, is_cure, is_touch, is_dead from patient_manage |
|
|
|
select patient_id, patient_name, patient_age, patient_sex, patient_id_card, description, curren_postition, temperature, diagnosed_time, is_diagnosed, is_cure, is_touch, is_dead from patient_manage |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectPatientManageList" parameterType="PatientManage" resultMap="PatientManageResult"> |
|
|
|
<select id="selectPatientManageList" parameterType="PatientManage" resultMap="PatientManageResult"> |
|
|
@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="patientName != null and patientName != ''"> and patient_name like concat('%', #{patientName}, '%')</if> |
|
|
|
<if test="patientName != null and patientName != ''"> and patient_name like concat('%', #{patientName}, '%')</if> |
|
|
|
<if test="patientAge != null and patientAge != ''"> and patient_age = #{patientAge}</if> |
|
|
|
<if test="patientAge != null and patientAge != ''"> and patient_age = #{patientAge}</if> |
|
|
|
<if test="patientSex != null and patientSex != ''"> and patient_sex = #{patientSex}</if> |
|
|
|
<if test="patientSex != null and patientSex != ''"> and patient_sex = #{patientSex}</if> |
|
|
|
<if test="patientPhone != null and patientPhone != ''"> and patient_phone = #{patientPhone}</if> |
|
|
|
<if test="patientIdCard != null and patientIdCard != ''"> and patient_id_card = #{patientIdCard}</if> |
|
|
|
<if test="description != null and description != ''"> and description = #{description}</if> |
|
|
|
<if test="description != null and description != ''"> and description = #{description}</if> |
|
|
|
<if test="currentPosition != null and currentPosition != ''"> and curren_postition = #{currentPosition}</if> |
|
|
|
<if test="currentPosition != null and currentPosition != ''"> and curren_postition = #{currentPosition}</if> |
|
|
|
<if test="temperature != null and temperature != ''"> and temperature = #{temperature}</if> |
|
|
|
<if test="temperature != null and temperature != ''"> and temperature = #{temperature}</if> |
|
|
@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="patientName != null">patient_name,</if> |
|
|
|
<if test="patientName != null">patient_name,</if> |
|
|
|
<if test="patientAge != null">patient_age,</if> |
|
|
|
<if test="patientAge != null">patient_age,</if> |
|
|
|
<if test="patientSex != null">patient_sex,</if> |
|
|
|
<if test="patientSex != null">patient_sex,</if> |
|
|
|
<if test="patientPhone != null">patient_phone,</if> |
|
|
|
<if test="patientIdCard != null">patient_id_card,</if> |
|
|
|
<if test="description != null">description,</if> |
|
|
|
<if test="description != null">description,</if> |
|
|
|
<if test="currentPosition != null">curren_postition,</if> |
|
|
|
<if test="currentPosition != null">curren_postition,</if> |
|
|
|
<if test="temperature != null">temperature,</if> |
|
|
|
<if test="temperature != null">temperature,</if> |
|
|
@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="patientName != null">#{patientName},</if> |
|
|
|
<if test="patientName != null">#{patientName},</if> |
|
|
|
<if test="patientAge != null">#{patientAge},</if> |
|
|
|
<if test="patientAge != null">#{patientAge},</if> |
|
|
|
<if test="patientSex != null">#{patientSex},</if> |
|
|
|
<if test="patientSex != null">#{patientSex},</if> |
|
|
|
<if test="patientPhone != null">#{patientPhone},</if> |
|
|
|
<if test="patientIdCard != null">#{patientIdCard},</if> |
|
|
|
<if test="description != null">#{description},</if> |
|
|
|
<if test="description != null">#{description},</if> |
|
|
|
<if test="currentPosition != null">#{currentPosition},</if> |
|
|
|
<if test="currentPosition != null">#{currentPosition},</if> |
|
|
|
<if test="temperature != null">#{temperature},</if> |
|
|
|
<if test="temperature != null">#{temperature},</if> |
|
|
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="patientName != null">patient_name = #{patientName},</if> |
|
|
|
<if test="patientName != null">patient_name = #{patientName},</if> |
|
|
|
<if test="patientAge != null">patient_age = #{patientAge},</if> |
|
|
|
<if test="patientAge != null">patient_age = #{patientAge},</if> |
|
|
|
<if test="patientSex != null">patient_sex = #{patientSex},</if> |
|
|
|
<if test="patientSex != null">patient_sex = #{patientSex},</if> |
|
|
|
<if test="patientPhone != null">patient_phone = #{patientPhone},</if> |
|
|
|
<if test="patientIdCard != null">patient_id_card = #{patientIdCard},</if> |
|
|
|
<if test="description != null">description = #{description},</if> |
|
|
|
<if test="description != null">description = #{description},</if> |
|
|
|
<if test="currentPosition != null">curren_postition = #{currentPosition},</if> |
|
|
|
<if test="currentPosition != null">curren_postition = #{currentPosition},</if> |
|
|
|
<if test="temperature != null">temperature = #{temperature},</if> |
|
|
|
<if test="temperature != null">temperature = #{temperature},</if> |
|
|
|