package com.zksy.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.base.domain.MaintenanceTask;
import com.zksy.manhole.dto.in.MaintenanceTaskDispatchInDTO;
import com.zksy.manhole.dto.in.MaintenanceTaskPageInDTO;
import com.zksy.manhole.dto.in.MaintenanceTaskProcessInDTO;
import com.zksy.manhole.dto.out.MaintenanceTaskOutDTO;

/**
* @author Administrator
* @description 针对表【maintenance_task(运维任务主表)】的数据库操作Service
* @createDate 2026-06-26 14:11:51
*/
public interface MaintenanceTaskService extends IService<MaintenanceTask> {

    /**
     * 分页查询运维任务列表
     * @param pageInDTO
     * @return
     */
    Page<MaintenanceTaskOutDTO> findByPage(MaintenanceTaskPageInDTO pageInDTO);

    /**
     * 获取运维任务详情
     * @param taskId
     * @return
     */
    MaintenanceTaskOutDTO getDetailById(Long taskId);

    /**
     * 批量下发运维任务
     * @param inDTO
     * @return
     */
    boolean batchDispatch(MaintenanceTaskDispatchInDTO inDTO);

    /**
     * 处理运维任务
     * @param inDTO
     * @return
     */
    boolean processTask(MaintenanceTaskProcessInDTO inDTO);
}
