liyong
8 天以前 1ab2b329a40decba8ff7eefbeb158ff259aceb6d
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
package cn.iocoder.yudao.module.mes.api.item;
 
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.mes.api.item.dto.MesMdItemTypeRespDTO;
 
import java.util.Collection;
import java.util.List;
 
/**
 * MES 物料分类 API 接口
 *
 * 供其他模块(如 MDM)查询物料分类数据使用。
 *
 * @author 芋道源码
 */
public interface MesMdItemTypeApi {
 
    String PREFIX = "/rpc-api/mes/item-type";
 
    /**
     * 获取物料分类
     *
     * @param id 分类编号
     * @return 物料分类
     */
    CommonResult<MesMdItemTypeRespDTO> getItemType(Long id);
 
    /**
     * 获取物料分类列表
     *
     * @param ids 分类编号列表
     * @return 物料分类列表
     */
    CommonResult<List<MesMdItemTypeRespDTO>> getItemTypeList(Collection<Long> ids);
 
    /**
     * 根据编码获取物料分类
     *
     * @param code 分类编码
     * @return 物料分类
     */
    CommonResult<MesMdItemTypeRespDTO> getItemTypeByCode(String code);
 
}