id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey
delete from sys_pdf_template_relevance_label
where id = #{id,jdbcType=INTEGER}
insert into sys_pdf_template_relevance_label (templateId, customerId, adminId,
moduleId, localAction, remark1,
remark2, remark3, printType,
modelKey)
values (#{templateId,jdbcType=INTEGER}, #{customerId,jdbcType=BIGINT}, #{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER}, #{localAction,jdbcType=VARCHAR}, #{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR}, #{remark3,jdbcType=VARCHAR}, #{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR})
insert into sys_pdf_template_relevance_label
templateId,
customerId,
adminId,
moduleId,
localAction,
remark1,
remark2,
remark3,
printType,
modelKey,
#{templateId,jdbcType=INTEGER},
#{customerId,jdbcType=BIGINT},
#{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER},
#{localAction,jdbcType=VARCHAR},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR},
update sys_pdf_template_relevance_label
templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR},
where id = #{id,jdbcType=INTEGER}
update sys_pdf_template_relevance_label
set templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
update sys_pdf_template_relevance_label
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
where id in
#{item.id,jdbcType=INTEGER}
update sys_pdf_template_relevance_label
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
where id in
#{item.id,jdbcType=INTEGER}
insert into sys_pdf_template_relevance_label
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey)
values
(#{item.templateId,jdbcType=INTEGER}, #{item.customerId,jdbcType=BIGINT}, #{item.adminId,jdbcType=INTEGER},
#{item.moduleId,jdbcType=INTEGER}, #{item.localAction,jdbcType=VARCHAR}, #{item.remark1,jdbcType=VARCHAR},
#{item.remark2,jdbcType=VARCHAR}, #{item.remark3,jdbcType=VARCHAR}, #{item.printType,jdbcType=TINYINT},
#{item.modelKey,jdbcType=VARCHAR})
insert into sys_pdf_template_relevance_label
id,
templateId,
customerId,
adminId,
moduleId,
localAction,
remark1,
remark2,
remark3,
printType,
modelKey,
values
#{id,jdbcType=INTEGER},
#{templateId,jdbcType=INTEGER},
#{customerId,jdbcType=BIGINT},
#{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER},
#{localAction,jdbcType=VARCHAR},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR},
insert into sys_pdf_template_relevance_label
id,
templateId,
customerId,
adminId,
moduleId,
localAction,
remark1,
remark2,
remark3,
printType,
modelKey,
values
#{id,jdbcType=INTEGER},
#{templateId,jdbcType=INTEGER},
#{customerId,jdbcType=BIGINT},
#{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER},
#{localAction,jdbcType=VARCHAR},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR},