INSERT INTO template_config(
template_config_id,
template_code,
template_url,
template_name,
template_content,
template_root_path,
template_order,
template_file,
template_all_generate,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{templateConfigId},
#{templateCode},
#{templateUrl},
#{templateName},
#{templateContent},
#{templateRootPath},
#{templateOrder},
#{templateFile},
#{templateAllGenerate},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
template_config
SET
is_delete = 1,
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
template_config_id IN
#{templateConfigIds[${index}]}
UPDATE
template_config
SET
template_content = #{templateContent},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
template_config_id = #{templateConfigId}
UPDATE
template_config
SET
template_code = #{templateCode},
template_url = #{templateUrl},
template_name = #{templateName},
template_content = #{templateContent},
template_root_path = #{templateRootPath},
template_order = #{templateOrder},
template_file = #{templateFile},
template_all_generate = #{templateAllGenerate},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
template_config_id = #{templateConfigId}