select equipment_id, equipment_code, equipment_name, equipment_model, equipment_weight, equipment_state, unit_of_measurement, equipment_category, factory_number, equipment_price, manufacturer_number, date_of_manufacture, equipment_dept, manufacturer_name, date_of_use, depreciation_year, depreciation_rate, storage_location, completion_of_process, equipment_manager, equipment_remark, first_add_time, update_info_time from sys_equipment insert into sys_equipment equipment_code, equipment_name, equipment_model, equipment_weight, equipment_state, unit_of_measurement, equipment_category, factory_number, equipment_price, manufacturer_number, date_of_manufacture, equipment_dept, manufacturer_name, date_of_use, depreciation_year, depreciation_rate, storage_location, completion_of_process, equipment_manager, equipment_remark, first_add_time, #{equipmentCode}, #{equipmentName}, #{equipmentModel}, #{equipmentWeight}, #{equipmentState}, #{unitOfMeasurement}, #{equipmentCategory}, #{factoryNumber}, #{equipmentPrice}, #{manufacturerNumber}, #{dateOfManufacture}, #{equipmentDept}, #{manufacturerName}, #{dateOfUse}, #{depreciationYear}, #{depreciationRate}, #{storageLocation}, #{completionOfProcess}, #{equipmentManager}, #{equipmentRemark}, now(), update sys_equipment equipment_code = #{equipmentCode}, equipment_name = #{equipmentName}, equipment_model = #{equipmentModel}, equipment_weight = #{equipmentWeight}, equipment_state = #{equipmentState}, unit_of_measurement = #{unitOfMeasurement}, equipment_category = #{equipmentCategory}, factory_number = #{factoryNumber}, equipment_price = #{equipmentPrice}, manufacturer_number = #{manufacturerNumber}, date_of_manufacture = #{dateOfManufacture}, equipment_dept = #{equipmentDept}, manufacturer_name = #{manufacturerName}, date_of_use = #{dateOfUse}, depreciation_year = #{depreciationYear}, depreciation_rate = #{depreciationRate}, storage_location = #{storageLocation}, completion_of_process = #{completionOfProcess}, equipment_manager = #{equipmentManager}, equipment_remark = #{equipmentRemark}, update_info_time = CONCAT_WS(',',NOW(),update_info_time), where equipment_id = #{equipmentId} delete from sys_equipment where equipment_id = #{equipmentId} delete from sys_equipment where equipment_id in #{equipmentId}