|
|
@ -4,11 +4,13 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="patient_canvas_id" jdbcType="BIGINT" property="patientCanvasId" /> |
|
|
|
<result column="points" jdbcType="VARCHAR" property="points" /> |
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
|
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|
|
|
</resultMap> |
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|
|
|
<result column="points" jdbcType="LONGVARCHAR" property="points" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|
|
@ -68,8 +70,27 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, patient_canvas_id, points, create_time, update_time, is_del |
|
|
|
id, patient_canvas_id, create_time, update_time, is_del |
|
|
|
</sql> |
|
|
|
<sql id="Blob_Column_List"> |
|
|
|
points |
|
|
|
</sql> |
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLineExample" resultMap="ResultMapWithBLOBs"> |
|
|
|
select |
|
|
|
<if test="distinct"> |
|
|
|
distinct |
|
|
|
</if> |
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
, |
|
|
|
<include refid="Blob_Column_List" /> |
|
|
|
from t_ht_patient_canvas_line |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
<if test="orderByClause != null"> |
|
|
|
order by ${orderByClause} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLineExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<if test="distinct"> |
|
|
@ -84,9 +105,11 @@ |
|
|
|
order by ${orderByClause} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs"> |
|
|
|
select |
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
, |
|
|
|
<include refid="Blob_Column_List" /> |
|
|
|
from t_ht_patient_canvas_line |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</select> |
|
|
@ -101,11 +124,11 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|
|
|
insert into t_ht_patient_canvas_line (id, patient_canvas_id, points, |
|
|
|
create_time, update_time, is_del |
|
|
|
insert into t_ht_patient_canvas_line (id, patient_canvas_id, create_time, |
|
|
|
update_time, is_del, points |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{patientCanvasId,jdbcType=BIGINT}, #{points,jdbcType=VARCHAR}, |
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT} |
|
|
|
values (#{id,jdbcType=BIGINT}, #{patientCanvasId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, #{points,jdbcType=LONGVARCHAR} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|
|
@ -117,9 +140,6 @@ |
|
|
|
<if test="patientCanvasId != null"> |
|
|
|
patient_canvas_id, |
|
|
|
</if> |
|
|
|
<if test="points != null"> |
|
|
|
points, |
|
|
|
</if> |
|
|
|
<if test="createTime != null"> |
|
|
|
create_time, |
|
|
|
</if> |
|
|
@ -129,6 +149,9 @@ |
|
|
|
<if test="isDel != null"> |
|
|
|
is_del, |
|
|
|
</if> |
|
|
|
<if test="points != null"> |
|
|
|
points, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -137,9 +160,6 @@ |
|
|
|
<if test="patientCanvasId != null"> |
|
|
|
#{patientCanvasId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="points != null"> |
|
|
|
#{points,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="createTime != null"> |
|
|
|
#{createTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -149,6 +169,9 @@ |
|
|
|
<if test="isDel != null"> |
|
|
|
#{isDel,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="points != null"> |
|
|
|
#{points,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLineExample" resultType="java.lang.Long"> |
|
|
@ -166,9 +189,6 @@ |
|
|
|
<if test="record.patientCanvasId != null"> |
|
|
|
patient_canvas_id = #{record.patientCanvasId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.points != null"> |
|
|
|
points = #{record.points,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.createTime != null"> |
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -178,16 +198,30 @@ |
|
|
|
<if test="record.isDel != null"> |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.points != null"> |
|
|
|
points = #{record.points,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
</update> |
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|
|
|
update t_ht_patient_canvas_line |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
patient_canvas_id = #{record.patientCanvasId,jdbcType=BIGINT}, |
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT}, |
|
|
|
points = #{record.points,jdbcType=LONGVARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
</update> |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_ht_patient_canvas_line |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
patient_canvas_id = #{record.patientCanvasId,jdbcType=BIGINT}, |
|
|
|
points = #{record.points,jdbcType=VARCHAR}, |
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT} |
|
|
@ -201,9 +235,6 @@ |
|
|
|
<if test="patientCanvasId != null"> |
|
|
|
patient_canvas_id = #{patientCanvasId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="points != null"> |
|
|
|
points = #{points,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="createTime != null"> |
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -213,13 +244,24 @@ |
|
|
|
<if test="isDel != null"> |
|
|
|
is_del = #{isDel,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="points != null"> |
|
|
|
points = #{points,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|
|
|
update t_ht_patient_canvas_line |
|
|
|
set patient_canvas_id = #{patientCanvasId,jdbcType=BIGINT}, |
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{isDel,jdbcType=TINYINT}, |
|
|
|
points = #{points,jdbcType=LONGVARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|
|
|
update t_ht_patient_canvas_line |
|
|
|
set patient_canvas_id = #{patientCanvasId,jdbcType=BIGINT}, |
|
|
|
points = #{points,jdbcType=VARCHAR}, |
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{isDel,jdbcType=TINYINT} |
|
|
|