IWeCustomerMessgaeResultService.java
1.31 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
package com.linkwechat.wecom.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkwechat.wecom.domain.WeCustomer;
import com.linkwechat.wecom.domain.WeCustomerMessgaeResult;
import com.linkwechat.wecom.domain.WeGroup;
import com.linkwechat.wecom.domain.dto.message.CustomerMessagePushDto;
import com.linkwechat.wecom.domain.vo.WeCustomerMessageResultVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 群发消息 微信消息发送结果表 we_customer_messgaeResult
*
* @author kewen
* @date 2020-12-12
*/
public interface IWeCustomerMessgaeResultService extends IService<WeCustomerMessgaeResult> {
/**
* 查询微信消息发送情况
*
* @param messageId 微信消息表id
* @param status 发送状态 0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败
* @return {@link WeCustomerMessageResultVo}s
*/
List<WeCustomerMessageResultVo> customerMessagePushs(Long messageId, String status);
/**
* 保存映射关系
*
* @param customerMessagePushDto
* @param messageId
* @return
*/
int workerMappingCustomer(CustomerMessagePushDto customerMessagePushDto, long messageId, List<WeCustomer> customers, List<WeGroup> groups);
}