云
4 天以前 f02d0df2f1dfc7a8b775cf50d45375e57628a5ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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<CrmCustomerProgressDO> getProgressListByCustomerId(Long customerId);
 
    /**
     * 获得多个客户各自最新的一条洽谈进度
     *
     * @param customerIds 客户编号集合
     * @return key 为客户编号,value 为最新洽谈进度
     */
    Map<Long, CrmCustomerProgressDO> getLatestProgressMap(Collection<Long> customerIds);
 
}