| | |
| | | import me.zhengjie.modules.assetManagement.domain.AssetManagement; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | |
| | | * @date 2023-02-06 |
| | | **/ |
| | | public interface AssetManagementRepository extends JpaRepository<AssetManagement, Long>, JpaSpecificationExecutor<AssetManagement> { |
| | | |
| | | /** |
| | | * 根据公司和日期查询 |
| | | * @return |
| | | */ |
| | | @Query(value = "SELECT * FROM `asset_management` WHERE buy_date like %?% and affiliated_company_id = ? and assets_type = ?",nativeQuery = true) |
| | | List<AssetManagement> findByDateAndCompany(String buyDate, Long companyId, String assetsType); |
| | | } |