package com.rongwei.bscommon.sys.service;

import com.rongwei.bsentity.dto.BatchCreateDTO;
import com.rongwei.bsentity.dto.PlanYearCopyDTO;
import com.rongwei.bsentity.dto.TaskCreatorDTO;
import com.rongwei.rwcommon.base.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author shangmi
 * @title MaintenanceService
 * @date 2023/11/27 14:41
 * @description 保养检修Service
 */
public interface MaintenanceService  {

    /**
     * 发布任务
     *
     * @param taskCreator 入参
     * @return {@link R}
     * @date 2023/11/27 16:25
     * @author shangmi
     */
    R saveTask(TaskCreatorDTO taskCreator) ;

    /**
     * 批量生成保养计划
     *
     * @param batchCreate 入参
     * @return {@link R}
     * @date 2023/11/29 14:01
     * @author shangmi
     *
     */
    R batchSavePlans(BatchCreateDTO batchCreate);

    /**
     * 复制年度计划
     *
     * @param planYearCopy 入参
     * @return {@link R}
     * @date 2023/11/30 17:35
     * @author shangmi
     *
     */

    R saveYearByTask(PlanYearCopyDTO planYearCopy);

    /**
     * 导入Excel添加标准库
     *
     * @param multipartFile
     * @return {@link R}
     * @date 2023/12/7 18:50
     * @author shangmi
     *
     */

    R uploadStandardSave(MultipartFile multipartFile) throws IOException;
    /**
     * 从10号开始 往后每天对计划中的任务进行识别 并生成任务
     *
     * @param
     * @return {@link R}
     * @date 2023/12/26 10:38
     * @author shangmi
     *
     */
    R batchSavePlansTiming();
}
