| | |
| | | */ |
| | | package me.zhengjie.modules.contract.repository; |
| | | |
| | | import me.zhengjie.modules.assetManagement.domain.AssetManagement; |
| | | import me.zhengjie.modules.contract.domain.ContractPayment; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | |
| | | * @param contractId |
| | | */ |
| | | void deleteByContractId(Long contractId); |
| | | |
| | | /** |
| | | * 根据公司和日期查询 |
| | | * @return |
| | | */ |
| | | @Query(value = "SELECT * FROM `contract_payment` WHERE payment_time like %?% and company_id = ? and payment_type = ?",nativeQuery = true) |
| | | List<ContractPayment> findByDateAndCompany(String buyDate, Long companyId, String assetsType); |
| | | } |