select issue_id, issue_code, issue_name, workstation_id, workstation_code,workstation_name, workorder_id, workorder_code, task_id, task_code, client_id, client_code, client_name, client_nick, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, issue_date, status, remark,cancel_remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, machinery_id, machinery_code, machinery_name, machinery_no, team_id, team_code, team_name from wm_issue_header insert into wm_issue_header issue_code, issue_name, workstation_id, workstation_code, workstation_name, workorder_id, workorder_code, task_id, task_code, client_id, client_code, client_name, client_nick, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, issue_date, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, machinery_id, machinery_name, machinery_code, machinery_no, team_id, team_name, team_code, #{issueCode}, #{issueName}, #{workstationId}, #{workstationCode}, #{workstationName}, #{workorderId}, #{workorderCode}, #{taskId}, #{taskCode}, #{clientId}, #{clientCode}, #{clientName}, #{clientNick}, #{warehouseId}, #{warehouseCode}, #{warehouseName}, #{locationId}, #{locationCode}, #{locationName}, #{areaId}, #{areaCode}, #{areaName}, #{issueDate}, #{status}, #{remark}, #{attr1}, #{attr2}, #{attr3}, #{attr4}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{machineryId}, #{machineryName}, #{machineryCode}, #{machineryNo}, #{teamId}, #{teamName}, #{teamCode}, update wm_issue_header issue_code = #{issueCode}, issue_name = #{issueName}, workstation_id = #{workstationId}, workstation_code = #{workstationCode}, workstation_name = #{workstationName}, workorder_id = #{workorderId}, workorder_code = #{workorderCode}, task_id = #{taskId}, task_code = #{taskCode}, client_id = #{clientId}, client_code = #{clientCode}, client_name = #{clientName}, client_nick = #{clientNick}, warehouse_id = #{warehouseId}, warehouse_code = #{warehouseCode}, warehouse_name = #{warehouseName}, location_id = #{locationId}, location_code = #{locationCode}, location_name = #{locationName}, area_id = #{areaId}, area_code = #{areaCode}, area_name = #{areaName}, issue_date = #{issueDate}, status = #{status}, remark = #{remark}, cancel_remark = #{cancelRemark}, attr1 = #{attr1}, attr2 = #{attr2}, attr3 = #{attr3}, attr4 = #{attr4}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, machinery_id = #{machineryId}, machinery_name = #{machineryName}, machinery_code = #{machineryCode}, machinery_no = #{machineryNo}, team_id = #{teamId}, team_name = #{teamName}, team_code = #{teamCode}, where issue_id = #{issueId} delete from wm_issue_header where issue_id = #{issueId} delete from wm_issue_header where issue_id in #{issueId}