|
@ -15,7 +15,8 @@ |
|
|
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|
|
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|
|
<result column="source" jdbcType="TINYINT" property="source" /> |
|
|
<result column="source" jdbcType="TINYINT" property="source" /> |
|
|
<result column="current_illness_history" jdbcType="VARCHAR" property="currentIllnessHistory" /> |
|
|
<result column="current_illness_history" jdbcType="VARCHAR" property="currentIllnessHistory" /> |
|
|
<result column="current_illness_history_qt" jdbcType="VARCHAR" property="currentIllnessHistoryQt" /> |
|
|
<result column="weight" jdbcType="VARCHAR" property="weight" /> |
|
|
|
|
|
<result column="height" jdbcType="VARCHAR" property="height" /> |
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|
@ -23,6 +24,7 @@ |
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
|
|
<result column="current_illness_history_qt" jdbcType="VARCHAR" property="currentIllnessHistoryQt" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
@ -84,8 +86,8 @@ |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, name, pinyin_full, pinyin_simple, gender, birth_date, ethnicity, education_years, |
|
|
id, name, pinyin_full, pinyin_simple, gender, birth_date, ethnicity, education_years, |
|
|
phone, id_card_type, id_card, source, current_illness_history, current_illness_history_qt, |
|
|
phone, id_card_type, id_card, source, current_illness_history, weight, height, del_flag, |
|
|
del_flag, tenant_id, create_by, create_time, update_by, update_time, remark |
|
|
tenant_id, create_by, create_time, update_by, update_time, remark, current_illness_history_qt |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.PmsPatientExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.PmsPatientExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -116,18 +118,18 @@ |
|
|
pinyin_simple, gender, birth_date, |
|
|
pinyin_simple, gender, birth_date, |
|
|
ethnicity, education_years, phone, |
|
|
ethnicity, education_years, phone, |
|
|
id_card_type, id_card, source, |
|
|
id_card_type, id_card, source, |
|
|
current_illness_history, current_illness_history_qt, |
|
|
current_illness_history, weight, height, |
|
|
del_flag, tenant_id, create_by, |
|
|
del_flag, tenant_id, create_by, |
|
|
create_time, update_by, update_time, |
|
|
create_time, update_by, update_time, |
|
|
remark) |
|
|
remark, current_illness_history_qt) |
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pinyinFull,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pinyinFull,jdbcType=VARCHAR}, |
|
|
#{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{birthDate,jdbcType=DATE}, |
|
|
#{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{birthDate,jdbcType=DATE}, |
|
|
#{ethnicity,jdbcType=VARCHAR}, #{educationYears,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR}, |
|
|
#{ethnicity,jdbcType=VARCHAR}, #{educationYears,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR}, |
|
|
#{idCardType,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR}, #{source,jdbcType=TINYINT}, |
|
|
#{idCardType,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR}, #{source,jdbcType=TINYINT}, |
|
|
#{currentIllnessHistory,jdbcType=VARCHAR}, #{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
#{currentIllnessHistory,jdbcType=VARCHAR}, #{weight,jdbcType=VARCHAR}, #{height,jdbcType=VARCHAR}, |
|
|
#{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, |
|
|
#{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, |
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{remark,jdbcType=VARCHAR}) |
|
|
#{remark,jdbcType=VARCHAR}, #{currentIllnessHistoryQt,jdbcType=VARCHAR}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.PmsPatient"> |
|
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.PmsPatient"> |
|
|
insert into pms_patient |
|
|
insert into pms_patient |
|
@ -171,8 +173,11 @@ |
|
|
<if test="currentIllnessHistory != null"> |
|
|
<if test="currentIllnessHistory != null"> |
|
|
current_illness_history, |
|
|
current_illness_history, |
|
|
</if> |
|
|
</if> |
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
<if test="weight != null"> |
|
|
current_illness_history_qt, |
|
|
weight, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="height != null"> |
|
|
|
|
|
height, |
|
|
</if> |
|
|
</if> |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
del_flag, |
|
|
del_flag, |
|
@ -195,6 +200,9 @@ |
|
|
<if test="remark != null"> |
|
|
<if test="remark != null"> |
|
|
remark, |
|
|
remark, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
|
|
|
current_illness_history_qt, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
@ -236,8 +244,11 @@ |
|
|
<if test="currentIllnessHistory != null"> |
|
|
<if test="currentIllnessHistory != null"> |
|
|
#{currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
#{currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
<if test="weight != null"> |
|
|
#{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
#{weight,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="height != null"> |
|
|
|
|
|
#{height,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
#{delFlag,jdbcType=TINYINT}, |
|
|
#{delFlag,jdbcType=TINYINT}, |
|
@ -260,6 +271,9 @@ |
|
|
<if test="remark != null"> |
|
|
<if test="remark != null"> |
|
|
#{remark,jdbcType=VARCHAR}, |
|
|
#{remark,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
|
|
|
#{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.PmsPatientExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.PmsPatientExample" resultType="java.lang.Long"> |
|
@ -310,8 +324,11 @@ |
|
|
<if test="record.currentIllnessHistory != null"> |
|
|
<if test="record.currentIllnessHistory != null"> |
|
|
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.currentIllnessHistoryQt != null"> |
|
|
<if test="record.weight != null"> |
|
|
current_illness_history_qt = #{record.currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
weight = #{record.weight,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.height != null"> |
|
|
|
|
|
height = #{record.height,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.delFlag != null"> |
|
|
<if test="record.delFlag != null"> |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
@ -334,6 +351,9 @@ |
|
|
<if test="record.remark != null"> |
|
|
<if test="record.remark != null"> |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.currentIllnessHistoryQt != null"> |
|
|
|
|
|
current_illness_history_qt = #{record.currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
@ -354,14 +374,16 @@ |
|
|
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|
|
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|
|
source = #{record.source,jdbcType=TINYINT}, |
|
|
source = #{record.source,jdbcType=TINYINT}, |
|
|
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
current_illness_history_qt = #{record.currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
weight = #{record.weight,jdbcType=VARCHAR}, |
|
|
|
|
|
height = #{record.height,jdbcType=VARCHAR}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR} |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
|
|
current_illness_history_qt = #{record.currentIllnessHistoryQt,jdbcType=VARCHAR} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
@ -405,8 +427,11 @@ |
|
|
<if test="currentIllnessHistory != null"> |
|
|
<if test="currentIllnessHistory != null"> |
|
|
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
<if test="weight != null"> |
|
|
current_illness_history_qt = #{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
weight = #{weight,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="height != null"> |
|
|
|
|
|
height = #{height,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
@ -429,6 +454,9 @@ |
|
|
<if test="remark != null"> |
|
|
<if test="remark != null"> |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
|
|
|
current_illness_history_qt = #{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
@ -446,14 +474,16 @@ |
|
|
id_card = #{idCard,jdbcType=VARCHAR}, |
|
|
id_card = #{idCard,jdbcType=VARCHAR}, |
|
|
source = #{source,jdbcType=TINYINT}, |
|
|
source = #{source,jdbcType=TINYINT}, |
|
|
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR}, |
|
|
current_illness_history_qt = #{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
weight = #{weight,jdbcType=VARCHAR}, |
|
|
|
|
|
height = #{height,jdbcType=VARCHAR}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|
|
create_by = #{createBy,jdbcType=VARCHAR}, |
|
|
create_by = #{createBy,jdbcType=VARCHAR}, |
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
|
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
remark = #{remark,jdbcType=VARCHAR} |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
|
|
current_illness_history_qt = #{currentIllnessHistoryQt,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |