package com.clx.performance.dao;

import com.msl.common.base.Optional;
import com.msl.common.dao.BaseDao;
import com.clx.performance.mapper.OrderGoodsDriverTruckMapper;
import com.clx.performance.model.OrderGoodsDriverTruck;

import java.util.List;

/**
 * @author kavin
 * Date 2023-09-17
 * Time 16:45
 */
public interface OrderGoodsDriverTruckDao extends BaseDao<OrderGoodsDriverTruckMapper, OrderGoodsDriverTruck, Integer> {

    void deleteByTruckNoAndDriverUserNo(String truckNo, String driverUserNo, Integer truckId);

    Optional<List<OrderGoodsDriverTruck>> selectListByDriverUserNo(Long driverUserNo);

    void updateTruckNoByTruckId(String truckNo, Integer truckId);
}
