Sunshine
2024-11-04 177f10973fd9bc1f0930369bb086ad9f0053440c
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
package com.nova.sankuai.infra.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nova.sankuai.domain.entity.ChannelMechanismConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
 
import java.util.List;
 
/**
 * @author weikangdi
 * @create 2022/3/31
 */
@Component
@Mapper
public interface ChannelMechanismConfigMapper extends BaseMapper<ChannelMechanismConfig> {
    /**
     * 通过机构ID移除渠道配置
     *
     * @param mechanismId
     */
    void removeByMechanismId(Long mechanismId);
 
    /**
     * 更新机构渠道配置
     *
     * @param channelIds
     * @param mechanismId
     */
    void updateConfig(@Param("channelIds") List<Long> channelIds, @Param("mechanismId") Long mechanismId);
 
    /**
     * 通过机构ID获取渠道配置ID列表
     *
     * @param mechanismId
     * @return
     */
    List<Long> getChannelsByMechanismId(Long mechanismId);
}