package com.sptg.device.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.device.api.dto.TimeStrategyPushTaskDto;
import com.sptg.device.api.entity.TimeStrategyPushTask;
import org.springframework.transaction.annotation.Transactional;

/**
 * title: TimeStrategyPushTaskServiceInterface
 * package: com.sptg.device.biz.security
 * description:时间策略发布任务-服务层接口
 *
 *                
 *                
 */
public interface TimeStrategyPushTaskServiceInterface extends IService<TimeStrategyPushTask> {
    /**
     * 功能描述:分页查询时间策略发布任务
     * @param dto
     * @return Page<TimeStrategyPushTask>
     *                
     *                      
     */
    Page<TimeStrategyPushTask> showListTimeStrategyPushTaskList(TimeStrategyPushTaskDto dto);

    /**
     * 功能描述:时间策略发布任务添加
     * @param dto
     * @return boolean
     *                
     *                      
     */
    @Transactional(rollbackFor = Exception.class)
    boolean addTimeStrategyPushTask(TimeStrategyPushTaskDto dto);

    /**
     * 功能描述:分页获取超时的发布任务
     * @param page
     * @return  Page<TimeStrategyPushTask>
     *                
     *                      
     */
    Page<TimeStrategyPushTask> selectOvertimeTask(Page<TimeStrategyPushTask> page);
}
