|
|
@ -25,6 +25,7 @@ |
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
<result column="current_illness_history_qt" jdbcType="VARCHAR" property="currentIllnessHistoryQt" /> |
|
|
|
<result column="weight_id" jdbcType="VARCHAR" property="weightId" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -87,7 +88,8 @@ |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, name, pinyin_full, pinyin_simple, gender, birth_date, ethnicity, education_years, |
|
|
|
phone, id_card_type, id_card, source, current_illness_history, weight, height, del_flag, |
|
|
|
tenant_id, create_by, create_time, update_by, update_time, remark, current_illness_history_qt |
|
|
|
tenant_id, create_by, create_time, update_by, update_time, remark, current_illness_history_qt, |
|
|
|
weight_id |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.PmsPatientExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -121,7 +123,8 @@ |
|
|
|
current_illness_history, weight, height, |
|
|
|
del_flag, tenant_id, create_by, |
|
|
|
create_time, update_by, update_time, |
|
|
|
remark, current_illness_history_qt) |
|
|
|
remark, current_illness_history_qt, weight_id |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pinyinFull,jdbcType=VARCHAR}, |
|
|
|
#{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{birthDate,jdbcType=DATE}, |
|
|
|
#{ethnicity,jdbcType=VARCHAR}, #{educationYears,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR}, |
|
|
@ -129,7 +132,8 @@ |
|
|
|
#{currentIllnessHistory,jdbcType=VARCHAR}, #{weight,jdbcType=VARCHAR}, #{height,jdbcType=VARCHAR}, |
|
|
|
#{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, |
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
#{remark,jdbcType=VARCHAR}, #{currentIllnessHistoryQt,jdbcType=VARCHAR}) |
|
|
|
#{remark,jdbcType=VARCHAR}, #{currentIllnessHistoryQt,jdbcType=VARCHAR}, #{weightId,jdbcType=VARCHAR} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.PmsPatient"> |
|
|
|
insert into pms_patient |
|
|
@ -203,6 +207,9 @@ |
|
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
|
current_illness_history_qt, |
|
|
|
</if> |
|
|
|
<if test="weightId != null"> |
|
|
|
weight_id, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -274,6 +281,9 @@ |
|
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
|
#{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="weightId != null"> |
|
|
|
#{weightId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.PmsPatientExample" resultType="java.lang.Long"> |
|
|
@ -354,6 +364,9 @@ |
|
|
|
<if test="record.currentIllnessHistoryQt != null"> |
|
|
|
current_illness_history_qt = #{record.currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.weightId != null"> |
|
|
|
weight_id = #{record.weightId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -383,7 +396,8 @@ |
|
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
current_illness_history_qt = #{record.currentIllnessHistoryQt,jdbcType=VARCHAR} |
|
|
|
current_illness_history_qt = #{record.currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
weight_id = #{record.weightId,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -457,6 +471,9 @@ |
|
|
|
<if test="currentIllnessHistoryQt != null"> |
|
|
|
current_illness_history_qt = #{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="weightId != null"> |
|
|
|
weight_id = #{weightId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -483,7 +500,8 @@ |
|
|
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
current_illness_history_qt = #{currentIllnessHistoryQt,jdbcType=VARCHAR} |
|
|
|
current_illness_history_qt = #{currentIllnessHistoryQt,jdbcType=VARCHAR}, |
|
|
|
weight_id = #{weightId,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |