update tm_task set task_status = #{status} where task_id = #{taskId} insert into tm_task pre_task_id, task_type, task_status, `code`, month_order, create_by, create_time, update_by, update_time, remark, company_id, #{preTaskId}, #{taskType}, #{taskStatus}, #{code}, #{monthOrder}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{companyId}, insert into purchase_part_info task_id, purchase_time, arrival_time, purchaser, supplier_id, tax_rate, create_by, create_time, update_by, update_time, remark, company_id, #{taskId}, #{purchaseTime}, #{arrivalTime}, #{purchaser}, #{supplierId}, #{taxRate}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{companyId}, insert into purchase_part_details(task_id,part_id,purchase_price,purchase_tax_price, purchase_num,check_num,check_result,supplier_id, status,production_time,create_by,create_time,update_by, update_time,remark,input_num, input_time,company_id,del_flag) values (#{item.taskId},#{item.partId},#{item.purchasePrice},#{item.purchaseTaxPrice}, #{item.purchaseNum},#{item.checkNum},#{item.checkResult},#{item.supplierId}, #{item.status},#{item.productionTime},#{item.createBy},NOW(),#{item.updateBy}, #{item.updateTime},#{item.remark},#{item.inputNum}, #{item.inputTime},#{item.companyId},0) delete from purchase_part_details where task_id = #{taskId} and status = 1 delete from purchase_part_details where task_id = #{taskId} delete from tm_task where task_id = #{taskId} delete from purchase_part_info where id = #{id} delete from bm_file_info bfi where task_id = #{taskId} and task_type = 13