package com.chinacreator.video.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 柏源二级渠道保存
 * @author xu.zhou
 * @date 20210810
 */
@Component
public interface ChannelOrgDao {
    
    /**
     * 新增、更新、删除配置数据，删除为逻辑删除，只改变数据状态
     * @param params
     * @return
     */
    public int operchannelorginfo(HashMap params);
    
    /**
     * 根据子渠道编码获取渠道信息
     * @param channel  主渠道标识
     * @param subchannelcode 子渠道编码
     * @return
     */
    @Cacheable(value = "univideo_channelorgboyuan",keyGenerator = "wiselyKeyGenerator")
    public HashMap getchannelorginfo(@Param("channel") String channel, @Param("subchannelcode") String subchannelcode);
}
