select template_id, template_name, tenant_id, tenant_name, identifier, type, datatype, specs, is_sys, is_readonly, is_chart,is_share_perm, is_history, formula, del_flag, create_by, create_time, update_by, update_time, remark, model_order from iot_things_model_template insert into iot_things_model_template template_name, tenant_id, tenant_name, identifier, type, datatype, specs, is_sys, is_readonly, is_chart, is_share_perm, is_history, is_monitor, is_app, formula, del_flag, create_by, create_time, update_by, update_time, remark, model_order, #{templateName}, #{tenantId}, #{tenantName}, #{identifier}, #{type}, #{datatype}, #{specs}, #{isSys}, #{isReadonly}, #{isChart}, #{isSharePerm}, #{isHistory}, #{isMonitor}, #{isApp}, #{formula}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{modelOrder}, update iot_things_model_template template_name = #{templateName}, tenant_id = #{tenantId}, tenant_name = #{tenantName}, identifier = #{identifier}, type = #{type}, datatype = #{datatype}, specs = #{specs}, is_sys = #{isSys}, is_readonly = #{isReadonly}, is_chart = #{isChart}, is_share_perm = #{isSharePerm}, is_history = #{isHistory}, is_Monitor = #{isMonitor}, is_app = #{isApp}, formula = #{formula}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where template_id = #{templateId} delete from iot_things_model_template where template_id = #{templateId} delete from iot_things_model_template where template_id in #{templateId}