package com.pcloud.book.advertising.dao.impl;

import com.pcloud.book.advertising.dao.AdvertisingCpaDao;
import com.pcloud.book.advertising.entity.AdvertisingCpa;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @描述：cpa内容
 * @作者：zhuyajie
 * @创建时间：15:45 2019/9/3
 * @版本：1.0
 */
@Component("advertisingCpaDao")
public class AdvertisingCpaDaoImpl extends BaseDaoImpl<AdvertisingCpa> implements AdvertisingCpaDao {
    @Override
    public List<Long> getNoPreviewLinkCPAList() {
        return getSessionTemplate().selectList(getStatement("getNoPreviewLinkCPAList"));
    }

    @Override
    public void updateVideo(AdvertisingCpa advertisingCpa) {
        getSessionTemplate().update(getStatement("updateVideo"),advertisingCpa);
    }
}
