创建排单调用组件创建排单报文结构修改

This commit is contained in:
gaoqr
2026-08-04 11:42:26 +08:00
parent bc899eb693
commit ee1010842b
8 changed files with 196 additions and 16 deletions
@@ -646,9 +646,9 @@ public class ProducingOrderImportFactory {
// 缓存goodCode和orderGoodsId的对应关系
materialMap.put(plateGoodsGoodsId, goodsDO);
}
if (StringUtils.isNotEmpty(materialReqVO.getSourceMaterialId())) {
if (StringUtils.isNotEmpty(plateGoodsGoodsId)) {
externalMaterialMap.putIfAbsent(
materialReqVO.getSourceMaterialId(),
plateGoodsGoodsId,
toExternalBlockMaterial(materialReqVO));
}
}
@@ -32,7 +32,9 @@ public class ProducingOrderExtraSyncRequest {
private Map<String, String> parts = new LinkedHashMap<>();
/**
* 对方 materials.id 到 iMES 板材库/配件物料对象的映射,仅包含 type=1/2/3。
* iMES 物料标识到板材库/配件物料对象的映射。板材(type=1)使用
* {@code order_goods.goods_id} 作为 key,配件和封边条(type=2/3)使用对方
* {@code materials.id} 作为 key。
*/
@Builder.Default
private Map<String, ProducingExternalMaterial> externalMaterialMapping =
@@ -29,7 +29,9 @@ public class ProducingOrderItemSerialNoUpdateRequest {
private Map<String, String> parts = new LinkedHashMap<>();
/**
* 对方 materials.id 到 iMES 板材库/配件物料对象的映射。
* iMES 物料标识到板材库/配件物料对象的映射。板材(type=1)使用
* {@code order_goods.goods_id} 作为 key,配件和封边条(type=2/3)使用对方
* {@code materials.id} 作为 key。
*/
private Map<String, ProducingExternalMaterial> externalMaterialMapping =
new LinkedHashMap<>();