package cn.iocoder.yudao.module.mes.api.item;
|
|
import cn.iocoder.yudao.module.mes.api.item.dto.MesMdItemSyncReqDTO;
|
|
/**
|
* MES 物料产品 API 接口
|
*
|
* 供其他模块(如 MDM)同步物料主数据到 MES 使用。
|
* 单位、分类均按 code 传递,由 MES 侧解析为对应 id。
|
*
|
* @author 芋道源码
|
*/
|
public interface MesMdItemApi {
|
|
/**
|
* 创建 MES 物料产品(同步用)
|
*
|
* @param syncReqDTO 同步信息(单位/分类传 code)
|
* @return MES 物料编号
|
*/
|
Long createItem(MesMdItemSyncReqDTO syncReqDTO);
|
|
/**
|
* 更新 MES 物料产品(同步用)
|
*
|
* 按 code 匹配:存在则更新,不存在则创建(upsert)。
|
*
|
* @param syncReqDTO 同步信息
|
*/
|
void updateItem(MesMdItemSyncReqDTO syncReqDTO);
|
|
}
|