package com.izouma.dingdong.repo.rider;

import com.izouma.dingdong.domain.rider.RiderSign;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface RiderSignRepo extends JpaRepository<RiderSign, Long>, JpaSpecificationExecutor<RiderSign> {

    //查找开启接单的骑手
    RiderSign findByRiderIdAndTakingOrders(Long riderId, Boolean takingOrders);
}