select work_id, work_code, work_person, work_outsourcing_unit, work_connection, work_reason, work_type, management_code, work_cost, work_cost_time, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time, factory_code from equ_outsource_work insert into equ_outsource_work work_id, work_code, work_person, work_outsourcing_unit, work_connection, work_reason, work_type, management_code, work_cost, work_cost_time, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time, factory_code, #{workId}, #{workCode}, #{workPerson}, #{workOutsourcingUnit}, #{workConnection}, #{workReason}, #{workType}, #{managementCode}, #{workCost}, #{workCostTime}, #{attr1}, #{attr2}, #{attr3}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{factoryCode}, update equ_outsource_work work_code = #{workCode}, work_person = #{workPerson}, work_outsourcing_unit = #{workOutsourcingUnit}, work_connection = #{workConnection}, work_reason = #{workReason}, work_type = #{workType}, management_code = #{managementCode}, work_cost = #{workCost}, work_cost_time = #{workCostTime}, attr1 = #{attr1}, attr2 = #{attr2}, attr3 = #{attr3}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, factory_code = #{factoryCode}, where work_id = #{workId} delete from equ_outsource_work where work_id = #{workId} delete from equ_outsource_work where work_id in #{workId}