select template_id, template_name, tenant_id, tenant_name, identifier, type, datatype, specs, is_sys, is_readonly, is_chart,is_share_perm, is_history, temp_slave_id, is_monitor, formula, del_flag, reverse_formula, create_by, reg_addr, create_time, bit_option, update_by, value_type, update_time, remark, model_order,is_params,quantity,code,parse_type 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, temp_slave_id, is_monitor, formula, del_flag, reverse_formula, create_by, reg_addr, create_time, bit_option, update_by, value_type, update_time, remark, model_order, is_params, quantity, code, parse_type, #{templateName}, #{tenantId}, #{tenantName}, #{identifier}, #{type}, #{datatype}, #{specs}, #{isSys}, #{isReadonly}, #{isChart}, #{isSharePerm}, #{isHistory}, #{tempSlaveId}, #{isMonitor}, #{formula}, #{delFlag}, #{reverseFormula}, #{createBy}, #{regAddr}, #{createTime}, #{bitOption}, #{updateBy}, #{valueType}, #{updateTime}, #{remark}, #{modelOrder}, #{isParams}, #{quantity}, #{code}, #{parseType}, 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}, temp_slave_id = #{tempSlaveId}, is_Monitor = #{isMonitor}, formula = #{formula}, del_flag = #{delFlag}, reverse_formula = #{reverseFormula}, create_by = #{createBy}, reg_addr = #{regAddr}, create_time = #{createTime}, bit_option = #{bitOption}, update_by = #{updateBy}, value_type = #{valueType}, update_time = #{updateTime}, remark = #{remark}, model_order = #{modelOrder}, is_params = #{isParams}, quantity=#{quantity}, code = #{code}, parse_type = #{parseType}, where template_id = #{templateId} update iot_things_model_template update_time = #{updateTime}, temp_slave_id = #{tempSlaveId}, old_temp_slave_id = #{oldTempSlaveId} where temp_slave_id = #{oldTempSlaveId} delete from iot_things_model_template where template_id = #{templateId} delete from iot_things_model_template where temp_slave_id like concat(#{templateId},'#%') delete from iot_things_model_template where template_id in #{templateId}