|
|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.emr.entity.emrPdfWaterSet.EmrPdfWaterSet" >
|
|
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
|
|
<result column="effective" property="effective" jdbcType="SMALLINT" />
|
|
|
|
|
<result column="download_effective" property="downloadEffective" jdbcType="SMALLINT" />
|
|
|
|
|
<result column="up_or_under" property="upOrUnder" jdbcType="SMALLINT" />
|
|
|
|
|
<result column="transparent" property="transparent" jdbcType="REAL" />
|
|
|
|
|
<result column="text" property="text" jdbcType="NVARCHAR" />
|
|
|
|
|
@ -13,6 +14,7 @@
|
|
|
|
|
<result column="text_size" property="textSize" jdbcType="INTEGER" />
|
|
|
|
|
<result column="text_rotation" property="textRotation" jdbcType="INTEGER" />
|
|
|
|
|
<result column="is_img" property="isImg" jdbcType="SMALLINT" />
|
|
|
|
|
<result column="download_is_img" property="downloadIsImg" jdbcType="SMALLINT" />
|
|
|
|
|
<result column="img_file" property="imgFile" jdbcType="NVARCHAR" />
|
|
|
|
|
<result column="img_width" property="imgWidth" jdbcType="INTEGER" />
|
|
|
|
|
<result column="img_height" property="imgHeight" jdbcType="INTEGER" />
|
|
|
|
|
@ -21,8 +23,9 @@
|
|
|
|
|
<result column="unique_id" property="uniqueId" jdbcType="NVARCHAR" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
|
|
id, effective, up_or_under, transparent, text, text_x, text_y, text_color, text_size,
|
|
|
|
|
text_rotation, is_img, img_file, img_width, img_height, img_x, img_y, unique_id
|
|
|
|
|
id, effective, download_effective, up_or_under, transparent, text, text_x, text_y,
|
|
|
|
|
text_color, text_size, text_rotation, is_img, download_is_img, img_file, img_width,
|
|
|
|
|
img_height, img_x, img_y, unique_id
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
|
|
select
|
|
|
|
|
@ -35,18 +38,20 @@
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.emr.entity.emrPdfWaterSet.EmrPdfWaterSet" >
|
|
|
|
|
insert into emr_pdf_water_set (id, effective, up_or_under,
|
|
|
|
|
transparent, text, text_x,
|
|
|
|
|
text_y, text_color, text_size,
|
|
|
|
|
text_rotation, is_img, img_file,
|
|
|
|
|
img_width, img_height, img_x,
|
|
|
|
|
img_y, unique_id)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{effective,jdbcType=SMALLINT}, #{upOrUnder,jdbcType=SMALLINT},
|
|
|
|
|
#{transparent,jdbcType=REAL}, #{text,jdbcType=NVARCHAR}, #{textX,jdbcType=INTEGER},
|
|
|
|
|
#{textY,jdbcType=INTEGER}, #{textColor,jdbcType=NVARCHAR}, #{textSize,jdbcType=INTEGER},
|
|
|
|
|
#{textRotation,jdbcType=INTEGER}, #{isImg,jdbcType=SMALLINT}, #{imgFile,jdbcType=NVARCHAR},
|
|
|
|
|
#{imgWidth,jdbcType=INTEGER}, #{imgHeight,jdbcType=INTEGER}, #{imgX,jdbcType=INTEGER},
|
|
|
|
|
#{imgY,jdbcType=INTEGER}, #{uniqueId,jdbcType=NVARCHAR})
|
|
|
|
|
insert into emr_pdf_water_set (id, effective, download_effective,
|
|
|
|
|
up_or_under, transparent, text,
|
|
|
|
|
text_x, text_y, text_color,
|
|
|
|
|
text_size, text_rotation, is_img,
|
|
|
|
|
download_is_img, img_file, img_width,
|
|
|
|
|
img_height, img_x, img_y,
|
|
|
|
|
unique_id)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{effective,jdbcType=SMALLINT}, #{downloadEffective,jdbcType=SMALLINT},
|
|
|
|
|
#{upOrUnder,jdbcType=SMALLINT}, #{transparent,jdbcType=REAL}, #{text,jdbcType=NVARCHAR},
|
|
|
|
|
#{textX,jdbcType=INTEGER}, #{textY,jdbcType=INTEGER}, #{textColor,jdbcType=NVARCHAR},
|
|
|
|
|
#{textSize,jdbcType=INTEGER}, #{textRotation,jdbcType=INTEGER}, #{isImg,jdbcType=SMALLINT},
|
|
|
|
|
#{downloadIsImg,jdbcType=SMALLINT}, #{imgFile,jdbcType=NVARCHAR}, #{imgWidth,jdbcType=INTEGER},
|
|
|
|
|
#{imgHeight,jdbcType=INTEGER}, #{imgX,jdbcType=INTEGER}, #{imgY,jdbcType=INTEGER},
|
|
|
|
|
#{uniqueId,jdbcType=NVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.emr.entity.emrPdfWaterSet.EmrPdfWaterSet" >
|
|
|
|
|
insert into emr_pdf_water_set
|
|
|
|
|
@ -57,6 +62,9 @@
|
|
|
|
|
<if test="effective != null" >
|
|
|
|
|
effective,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="downloadEffective != null" >
|
|
|
|
|
download_effective,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="upOrUnder != null" >
|
|
|
|
|
up_or_under,
|
|
|
|
|
</if>
|
|
|
|
|
@ -84,6 +92,9 @@
|
|
|
|
|
<if test="isImg != null" >
|
|
|
|
|
is_img,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="downloadIsImg != null" >
|
|
|
|
|
download_is_img,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="imgFile != null" >
|
|
|
|
|
img_file,
|
|
|
|
|
</if>
|
|
|
|
|
@ -110,6 +121,9 @@
|
|
|
|
|
<if test="effective != null" >
|
|
|
|
|
#{effective,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="downloadEffective != null" >
|
|
|
|
|
#{downloadEffective,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="upOrUnder != null" >
|
|
|
|
|
#{upOrUnder,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
@ -137,6 +151,9 @@
|
|
|
|
|
<if test="isImg != null" >
|
|
|
|
|
#{isImg,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="downloadIsImg != null" >
|
|
|
|
|
#{downloadIsImg,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="imgFile != null" >
|
|
|
|
|
#{imgFile,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
@ -163,6 +180,9 @@
|
|
|
|
|
<if test="effective != null" >
|
|
|
|
|
effective = #{effective,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="downloadEffective != null" >
|
|
|
|
|
download_effective = #{downloadEffective,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="upOrUnder != null" >
|
|
|
|
|
up_or_under = #{upOrUnder,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
@ -190,6 +210,9 @@
|
|
|
|
|
<if test="isImg != null" >
|
|
|
|
|
is_img = #{isImg,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="downloadIsImg != null" >
|
|
|
|
|
download_is_img = #{downloadIsImg,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="imgFile != null" >
|
|
|
|
|
img_file = #{imgFile,jdbcType=NVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
@ -214,9 +237,8 @@
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.emr.entity.emrPdfWaterSet.EmrPdfWaterSet" >
|
|
|
|
|
update emr_pdf_water_set
|
|
|
|
|
set effective = #{effective,jdbcType=SMALLINT},
|
|
|
|
|
<if test="upOrUnder != null">
|
|
|
|
|
up_or_under = #{upOrUnder,jdbcType=SMALLINT},
|
|
|
|
|
</if>
|
|
|
|
|
download_effective = #{downloadEffective,jdbcType=SMALLINT},
|
|
|
|
|
up_or_under = #{upOrUnder,jdbcType=SMALLINT},
|
|
|
|
|
transparent = #{transparent,jdbcType=REAL},
|
|
|
|
|
text = #{text,jdbcType=NVARCHAR},
|
|
|
|
|
text_x = #{textX,jdbcType=INTEGER},
|
|
|
|
|
@ -225,6 +247,7 @@
|
|
|
|
|
text_size = #{textSize,jdbcType=INTEGER},
|
|
|
|
|
text_rotation = #{textRotation,jdbcType=INTEGER},
|
|
|
|
|
is_img = #{isImg,jdbcType=SMALLINT},
|
|
|
|
|
download_is_img = #{downloadIsImg,jdbcType=SMALLINT},
|
|
|
|
|
img_file = #{imgFile,jdbcType=NVARCHAR},
|
|
|
|
|
img_width = #{imgWidth,jdbcType=INTEGER},
|
|
|
|
|
img_height = #{imgHeight,jdbcType=INTEGER},
|
|
|
|
|
|