| | |
| | | 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; |
| | |
| | | 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 商机编号 |