| | |
| | | */ |
| | | @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); |
| | | |
| | | /** |
| | | * 统计合同付款(收/支)总额 |
| | | * @param contractId |
| | | * @param paymentType |
| | | * @return |
| | | */ |
| | | @Query(value = "SELECT SUM(payment_amount) AS totalAmount FROM contract_payment WHERE contract_id = ?1 AND payment_type = ?2",nativeQuery = true) |
| | | BigDecimal sumPaymentAmountByContractIdAndPaymentType(Long contractId, String paymentType); |
| | | } |