gaoluyang
7 小时以前 f4ef6d1f4489e0d4cbba1845792945b924c16228
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractService.java
@@ -12,6 +12,7 @@
import cn.iocoder.yudao.module.crm.dal.dataobject.customer.CrmCustomerDO;
import jakarta.validation.Valid;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Collection;
import java.util.List;
@@ -188,6 +189,26 @@
    Long getContractCountByCustomerId(Long customerId);
    /**
     * 批量统计各客户「已签订」的合同数量
     *
     * 「已签订」= 审批状态为审核通过的合同
     *
     * @param customerIds 客户编号集合
     * @return key:客户编号,value:合同数量。没有已签订合同的客户不在 map 中
     */
    Map<Long, Long> getContractCountMapByCustomerIds(Collection<Long> customerIds);
    /**
     * 批量统计各客户「已签订」的合同金额合计
     *
     * 「已签订」= 审批状态为审核通过的合同
     *
     * @param customerIds 客户编号集合
     * @return key:客户编号,value:金额合计。没有已签订合同的客户不在 map 中
     */
    Map<Long, BigDecimal> getContractPriceMapByCustomerIds(Collection<Long> customerIds);
    /**
     * 根据商机编号,获取关联客户的合同数量
     *
     * @param businessId 商机编号