Browse Source

2025-05-27

副产品成本维护0为什么不能传到IFS中,IFS中允许是0
master
fengyuan_yang 8 months ago
parent
commit
90c74e7767
  1. 2
      src/main/java/com/spring/modules/part/service/impl/BomManagementServiceImpl.java
  2. 2
      src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java

2
src/main/java/com/spring/modules/part/service/impl/BomManagementServiceImpl.java

@ -726,6 +726,7 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B
bomManufStructCostDistribEntity.setComponentLineItemNo(componentVo.getLineItemNo());
bomManufStructCostDistribEntity.setComponentPartNo(componentVo.getComponentPart());
bomManufStructCostDistribEntity.setByProdPartNo(data.getComponentPart());
bomManufStructCostDistribEntity.setItemCostDistribution(0D);
bomManufStructCostDistribEntities.add(bomManufStructCostDistribEntity);
}
} else {
@ -740,6 +741,7 @@ public class BomManagementServiceImpl extends ServiceImpl<BomManagementMapper, B
bomManufStructCostDistribEntity.setComponentLineItemNo(data.getLineItemNo());
bomManufStructCostDistribEntity.setComponentPartNo(data.getComponentPart());
bomManufStructCostDistribEntity.setByProdPartNo(componentVo.getComponentPart());
bomManufStructCostDistribEntity.setItemCostDistribution(0D);
bomManufStructCostDistribEntities.add(bomManufStructCostDistribEntity);
}
}

2
src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java

@ -2952,7 +2952,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe
bomIfsManufStructCostDistrib.setAlternativeNo(bomManufStructCostDistribVo.getAlternativeNo());
bomIfsManufStructCostDistrib.setByProdLineItemNo(bomManufStructCostDistribVo.getByProdLineItemNo().toString());
bomIfsManufStructCostDistrib.setComponentLineItemNo(bomManufStructCostDistribVo.getComponentLineItemNo().toString());
bomIfsManufStructCostDistrib.setItemCostDistribution(bomManufStructCostDistribVo.getItemCostDistribution() == null ? "" : bomManufStructCostDistribVo.getItemCostDistribution().toString());
bomIfsManufStructCostDistrib.setItemCostDistribution(bomManufStructCostDistribVo.getItemCostDistribution().toString());
bomIfsManufStructCostDistrib.setComponentPartNo(bomManufStructCostDistribVo.getComponentPartNo());
bomIfsManufStructCostDistrib.setByProductPartNo(bomManufStructCostDistribVo.getByProdPartNo());
bomIfsManufStructCostDistribs.add(bomIfsManufStructCostDistrib);

Loading…
Cancel
Save