package com.rongwei.bscommon.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rongwei.bsentity.domain.EquMaintenancePartDo;

import java.util.List;

/**
 * @author shangmi
 * @title EquMaintenancePartService
 * @date 2023/11/27 15:53
 * @description 设备维护部位业务类
 */
public interface EquMaintenancePartService extends IService<EquMaintenancePartDo> {
    /**
     * 根据主表ID和月查询计划详细信息信息
     *
     * @param id    主表ID
     * @param month 月份
     * @param year
     * @return {@link List< EquMaintenancePartDo>}
     * @date 2023/11/29 17:32
     * @author shangmi
     */

    List<EquMaintenancePartDo> getMasterIdAndMonthByList(String id, Integer month,Integer year);

    /**
     * 批量保存计划详细信息
     *
     * @param equMaintenancePartList 数组
     * @return
     * @date 2023/11/29 17:33
     * @author shangmi
     *
     */

    void saveBatchList(List<EquMaintenancePartDo> equMaintenancePartList);

    List<EquMaintenancePartDo> getMasterIdByList(List<String> collect);
}
