feat(wms): 新增调拨单明细物料匹配或创建功能

- 在IWmsTransferOrderItemService接口中添加matchOrCreateMaterial方法
- 在WmsTransferOrderItemController中添加/matchOrCreate接口端点
- 实现matchOrCreateMaterial业务逻辑,支持根据itemId和itemType匹配或新增物料
- 添加从原料到产品的转换匹配逻辑
- 添加从产品到原料的转换匹配逻辑
- 集成WmsRawMaterialMapper和WmsProductMapper数据访问层
- 实现基于名称、规格、制造商等字段的精确匹配机制
- 支持itemType参数区分原料(material)和成品(product)处理流程
This commit is contained in:
2026-03-27 16:32:32 +08:00
parent 0d3bde95f3
commit c294149274
3 changed files with 105 additions and 0 deletions

View File

@@ -46,4 +46,10 @@ public interface IWmsTransferOrderItemService {
* 校验并批量删除调拨单明细信息
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
/**
* 根据itemId和itemType匹配或新增物料
* itemType: "raw_material"-原料, "product"-成品
*/
Long matchOrCreateMaterial(Long itemId, String itemType);
}