WeGroupSopChatMapper.java
1.15 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
package com.linkwechat.wecom.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linkwechat.wecom.domain.WeGroupSopChat;
import com.linkwechat.wecom.domain.vo.WeCommunityTaskEmplVo;
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 WeGroupSopChatMapper extends BaseMapper<WeGroupSopChat> {
/**
* 批量保存sop - chat 绑定
*
* @param sopChatList 待绑定对象
* @return 结果
*/
int batchBindsSopChat(List<WeGroupSopChat> sopChatList);
/**
* 变更某员工sop规则发送任务的状态
*
* @param ruleId 规则名称
* @param emplId 员工id(即群聊群主)
* @return 结果
*/
int updateChatSopStatus(@Param("ruleId") Long ruleId, @Param("emplId") String emplId);
/**
* 根据SOP 规则id获取所有使用人员信息
*
* @param ruleId sop id
* @return 结果
*/
List<WeCommunityTaskEmplVo> getScopeListByRuleId(Long ruleId);
}