package com.sckw.usual.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.usual.entity.KwOrderUsualLandTransportCirculate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface KwOrderUsualLandTransportCirculateMapper extends BaseMapper<KwOrderUsualLandTransportCirculate> {

    KwOrderUsualLandTransportCirculate findCirculate(@Param("lOrderId") Long lOrderId, @Param("truckId") Long truckId,
                                             @Param("driverId") Long driverId);

    int updateIdByKey(@Param("newId") Long newId, @Param("tOrderId") Long tOrderId, @Param("id") Long id,
                      @Param("updateBy") Long updateBy, @Param("updateTime") Date updateTime);


    List<KwOrderUsualLandTransportCirculate> findCirculateList(@Param("lOrderId") Long lOrderId, @Param("truckId") Long truckId,
                                                       @Param("driverId") Long driverId, @Param("status") Integer status);

}
