package com.sptg.ad.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.ad.api.entity.DeviceAdvertStatistics;
import com.sptg.common.core.beans.PageBean;

/**
 *            
 *               
 * description:
 */
public interface DeviceAdvertStatisticsService extends IService<DeviceAdvertStatistics> {

    /**
     * 获取当月的设备广告统计
     * @param deviceId 设备Id
     * @param taskType 任务类型：{ 1：人脸广告，2：闲时广告 }
     * @return DeviceAdvertStatistics
     */
    DeviceAdvertStatistics selectCurrentMonthAdvertStatistics(Long deviceId,Integer taskType);

    /**
     * 分页查询
     * @param pageBean 查询条件
     * @return Page<DeviceAdvertStatistics>
     */
    Page<DeviceAdvertStatistics> pagingQuery(PageBean<DeviceAdvertStatistics,DeviceAdvertStatistics> pageBean);
}
