|
@@ -352,6 +352,7 @@ public class IotDeviceMaterialServiceImpl implements IotDeviceMaterialService {
|
|
|
if (costCenterPair.containsKey(tempLockStock.getCostCenterId())) {
|
|
|
material.setCostCenter(costCenterPair.get(tempLockStock.getCostCenterId()));
|
|
|
}
|
|
|
+ material.setMaterialSource("本地库存");
|
|
|
} else if (sapStockPair.containsKey(material.getCode())) {
|
|
|
// sap库存物料
|
|
|
IotSapStockDO tempSapStock = sapStockPair.get(material.getCode());
|
|
@@ -366,6 +367,7 @@ public class IotDeviceMaterialServiceImpl implements IotDeviceMaterialService {
|
|
|
if (storageLocationPair.containsKey(tempSapStock.getStorageLocationId())) {
|
|
|
material.setStorageLocation(storageLocationPair.get(tempSapStock.getStorageLocationId()));
|
|
|
}
|
|
|
+ material.setMaterialSource("sap库存");
|
|
|
} else if (sapMasterDataPair.containsKey(material.getCode())) {
|
|
|
// sap主数据
|
|
|
IotMaterialDO tempMaterial = sapMasterDataPair.get(material.getCode());
|
|
@@ -378,6 +380,7 @@ public class IotDeviceMaterialServiceImpl implements IotDeviceMaterialService {
|
|
|
material.setFactory(StrUtil.EMPTY);
|
|
|
material.setStorageLocation(StrUtil.EMPTY);
|
|
|
material.setCostCenter(StrUtil.EMPTY);
|
|
|
+ material.setMaterialSource("SAP主数据");
|
|
|
}
|
|
|
});
|
|
|
deviceMaterials.forEach(bomMaterial -> {
|