INSERT INTO duty_index_template( index_template_id, index_template_name, index_template_save_path, index_template_upload_path, index_template_list_path, index_template_table_name, index_template_remark, index_template_state, gmt_create, creator, gmt_modified, modifier, is_delete ) VALUES( #{indexTemplateId}, #{indexTemplateName}, #{indexTemplateSavePath}, #{indexTemplateUploadPath}, #{indexTemplateListPath}, #{indexTemplateTableName} #{indexTemplateRemark}, #{indexTemplateState}, #{gmtCreate}, #{creator}, #{gmtModified}, #{modifier}, #{isDelete} ) DELETE FROM duty_index_template WHERE index_template_id IN #{indexTemplateIds[${index}]} UPDATE duty_index_template SET gmt_modified = #{gmtModified}, modifier = #{modifier}, is_delete = 1 WHERE index_template_id IN #{indexTemplateIds[${index}]} UPDATE duty_index_template SET index_template_state = #{indexTemplateState}, index_template_name = #{indexTemplateName}, index_template_save_path = #{indexTemplateSavePath}, index_template_upload_path = #{indexTemplateUploadPath}, index_template_list_path = #{indexTemplateListPath}, index_template_table_name = #{indexTemplateTableName}, index_template_remark = #{indexTemplateRemark}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE index_template_id = #{indexTemplateId}