excel文件导入板编号补充组织编号、xml文件导入板编号补充组织编号/开料长宽厚取值修正;

This commit is contained in:
gaoqr
2026-06-17 11:52:48 +08:00
parent 044e3ee9a4
commit de1fc23784
2 changed files with 6 additions and 7 deletions
@@ -686,12 +686,11 @@ public class DefaultExcelOrderImportFactory {
.id(plateId)
.orderId(orderId)
.name(combination.getName())
.plateNo(combination.getPlateNo())
.type(OrderPlateTypeEnum.LAYERBOARD.getType())
.goodsId(goodsId)
.width(BigDecimal.valueOf(Double.parseDouble(width)))
.plateNo(((obtainingTime) + Long.toString(plateNo).substring(2)))
.plateNo(String.format("%05d", organId) + ((obtainingTime) + Long.toString(plateNo).substring(2)))
.height(BigDecimal.valueOf(Double.parseDouble(height)))
.width(BigDecimal.valueOf(Double.parseDouble(width)))
.thickness(BigDecimal.valueOf(Double.parseDouble(combination.getThickness())))
.splitWidth(BigDecimal.valueOf(NumberUtil.parseDouble(combination.getSplitWidth())))
.splitHeight(BigDecimal.valueOf(NumberUtil.parseDouble(combination.getSplitHeight())))
@@ -515,15 +515,15 @@ public class DefaultXmlOrderImportFactory {
.id(plateId)
.orderId(orderId)
.name(blockXmlVO.getName())
.plateNo((obtainingTime) + Long.toString(plateNo).substring(2))
.plateNo(String.format("%05d", organId) + (obtainingTime) + Long.toString(plateNo).substring(2))
.type(plateType)
.goodsId(goodsId)
.width(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getWidth())))
.height(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getLength())))
.thickness(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getThickness())))
.splitHeight(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getLength())))
.splitThickness(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getThickness())))
.splitWidth(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getWidth())))
.splitHeight(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getCuttingLength())))
.splitThickness(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getCuttingThickness())))
.splitWidth(BigDecimal.valueOf(Double.parseDouble(blockXmlVO.getCuttingWidth())))
.reservedEdgeLeft(BigDecimal.ZERO)
.reservedEdgeRight(BigDecimal.ZERO)
.reservedEdgeUp(BigDecimal.ZERO)