package cn.iocoder.yudao.module.crm.service.customer; import cn.iocoder.yudao.module.crm.controller.admin.customer.vo.progress.CrmCustomerProgressSaveReqVO; import cn.iocoder.yudao.module.crm.dal.dataobject.customer.CrmCustomerProgressDO; import java.util.Collection; import java.util.List; import java.util.Map; /** * CRM 客户洽谈进度 Service 接口 * * @author 超级管理员 */ public interface CrmCustomerProgressService { /** * 创建洽谈进度 * * @param createReqVO 创建信息 * @return 编号 */ Long createProgress(CrmCustomerProgressSaveReqVO createReqVO); /** * 更新洽谈进度 * * @param updateReqVO 更新信息 */ void updateProgress(CrmCustomerProgressSaveReqVO updateReqVO); /** * 删除洽谈进度 * * @param id 编号 */ void deleteProgress(Long id); /** * 获得指定客户的洽谈进度列表,按洽谈时间倒序 * * @param customerId 客户编号 * @return 洽谈进度列表 */ List getProgressListByCustomerId(Long customerId); /** * 获得多个客户各自最新的一条洽谈进度 * * @param customerIds 客户编号集合 * @return key 为客户编号,value 为最新洽谈进度 */ Map getLatestProgressMap(Collection customerIds); }