select tool_id, tool_code, tool_name, brand, spec, tool_type_id, tool_type_code, tool_type_name, code_flag, quantity, quantity_avail, mainten_type, next_mainten_period, next_mainten_date, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from tm_tool insert into tm_tool tool_code, tool_name, brand, spec, tool_type_id, tool_type_code, tool_type_name, code_flag, quantity, quantity_avail, mainten_type, next_mainten_period, next_mainten_date, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, #{toolCode}, #{toolName}, #{brand}, #{spec}, #{toolTypeId}, #{toolTypeCode}, #{toolTypeName}, #{codeFlag}, #{quantity}, #{quantityAvail}, #{maintenType}, #{nextMaintenPeriod}, #{nextMaintenDate}, #{status}, #{remark}, #{attr1}, #{attr2}, #{attr3}, #{attr4}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update tm_tool tool_code = #{toolCode}, tool_name = #{toolName}, brand = #{brand}, spec = #{spec}, tool_type_id = #{toolTypeId}, tool_type_code = #{toolTypeCode}, tool_type_name = #{toolTypeName}, code_flag = #{codeFlag}, quantity = #{quantity}, quantity_avail = #{quantityAvail}, mainten_type = #{maintenType}, next_mainten_period = #{nextMaintenPeriod}, next_mainten_date = #{nextMaintenDate}, next_mainten_period = null, next_mainten_date = null, status = #{status}, remark = #{remark}, attr1 = #{attr1}, attr2 = #{attr2}, attr3 = #{attr3}, attr4 = #{attr4}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where tool_id = #{toolId} delete from tm_tool where tool_id = #{toolId} delete from tm_tool where tool_id in #{toolId}