xiaoyi
2 天以前 4bec63c802692a402039f0d99eae068d26d63c55
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
package cn.iocoder.yudao.module.mdm.api.item;
 
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.mdm.api.item.dto.MdmItemSyncReqDTO;
 
/**
 * MDM 物料同步 API 接口
 *
 * 供 MES 模块同步物料主数据到 MDM 使用
 *
 * @author 超级管理员
 */
public interface MdmItemSyncApi {
 
    String PREFIX = "/rpc-api/mdm/item-sync";
 
    /**
     * 同步物料到 MDM(按 code 匹配,存在则更新,不存在则创建)
     *
     * @param syncReqDTO 同步信息
     * @return MDM 物料编号
     */
    CommonResult<Long> syncItemToMdm(MdmItemSyncReqDTO syncReqDTO);
 
    /** 仅同步已有同编码物料的颜色,不创建物料或覆盖其他主数据。 */
    CommonResult<Boolean> syncExistingItemColor(String code, String color);
 
}