package com.yeshi.fanli.service.inter.homemodule;
|
|
import java.util.List;
|
import java.util.Set;
|
|
import com.yeshi.fanli.entity.bus.homemodule.AdActivityVersionControl;
|
import com.yeshi.fanli.entity.bus.homemodule.AdActivityVersionControl.AdActivityType;
|
|
/**
|
* 获取广告版本映射服务(包含专题与横幅)
|
*
|
* @author Administrator
|
*
|
*/
|
public interface AdActivityVersionControlService {
|
|
/**
|
* 添加
|
*
|
* @param control
|
* @throws Exception
|
*/
|
public void addVersionControl(AdActivityVersionControl control) throws Exception;
|
|
/**
|
* 主键删除
|
*
|
* @param id
|
*/
|
public void deleteByPrimaryKey(Long id);
|
|
/**
|
* 根据来源与版本删除
|
* @param sourceId
|
* @param type
|
* @param version
|
*/
|
public void deleteBySourceAndVersion(Long sourceId, AdActivityType type, Long version);
|
|
/**
|
* 根据类型与内容ID查询
|
*
|
* @param type
|
* @param sourceId
|
* @return
|
*/
|
public List<AdActivityVersionControl> listByTypeAndSourceId(AdActivityType type, Long sourceId);
|
|
/**
|
* 过滤内容ID
|
*
|
* @param sourceIdList
|
* @param type
|
* @param appVersionId
|
* @return
|
*/
|
public Set<Long> filterSourceIdByVersion(List<Long> sourceIdList, AdActivityType type, List<Long> versionIdList);
|
|
}
|