WeGroupSopMapper.java
1.75 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
package com.linkwechat.wecom.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linkwechat.wecom.domain.WeGroupSop;
import com.linkwechat.wecom.domain.vo.WeGroupSopVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 群SOP mapper接口
*/
@Mapper
@Repository
public interface WeGroupSopMapper extends BaseMapper<WeGroupSop> {
/**
* 根据过滤条件获取群sop规则列表
*
* @param ruleName 规则名称
* @param createBy 创建人
* @param beginTime 创建开始时间
* @param endTime 创建结束时间
* @return 结果
*/
List<WeGroupSopVo> getGroupSopList(
@Param("ruleName") String ruleName,
@Param("createBy") String createBy,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime
);
/**
* 通过id获取sop规则
*
* @param sopId id
* @return 结果
*/
WeGroupSopVo getGroupSopById(Long sopId);
/**
* 批量删除群sop
*
* @param ruleIds 群sop规则id列表
* @return 结果
*/
int batchRemoveWeGroupSopByIds(Long[] ruleIds);
/**
* 校验规则名是否已存在
*
* @param ruleName 规则名
* @return 结果
*/
int isRuleNameUnique(String ruleName);
/**
* 通过规则id获取其所有素材id
*
* @param ruleId sop规则id
* @return 结果
*/
List<Long> getMaterialIdListByRuleId(Long ruleId);
/**
* 通过规则id获取其所有群聊id
*
* @param ruleId sop规则id
* @return 结果
*/
List<String> getChatIdListByRuleId(Long ruleId);
}