INSERT INTO `standardized_template` (
`company_id`,
`company_name`,
`create_by`,
`create_time`,
`template_name`,
`template_type`,
`file_path`,
`format`,
`classify`,
`dept_id`,
`industry_type_id`,
`stage`,
`department`
)
VALUES
(
#{item.companyId},
#{item.companyName},
#{item.createBy},
#{item.createTime},
#{item.templateName},
#{item.templateType},
#{item.filePath},
#{item.format},
#{item.classify},
#{item.deptId},
#{item.industryTypeId},
#{item.stage},
#{item.department}
)
UPDATE standardized_template
company_id = #{companyId},
company_name = #{companyName},
template_name = #{templateName},
template_type = #{templateType},
file_path = #{filePath},
format = #{format},
classify = #{classify},
industry_type_id = #{industryTypeId},
dept_id = #{deptId},
department = #{department},
stage = #{stage},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime}
where id = #{id}