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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package cn.iocoder.yudao.module.mes.service.pd.processparam;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.mes.controller.admin.pd.processparam.vo.MesPdProcessParamPageReqVO;
import cn.iocoder.yudao.module.mes.controller.admin.pd.processparam.vo.MesPdProcessParamSaveReqVO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pd.processparam.MesPdProcessParamDO;
import jakarta.validation.Valid;
 
import java.util.Collection;
import java.util.List;
import java.util.Map;
 
/**
 * MES 工艺参数 Service 接口
 *
 * @author 芋道源码
 */
public interface MesPdProcessParamService {
 
    /**
     * 创建工艺参数
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createProcessParam(@Valid MesPdProcessParamSaveReqVO createReqVO);
 
    /**
     * 更新工艺参数
     *
     * @param updateReqVO 更新信息
     */
    void updateProcessParam(@Valid MesPdProcessParamSaveReqVO updateReqVO);
 
    /**
     * 删除工艺参数
     *
     * @param id 编号
     */
    void deleteProcessParam(Long id);
 
    /**
     * 校验工艺参数存在
     *
     * @param id 编号
     * @return 工艺参数
     */
    MesPdProcessParamDO validateProcessParamExists(Long id);
 
    /**
     * 获得工艺参数
     *
     * @param id 编号
     * @return 工艺参数
     */
    MesPdProcessParamDO getProcessParam(Long id);
 
    /**
     * 获得工艺参数分页
     *
     * @param pageReqVO 分页查询
     * @return 工艺参数分页
     */
    PageResult<MesPdProcessParamDO> getProcessParamPage(MesPdProcessParamPageReqVO pageReqVO);
 
    /**
     * 获得工艺参数列表
     *
     * @param ids 编号集合
     * @return 工艺参数列表
     */
    List<MesPdProcessParamDO> getProcessParamList(Collection<Long> ids);
 
    /**
     * 获得工艺参数 Map
     *
     * @param ids 编号集合
     * @return 工艺参数 Map
     */
    default Map<Long, MesPdProcessParamDO> getProcessParamMap(Collection<Long> ids) {
        List<MesPdProcessParamDO> list = getProcessParamList(ids);
        return cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertMap(list, MesPdProcessParamDO::getId);
    }
 
}