WeKeywordGroupTaskMapper.java
1.74 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
package com.linkwechat.wecom.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linkwechat.wecom.domain.WeKeywordGroupTask;
import com.linkwechat.wecom.domain.vo.WeKeywordGroupTaskVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 关键词拉群mapper
*/
@Mapper
@Repository
public interface WeKeywordGroupTaskMapper extends BaseMapper<WeKeywordGroupTask> {
/**
* 根据过滤条件获取关键词拉群任务列表
*
* @param taskName 任务名称
* @param createBy 创建人
* @param keyword 关键词
* @param beginTime 开始时间
* @param endTime 结束时间
* @return 列表数据
*/
List<WeKeywordGroupTaskVo> getTaskList(
@Param("taskName") String taskName,
@Param("createBy") String createBy,
@Param("keyword") String keyword,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime
);
/**
* 根据id获取任务性情
*
* @param taskId 任务id
* @return 结果
*/
WeKeywordGroupTaskVo getTaskById(Long taskId);
/**
* 根据任务id获取对应所有的群聊名称
*
* @param taskId 任务id
* @return 结果
*/
List<String> getGroupNameListByTaskId(Long taskId);
/**
* 校验名称是否唯一
*
* @param taskName 任务名
* @return 结果
*/
int checkNameUnique(String taskName);
/**
* 通过名称或者关键词进行过滤
*
* @param word 过滤字段
* @return 结果
*/
List<WeKeywordGroupTaskVo> filterByNameOrKeyword(String word);
}