eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/contract/repository/ContractProjectRepository.java
@@ -57,7 +57,7 @@ * @param fundType * @return */ @Query(value = "SELECT SUM(allocated_amount) FROM contract_project WHERE contract_id = ?1 AND fund_type = ?2",nativeQuery = true) @Query(value = "SELECT COALESCE(SUM(allocated_amount), 0) FROM contract_project WHERE contract_id = ?1 AND fund_type = ?2",nativeQuery = true) BigDecimal sumAllocatedAmountByContractIdAndFundType(Long contractId, String fundType); /**