| | |
| | | import me.zhengjie.modules.capitalFlow.domain.CapitalFlow; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | import java.sql.Timestamp; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | |
| | | * @date 2023-02-13 |
| | | **/ |
| | | public interface CapitalFlowRepository extends JpaRepository<CapitalFlow, Long>, JpaSpecificationExecutor<CapitalFlow> { |
| | | |
| | | /** |
| | | * 根据日期,公司id查询 |
| | | * @param yearMonth |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @Query |
| | | CapitalFlow findByFlowYearMonthAndCompanyId(Timestamp yearMonth, Long companyId); |
| | | } |