select shift_io_detail_id, organization_id, organization_name, top_organization_id, unique_id, material_inventory_id, material_base_info_id, material_code, material_name, bar_code, shift_number, shift_status, inventory_quantity, quantity, already_shift_quantity, shift_quantity, batch_number,shift_type,old_warehouse_id, old_warehouse_code, old_warehouse_name, old_storage_section_id, old_storage_code, old_storage_name, old_storage_location_id, old_storage_location_code, old_storage_location_name, new_warehouse_id, new_warehouse_code, new_warehouse_name, new_storage_section_id, new_storage_code, new_storage_name, new_storage_location_id, new_storage_location_code, new_storage_location_name, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, container_id, container_code, container_type, container_type_name, level, parent_unique_id, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag,material_status_code,material_status_name,net_weight,gross_weight,volume,area from shift_material_detail and del_flag = 1 and organization_id = #{organizationId} and organization_name like concat('%', #{organizationName}, '%') and top_organization_id = #{topOrganizationId} and unique_id = #{uniqueId} and material_base_info_id = #{materialBaseInfoId} and material_code = #{materialCode} and material_name like concat('%', #{materialName}, '%') and bar_code = #{barCode} and shift_number like concat('%',#{shiftNumber},'%') and shift_status = #{shiftStatus} and inventory_quantity = #{inventoryQuantity} and quantity = #{quantity} and shift_quantity = #{shiftQuantity} and old_warehouse_id = #{oldWarehouseId} and old_warehouse_code = #{oldWarehouseCode} and old_warehouse_name like concat('%', #{oldWarehouseName}, '%') and old_storage_section_id = #{oldStorageSectionId} and old_storage_code = #{oldStorageCode} and old_storage_name like concat('%', #{oldStorageName}, '%') and old_storage_location_id = #{oldStorageLocationId} and old_storage_location_code = #{oldStorageLocationCode} and old_storage_location_name like concat('%', #{oldStorageLocationName}, '%') and new_warehouse_id = #{newWarehouseId} and new_warehouse_code = #{newWarehouseCode} and new_warehouse_name like concat('%', #{newWarehouseName}, '%') and new_storage_section_id = #{newStorageSectionId} and new_storage_code = #{newStorageCode} and new_storage_name like concat('%', #{newStorageName}, '%') and new_storage_location_id = #{newStorageLocationId} and new_storage_location_code = #{newStorageLocationCode} and new_storage_location_name like concat('%', #{newStorageLocationName}, '%') and pack_id = #{packId} and pack_code = #{packCode} and pack_name like concat('%', #{packName}, '%') and pack_detail_id = #{packDetailId} and unit_code = #{unitCode} and unit_name like concat('%', #{unitName}, '%') and unit_number = #{unitNumber} and material_warehouse_control_id = #{materialWarehouseControlId} and serial_number_manage = #{serialNumberManage} and container_id = #{containerId} and container_code = #{containerCode} and container_type = #{containerType} and container_type_name like concat('%', #{containerTypeName}, '%') and level = #{level} and create_by_name like concat('%', #{createByName}, '%') and update_by_name like concat('%', #{updateByName}, '%') and remark like concat('%',#{remark},'%') update shift_material_detail set shift_quantity = #{shiftQuantity},shift_status = #{shiftStatus} where shift_io_detail_id = #{shiftIoDetailId} update shift_material_detail set shift_status = 2 where shift_number = #{shiftNumber}