|
|
@ -176,7 +176,8 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
partIfsCatalog.setPartNo(data.getPartNo()); // 物料编码 |
|
|
partIfsCatalog.setPartNo(data.getPartNo()); // 物料编码 |
|
|
partIfsCatalog.setPartDesc(data.getPartDesc()); // 物料名称 |
|
|
partIfsCatalog.setPartDesc(data.getPartDesc()); // 物料名称 |
|
|
// 2025-04-24 PLM pcs. 对应 IFS PCS |
|
|
// 2025-04-24 PLM pcs. 对应 IFS PCS |
|
|
partIfsCatalog.setUnitCode(data.getUmId() == null ? "" : "pcs.".equals(data.getUmId()) ? "PCS" : "pcs"); // 计量单位 |
|
|
|
|
|
|
|
|
// 2025-05-28 PLM PCS. 对应 IFS PCS |
|
|
|
|
|
partIfsCatalog.setUnitCode(data.getUmId() == null ? "" : "PCS.".equals(data.getUmId()) ? "PCS" : "pcs"); // 计量单位 |
|
|
partIfsCatalog.setPartMainGroup(data.getPartMainGroup() == null ? "" : data.getPartMainGroup()); // 物料分组 |
|
|
partIfsCatalog.setPartMainGroup(data.getPartMainGroup() == null ? "" : data.getPartMainGroup()); // 物料分组 |
|
|
partIfsCatalog.setWeightNet(data.getWeightNet() == null ? "" : data.getWeightNet().toString()); // 净重 |
|
|
partIfsCatalog.setWeightNet(data.getWeightNet() == null ? "" : data.getWeightNet().toString()); // 净重 |
|
|
partIfsCatalog.setUomForWeightNet(data.getUomForWeightNet() == null ? "" : data.getUomForWeightNet()); // 净重单位 |
|
|
partIfsCatalog.setUomForWeightNet(data.getUomForWeightNet() == null ? "" : data.getUomForWeightNet()); // 净重单位 |
|
|
@ -211,7 +212,8 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
partIfsInventory.setUomForVolumeNet(data.getUomForVolumeNet() == null ? "" : data.getUomForVolumeNet()); // 体积单位 |
|
|
partIfsInventory.setUomForVolumeNet(data.getUomForVolumeNet() == null ? "" : data.getUomForVolumeNet()); // 体积单位 |
|
|
partIfsInventory.setPlannerBuyer(data.getProductGroupId4() == null ? "" : data.getProductGroupId4()); // 计划员 |
|
|
partIfsInventory.setPlannerBuyer(data.getProductGroupId4() == null ? "" : data.getProductGroupId4()); // 计划员 |
|
|
// 2025-04-24 PLM pcs. 对应 IFS PCS |
|
|
// 2025-04-24 PLM pcs. 对应 IFS PCS |
|
|
partIfsInventory.setUnitMeas(data.getUmId() == null ? "" : "pcs.".equals(data.getUmId()) ? "PCS" : "pcs"); // 计量单位 |
|
|
|
|
|
|
|
|
// 2025-05-28 PLM PCS. 对应 IFS PCS |
|
|
|
|
|
partIfsInventory.setUnitMeas(data.getUmId() == null ? "" : "PCS.".equals(data.getUmId()) ? "PCS" : "pcs"); // 计量单位 |
|
|
partIfsInventory.setPrimeCommodity(data.getProductGroupId1() == null ? "" : data.getProductGroupId1()); // 商品组1 |
|
|
partIfsInventory.setPrimeCommodity(data.getProductGroupId1() == null ? "" : data.getProductGroupId1()); // 商品组1 |
|
|
partIfsInventory.setSecondCommodity(data.getProductGroupId2() == null ? "" : data.getProductGroupId2()); // 商品组2 |
|
|
partIfsInventory.setSecondCommodity(data.getProductGroupId2() == null ? "" : data.getProductGroupId2()); // 商品组2 |
|
|
partIfsInventory.setAssetClass(data.getAssetClass() == null ? "" : data.getAssetClass()); // 资产等级 |
|
|
partIfsInventory.setAssetClass(data.getAssetClass() == null ? "" : data.getAssetClass()); // 资产等级 |
|
|
@ -3530,7 +3532,8 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
// 数据批量保存到缓存的数据表 |
|
|
// 数据批量保存到缓存的数据表 |
|
|
for (PartIfsInventory inventoryPart : ifsInventoryParts) { |
|
|
for (PartIfsInventory inventoryPart : ifsInventoryParts) { |
|
|
if ("PCS".equals(inventoryPart.getUnitMeas())) { |
|
|
if ("PCS".equals(inventoryPart.getUnitMeas())) { |
|
|
inventoryPart.setUnitMeas("pcs."); |
|
|
|
|
|
|
|
|
// 2025-05-28 PLM PCS. 对应 IFS PCS |
|
|
|
|
|
inventoryPart.setUnitMeas("PCS."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
partCatalogDao.batchInsertInventoryParts(ifsInventoryParts); |
|
|
partCatalogDao.batchInsertInventoryParts(ifsInventoryParts); |
|
|
|