OutboundTaskCustomerMapper.java
2.86 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
package cn.com.glsx.entmicro.mapper;
import cn.com.glsx.entmicro.entity.outbound.OutboundTaskCustomer;
import cn.com.glsx.entmicro.model.outbound.TaskCustomerCountModel;
import cn.com.glsx.entmicro.model.request.outbound.OutboundTaskCustomerRpcRequest;
import cn.com.glsx.entmicro.model.request.outbound.TaskCustomerPageRpcRequest;
import cn.com.glsx.entmicro.model.response.outbound.NotConnectPhoneStatusResponse;
import cn.com.glsx.entmicro.model.response.outbound.OutBoundTaskCustomerRpcResponse;
import cn.com.glsx.entmicro.model.response.outbound.OutboundCallTaskEchoRpcResponse;
import com.github.pagehelper.Page;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
@Mapper
public interface OutboundTaskCustomerMapper extends CommonBaseMapper<OutboundTaskCustomer> {
@MapKey("id")
Map<Integer, TaskCustomerCountModel> queryTaskCustomerCount(@Param("outboundTaskTbids") List<Integer> outboundTaskTbids);
List<TaskCustomerCountModel> queryTaskCustomerPhoneStatusCount(@Param("outboundTaskTbids") List<Integer> outboundTaskTbids);
List<OutboundTaskCustomer> getExecuteTaskCustomerPhonesByTaskId(@Param("taskId")Integer taskId, @Param("limitNum")Integer limitNum);
/**
* 更新手机号为已加企微
* @param customerPhone
* @param merchantIds
*/
void updateOutboundTaskCustomerPhoneStatus(@Param("customerPhone")String customerPhone, @Param("merchantIds")List<Integer> merchantIds);
/**
* 统计待创建任务的手机号
* @param outboundTaskId
* @return
*/
Integer countNeedToContinueCustomers(@Param("outboundTaskId") Integer outboundTaskId);
/**
* 分页查询手机号状态
* @param condition
* @return
*/
Page<OutBoundTaskCustomerRpcResponse> queryCondition(@Param("condition") OutboundTaskCustomerRpcRequest condition);
/**
* 根据外呼主任务id查询接听数和总计通话分钟数
* @param taskId
* @return
*/
OutboundCallTaskEchoRpcResponse selectTaskCountTotalCallMinuteAndAnswersById(@Param("taskId")Integer taskId);
/**
* 外呼未接通号码分组统计
* @param taskId
* @return
*/
List<NotConnectPhoneStatusResponse> selectNotConnectPhoneStatusList(@Param("taskId") Integer taskId);
/**
* 统计主任务通话分钟数
* @param taskIds
* @return
*/
List<OutboundCallTaskEchoRpcResponse> selectTaskCountTotalCallMinuteAndAnswersByIds(@Param("taskIds") List<Integer> taskIds);
/**
* AI外呼任务详情-客户列表多条件分页
* @param outboundTaskRequest
* @return
*/
Page<OutBoundTaskCustomerRpcResponse> findCustomersPageByCondition(TaskCustomerPageRpcRequest outboundTaskRequest);
}