package com.sckw.transport.repository;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sckw.transport.dao.KwtWaybillOrderTrackMapper;
import com.sckw.transport.model.KwtWaybillOrderTrack;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * @author PC
 */
@Repository
public class KwtWaybillOrderTrackRepository extends ServiceImpl<KwtWaybillOrderTrackMapper, KwtWaybillOrderTrack> {
    public List<KwtWaybillOrderTrack> queryByAddressIds(Set<Long> addressIds) {
        return list(Wrappers.<KwtWaybillOrderTrack>lambdaQuery()
                .in(KwtWaybillOrderTrack::getWAddressId, addressIds)
                .eq(KwtWaybillOrderTrack::getDelFlag,0));
    }
}
