EquipmentMaintainPlanMapper.java 2.0 KB
package com.skua.modules.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.equipment.dto.EquipmentMaintainPlanDTO;
import com.skua.modules.equipment.entity.EquipmentMaintainPlan;
import com.skua.modules.equipment.entity.EquipmentMaintainStandard;

import com.skua.modules.equipment.vo.EquipmentInformationVO;

import com.skua.modules.equipment.vo.EquipmentMaintainPlanVO;
import com.skua.modules.equipment.vo.EquipmentSparepartVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentMaintainPlanMapper extends BaseMapper<EquipmentMaintainPlan> {
    void addPlanEquip(@Param("id") String id, @Param("planId") String planId, @Param("equipmentId") String equipmentId);

    void deletePlanEquip(@Param("planId") String planId);

    void addPlanStandard(@Param("id") String id, @Param("planId") String planId, @Param("standardId") String standardId);

    void deletePlanStandard(@Param("planId") String planId);
void  deletePlan(@Param("planId") String planId);
    void addPlanSparePart(@Param("id") String id, @Param("planId") String planId, @Param("sparePartId") String sparePartId, @Param("num") Integer num);
void deletePlanSparePart(@Param("planId") String planId);
    List<EquipmentMaintainPlanVO> queryCustomPageList(Page<EquipmentMaintainPlanVO> pageList, @Param("equipmentMaintainPlanDTO") EquipmentMaintainPlanDTO equipmentMaintainPlanDTO);

    EquipmentMaintainPlanVO queryById(@Param("id") String id);

    List<EquipmentInformationVO> getEquipmentInformationByPlanId(@Param("planId") String planId);

    List<EquipmentMaintainStandard> getEquipmentMaintainStandardByPlanId(@Param("planId") String planId);

    List<EquipmentSparepartVO> getEquipmentSparepartByPlanId(@Param("planId") String planId);

    EquipmentMaintainStandard getModeAndLevelByIds(@Param("ids") List<String> ids);
}