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);
|
}
|