IWeCustomerService.java
2.79 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
package com.linkwechat.wecom.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkwechat.wecom.domain.*;
import com.linkwechat.wecom.domain.dto.WeWelcomeMsg;
import com.linkwechat.wecom.domain.vo.WeCustomerDetailVo;
import com.linkwechat.wecom.domain.vo.WeLeaveUserInfoAllocateVo;
import com.linkwechat.wecom.domain.vo.WeMakeCustomerTag;
import com.linkwechat.wecom.domain.vo.WeOnTheJobCustomerVo;
import java.util.List;
/**
* 企业微信客户Service接口
*
* @author ruoyi
* @date 2020-09-13
*/
public interface IWeCustomerService extends IService<WeCustomer>
{
/**
* 同步客户接口
* @return
*/
void synchWeCustomer();
/**
* 分配离职员工客户
* @param weLeaveUserInfoAllocateVo
*/
void allocateWeCustomer(WeLeaveUserInfoAllocateVo weLeaveUserInfoAllocateVo);
/**
* 在职员工客户分配
* @param weOnTheJobCustomerVo
*/
void allocateOnTheJobCustomer(WeOnTheJobCustomerVo weOnTheJobCustomerVo);
/**
* 客户打标签
* @param weMakeCustomerTag
*/
void makeLabel(WeMakeCustomerTag weMakeCustomerTag);
/**
* 获取客户详情并同步客户数据
* @param externalUserid
* @param userId
*/
void getCustomersInfoAndSynchWeCustomer(String externalUserid,String userId);
/**
* 向客户发送欢迎语
* @param weWelcomeMsg
*/
void sendWelcomeMsg(WeWelcomeMsg weWelcomeMsg);
/**
* 修改客户是否开启会话状态
* @param externalUserId 客户id
*/
boolean updateCustomerChatStatus(String externalUserId);
/**
* 根据外部联系人ID和企业员工ID获取当前客户信息
* @param externalUserid
* @param userid
* @return
*/
WeCustomerPortrait findCustomerByOperUseridAndCustomerId(String externalUserid,String userid) throws Exception;
/**
* 跟新客户画像
* @param weCustomerPortrait
*/
void updateWeCustomerPortrait(WeCustomerPortrait weCustomerPortrait);
/**
* 重构版客户列表
* @param weCustomerList
* @return
*/
List<WeCustomerList> findWeCustomerList(WeCustomerList weCustomerList);
/**
* 客户详情基础数据
* @param externalUserid
* @param userId
* @return
*/
WeCustomerDetail findWeCustomerDetail(String externalUserid,String userId);
/**
* 客户画像汇总
* @return
*/
WeCustomerDetail findWeCustomerInfoSummary(String externalUserid,String userId);
/**
* 单个跟进人客户
* @return
*/
WeCustomerDetail findWeCustomerInfoByUserId(String externalUserid,String userId);
/**
* 去重统计
* @return
*/
long noRepeatCountCustomer(WeCustomerList weCustomerList);
}