package com.sptg.ad.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.ad.api.dto.AdOfflinePushRecordDto;
import com.sptg.ad.api.dto.AdPushTaskDto;
import com.sptg.ad.api.entity.AdOfflinePushRecord;
import com.sptg.ad.api.entity.AdPushTask;
import com.sptg.common.core.beans.ResultBean;

/**
 * title: AdOfflinePushRecordServiceInterface
 * package: com.sptg.ad.biz.security
 * description: 线下广告发布记录-服务层接口
 *
 *
 *
 */
public interface AdOfflinePushRecordServiceInterface extends IService<AdOfflinePushRecord> {
    /**
     * 功能描述:分页查询
     * @param adOfflinePushRecordDto
     * @return
     *
     *
     */
    Page<AdOfflinePushRecord> showAdOfflinePushRecordList(AdOfflinePushRecordDto adOfflinePushRecordDto);

    /**
     * 功能描述:新增
     * @param adOfflinePushRecord
     * @return
     *
     *
     */
    ResultBean<Boolean> addAdOfflinePushRecord(AdOfflinePushRecord adOfflinePushRecord);
    /**
     * 功能描述:撤销发布
     * @param id
     * @return
     *
     *
     */
    ResultBean<Boolean> cancelAdOfflinePushRecord(Long id);
    /**
     * 功能描述:根据id获取发布记录
     * @param id
     * @return
     *
     *
     */
    AdOfflinePushRecord findAdOfflinePushRecordById(Long id);


   /**
    * 功能描述:修改
    * @param adOfflinePushRecord
    * @return
    *
    *
    */
    ResultBean<Boolean> updateAdOfflinePushRecord(AdOfflinePushRecord adOfflinePushRecord);

    Integer getAdOfflinePushRecordByProvinceName(String provinceShortName,String orgPosition);
    Integer getAdOfflinePushRecordByYearMonth(String year,String month);
}
