GroupOneMapper.java
1.66 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
package cn.com.glsx.entmicro.mapper;
import cn.com.glsx.entmicro.entity.GroupOne;
import cn.com.glsx.entmicro.model.request.oneGroup.OneGroupCountRpcRequest;
import cn.com.glsx.entmicro.model.response.GroupOneCustomerDetailResponse;
import cn.com.glsx.entmicro.model.response.GroupOneResponse;
import cn.com.glsx.entmicro.model.response.oneGroup.OneGroupStaffCountRpcResponse;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
import java.util.Date;
import java.util.List;
@Mapper
public interface GroupOneMapper extends OreMapper<GroupOne> {
List<GroupOneResponse> selectByTemplateId(@Param("templateId") Integer templateId,
@Param("startTime") Date startTime, @Param("endTime") Date endTime);
/**
* chatId查询
* @param chatId
* @return
*/
List<GroupOneResponse> getGroupOneByChatId(@Param("chatId") String chatId);
/**
* 获取一客一群客户基本信息
* @param merchantId
* @param templateId
* @return
*/
Page<GroupOneCustomerDetailResponse> selectGroupOneCustomers(@Param("merchantId")Integer merchantId, @Param("templateId")Integer templateId);
/**
* 获取chatId对应的群主信息
* @param chatIds
* @return
*/
List<GroupOneCustomerDetailResponse> selectLord(@Param("chatIds")List<String> chatIds);
/**
* 查询一客一群群聊统计
* @param request
* @return
*/
List<OneGroupStaffCountRpcResponse> getOneGroupCount(@Param("request") OneGroupCountRpcRequest request);
}