UPDATE sys_pdf_module
name=#{name},
param=#{param},
fieldExplain=#{fieldExplain},
remark=#{remark},
templateId=#{templateId},
create_time=#{create_time},
update_time=#{update_time},
templateDlUrl=#{templateDlUrl},
templateType=#{templateType},
remark1=#{remark1},
remark2=#{remark2},
remark3=#{remark3},
WHERE id = #{id}
insert INTO sys_pdf_module( name, param, fieldExplain, remark, templateId, create_time, update_time
, templateDlUrl, templateType
, remark1, remark2, remark3)
values (#{name},
#{param},
#{fieldExplain},
#{templateId},
#{remark},
#{create_time},
#{update_time}, #{templateDlUrl}, #{templateType}, #{remark1}, #{remark2}, #{remark3})
delete
from sys_pdf_module
where id = #{id}
insert into sys_pdf_module
id,
`name`,
param,
fieldExplain,
remark,
templateId,
create_time,
update_time,
templateDlUrl,
templateType,
remark1,
remark2,
remark3,
modelKey,
values
#{id,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR},
#{param,jdbcType=VARCHAR},
#{fieldExplain,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
#{templateId,jdbcType=INTEGER},
#{create_time,jdbcType=TIMESTAMP},
#{update_time,jdbcType=TIMESTAMP},
#{templateDlUrl,jdbcType=VARCHAR},
#{templateType,jdbcType=INTEGER},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{modelKey,jdbcType=VARCHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
`name` = #{name,jdbcType=VARCHAR},
param = #{param,jdbcType=VARCHAR},
fieldExplain = #{fieldExplain,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
templateId = #{templateId,jdbcType=INTEGER},
create_time = #{create_time,jdbcType=TIMESTAMP},
update_time = #{update_time,jdbcType=TIMESTAMP},
templateDlUrl = #{templateDlUrl,jdbcType=VARCHAR},
templateType = #{templateType,jdbcType=INTEGER},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
modelKey = #{modelKey,jdbcType=VARCHAR},