|
|
@ -173,7 +173,8 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
partIfsCatalog.setContract(""); // site |
|
|
partIfsCatalog.setContract(""); // site |
|
|
partIfsCatalog.setPartNo(data.getPartNo()); // 物料编码 |
|
|
partIfsCatalog.setPartNo(data.getPartNo()); // 物料编码 |
|
|
partIfsCatalog.setPartDesc(data.getPartDesc()); // 物料名称 |
|
|
partIfsCatalog.setPartDesc(data.getPartDesc()); // 物料名称 |
|
|
partIfsCatalog.setUnitCode(data.getUmId() == null ? "" : data.getUmId()); // 计量单位 |
|
|
|
|
|
|
|
|
// 2025-04-24 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()); // 净重单位 |
|
|
@ -207,7 +208,8 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
partIfsInventory.setVolumeNet(data.getVolumeNet() == null ? "" : data.getVolumeNet().toString()); // 体积 |
|
|
partIfsInventory.setVolumeNet(data.getVolumeNet() == null ? "" : data.getVolumeNet().toString()); // 体积 |
|
|
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()); // 计划员 |
|
|
partIfsInventory.setUnitMeas(data.getUmId() == null ? "" : data.getUmId()); // 计量单位 |
|
|
|
|
|
|
|
|
// 2025-04-24 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()); // 资产等级 |
|
|
@ -633,6 +635,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
int a = noData.getTransNo().length() + noData.getLength(); |
|
|
int a = noData.getTransNo().length() + noData.getLength(); |
|
|
data.setBaseNo(data.getPartNo().substring(0, a)); |
|
|
data.setBaseNo(data.getPartNo().substring(0, a)); |
|
|
data.setRevNo(data.getPartNo().substring(a)); |
|
|
data.setRevNo(data.getPartNo().substring(a)); |
|
|
|
|
|
data.setVirtualPartNo(data.getPartNo()); |
|
|
partInformationMapper.saveProjectPart(data); |
|
|
partInformationMapper.saveProjectPart(data); |
|
|
// 新增客户料号信息 |
|
|
// 新增客户料号信息 |
|
|
partInformationMapper.saveCustomerPartInfo(data); |
|
|
partInformationMapper.saveCustomerPartInfo(data); |
|
|
@ -2421,6 +2424,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
a.setCustomerNo(data.getCustomerNo()); |
|
|
a.setCustomerNo(data.getCustomerNo()); |
|
|
a.setCreateBy(data.getCreateBy()); |
|
|
a.setCreateBy(data.getCreateBy()); |
|
|
a.setPartNoSource(data.getPartNoSource()); |
|
|
a.setPartNoSource(data.getPartNoSource()); |
|
|
|
|
|
a.setVirtualPartNo(a.getFinalPartNo() == null ? a.getPlmPartNo() : a.getFinalPartNo()); |
|
|
return a; |
|
|
return a; |
|
|
}).collect(Collectors.toList()); |
|
|
}).collect(Collectors.toList()); |
|
|
partInformationMapper.addProjectPart(partList); |
|
|
partInformationMapper.addProjectPart(partList); |
|
|
@ -3439,6 +3443,11 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
// 清空缓存表 |
|
|
// 清空缓存表 |
|
|
partCatalogDao.truncateInventoryPartCacheTable(); |
|
|
partCatalogDao.truncateInventoryPartCacheTable(); |
|
|
// 数据批量保存到缓存的数据表 |
|
|
// 数据批量保存到缓存的数据表 |
|
|
|
|
|
for (PartIfsInventory inventoryPart : ifsInventoryParts) { |
|
|
|
|
|
if ("PCS".equals(inventoryPart.getUnitMeas())) { |
|
|
|
|
|
inventoryPart.setUnitMeas("pcs."); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
partCatalogDao.batchInsertInventoryParts(ifsInventoryParts); |
|
|
partCatalogDao.batchInsertInventoryParts(ifsInventoryParts); |
|
|
// 调用存储过程 刷新库存件的数据 |
|
|
// 调用存储过程 刷新库存件的数据 |
|
|
this.refreshPlmInventoryParts(); |
|
|
this.refreshPlmInventoryParts(); |
|
|
|