package com.example.removetolocal.newrepel.dao;

import com.example.removetolocal.newrepel.entity.RepelTaskStatistical;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface RepelTaskStatisticalDao extends JpaRepository<RepelTaskStatistical, Integer>, JpaSpecificationExecutor<RepelTaskStatistical> {
    List<RepelTaskStatistical>  findAllByFatherTaskIdAndAndRepelId(Integer fatherId,Integer repelId);

    RepelTaskStatistical findByTaskIdAndAndRepelId(Integer taskId,Integer repelId);
}
