EquipmentMaintainPlanMapper.java
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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);
}