UPDATE sys_pdf_template
name=#{name},
type=#{type},
module=#{module},
param=#{param},
path=#{path},
rowCount=#{rowCount},
qrcodeCount=#{qrcodeCount},
remark=#{remark},
create_time=#{create_time},
update_time=#{update_time},
jrxmlPath=#{jrxmlPath},
bussinessType=#{bussinessType},
bussinessStatus=#{bussinessStatus},
WHERE id = #{id}
insert INTO sys_pdf_template(name,
type, module, param, path, rowCount, qrcodeCount, remark, create_time,
update_time, jrxmlPath, bussinessType, bussinessStatus)
values (#{name},
#{type},
#{module},
#{param},
#{path},
#{rowCount},
#{qrcodeCount},
#{remark},
#{create_time},
#{update_time}, #{jrxmlPath}, #{bussinessType}, #{bussinessStatus})
delete
from sys_pdf_template
where id = #{id}
insert into sys_pdf_template
id,
`name`,
`type`,
`module`,
param,
`path`,
`rowCount`,
qrcodeCount,
remark,
create_time,
update_time,
jrxmlPath,
bussinessType,
bussinessStatus,
values
#{id,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{module,jdbcType=INTEGER},
#{param,jdbcType=VARCHAR},
#{path,jdbcType=VARCHAR},
#{rowCount,jdbcType=INTEGER},
#{qrcodeCount,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
#{create_time,jdbcType=TIMESTAMP},
#{update_time,jdbcType=TIMESTAMP},
#{jrxmlPath,jdbcType=VARCHAR},
#{bussinessType,jdbcType=VARCHAR},
#{bussinessStatus,jdbcType=VARCHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
`name` = #{name,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
`module` = #{module,jdbcType=INTEGER},
param = #{param,jdbcType=VARCHAR},
`path` = #{path,jdbcType=VARCHAR},
`rowCount` = #{rowCount,jdbcType=INTEGER},
qrcodeCount = #{qrcodeCount,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{create_time,jdbcType=TIMESTAMP},
update_time = #{update_time,jdbcType=TIMESTAMP},
jrxmlPath = #{jrxmlPath,jdbcType=VARCHAR},
bussinessType = #{bussinessType,jdbcType=VARCHAR},
bussinessStatus = #{bussinessStatus,jdbcType=VARCHAR},