2026-06-29 940c8481d2fdcf51341db4ccd6fd6fcc2d43debb
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package cn.iocoder.yudao.module.mes.service.dv.checkplan;
 
import cn.iocoder.yudao.module.mes.controller.admin.dv.checkplan.vo.machinery.MesDvCheckPlanMachinerySaveReqVO;
import cn.iocoder.yudao.module.mes.dal.dataobject.dv.checkplan.MesDvCheckPlanMachineryDO;
import jakarta.validation.Valid;
 
import java.util.List;
 
/**
 * MES 点检保养方案设备 Service 接口
 *
 * @author 芋道源码
 */
public interface MesDvCheckPlanMachineryService {
 
    /**
     * 创建方案设备关联
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createCheckPlanMachinery(@Valid MesDvCheckPlanMachinerySaveReqVO createReqVO);
 
    /**
     * 删除方案设备关联
     *
     * @param id 编号
     */
    void deleteCheckPlanMachinery(Long id);
 
    /**
     * 获得指定方案的设备列表
     *
     * @param planId 方案编号
     * @return 设备关联列表
     */
    List<MesDvCheckPlanMachineryDO> getCheckPlanMachineryListByPlanId(Long planId);
 
    /**
     * 获得指定方案的设备数量
     *
     * @param planId 方案编号
     * @return 设备数量
     */
    Long getCheckPlanMachineryCountByPlanId(Long planId);
 
    /**
     * 根据方案编号删除所有设备关联
     *
     * @param planId 方案编号
     */
    void deleteByPlanId(Long planId);
 
    /**
     * 获得指定设备关联的方案设备数量
     *
     * @param machineryId 设备编号
     * @return 方案设备数量
     */
    Long getCheckPlanMachineryCountByMachineryId(Long machineryId);
 
    /**
     * 获得指定设备关联的方案设备列表
     *
     * @param machineryId 设备编号
     * @return 方案设备列表
     */
    List<MesDvCheckPlanMachineryDO> getCheckPlanMachineryListByMachineryId(Long machineryId);
 
}