|
|
@ -15,6 +15,7 @@ |
|
|
|
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|
|
|
<result column="open_canvas_time" jdbcType="BIGINT" property="openCanvasTime" /> |
|
|
|
<result column="beyond_proportion" jdbcType="VARCHAR" property="beyondProportion" /> |
|
|
|
<result column="background_url" jdbcType="VARCHAR" property="backgroundUrl" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -76,7 +77,8 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, patient_report_id, question_id, begin_time, canvas_width, canvas_height, line_color, |
|
|
|
line_width, create_time, update_time, is_del, open_canvas_time, beyond_proportion |
|
|
|
line_width, create_time, update_time, is_del, open_canvas_time, beyond_proportion, |
|
|
|
background_url |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -113,12 +115,12 @@ |
|
|
|
begin_time, canvas_width, canvas_height, |
|
|
|
line_color, line_width, create_time, |
|
|
|
update_time, is_del, open_canvas_time, |
|
|
|
beyond_proportion) |
|
|
|
beyond_proportion, background_url) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{patientReportId,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, |
|
|
|
#{beginTime,jdbcType=BIGINT}, #{canvasWidth,jdbcType=INTEGER}, #{canvasHeight,jdbcType=INTEGER}, |
|
|
|
#{lineColor,jdbcType=VARCHAR}, #{lineWidth,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, #{openCanvasTime,jdbcType=BIGINT}, |
|
|
|
#{beyondProportion,jdbcType=VARCHAR}) |
|
|
|
#{beyondProportion,jdbcType=VARCHAR}, #{backgroundUrl,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientCanvas"> |
|
|
|
insert into t_ht_patient_canvas |
|
|
@ -162,6 +164,9 @@ |
|
|
|
<if test="beyondProportion != null"> |
|
|
|
beyond_proportion, |
|
|
|
</if> |
|
|
|
<if test="backgroundUrl != null"> |
|
|
|
background_url, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -203,6 +208,9 @@ |
|
|
|
<if test="beyondProportion != null"> |
|
|
|
#{beyondProportion,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="backgroundUrl != null"> |
|
|
|
#{backgroundUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasExample" resultType="java.lang.Long"> |
|
|
@ -253,6 +261,9 @@ |
|
|
|
<if test="record.beyondProportion != null"> |
|
|
|
beyond_proportion = #{record.beyondProportion,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.backgroundUrl != null"> |
|
|
|
background_url = #{record.backgroundUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -272,7 +283,8 @@ |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT}, |
|
|
|
open_canvas_time = #{record.openCanvasTime,jdbcType=BIGINT}, |
|
|
|
beyond_proportion = #{record.beyondProportion,jdbcType=VARCHAR} |
|
|
|
beyond_proportion = #{record.beyondProportion,jdbcType=VARCHAR}, |
|
|
|
background_url = #{record.backgroundUrl,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -316,6 +328,9 @@ |
|
|
|
<if test="beyondProportion != null"> |
|
|
|
beyond_proportion = #{beyondProportion,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="backgroundUrl != null"> |
|
|
|
background_url = #{backgroundUrl,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -332,7 +347,8 @@ |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{isDel,jdbcType=TINYINT}, |
|
|
|
open_canvas_time = #{openCanvasTime,jdbcType=BIGINT}, |
|
|
|
beyond_proportion = #{beyondProportion,jdbcType=VARCHAR} |
|
|
|
beyond_proportion = #{beyondProportion,jdbcType=VARCHAR}, |
|
|
|
background_url = #{backgroundUrl,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |