|
|
|
@ -201,6 +201,9 @@ public class ProductionReturnServiceImpl implements ProductionReturnService { |
|
|
|
newSelectMaterials.add(material); |
|
|
|
}else{ |
|
|
|
HandlingUnit byId = handlingUnitService.getById(material.getLabelCode()); |
|
|
|
if(byId == null){ |
|
|
|
throw new Exception("数据库不存在确认退料标签"); |
|
|
|
} |
|
|
|
material.setHeight(material.getHeight().add(byId.getHeight() == null ?BigDecimal.ZERO:byId.getHeight())); |
|
|
|
newSelectMaterials.add(material); |
|
|
|
} |
|
|
|
@ -403,6 +406,9 @@ public class ProductionReturnServiceImpl implements ProductionReturnService { |
|
|
|
newSelectMaterials.add(material); |
|
|
|
}else{ |
|
|
|
HandlingUnit byId = handlingUnitService.getById(material.getLabelCode()); |
|
|
|
if(byId == null){ |
|
|
|
throw new Exception("数据库不存在确认退料标签"); |
|
|
|
} |
|
|
|
material.setHeight(material.getHeight().add(byId.getHeight() == null ?BigDecimal.ZERO:byId.getHeight())); |
|
|
|
newSelectMaterials.add(material); |
|
|
|
} |
|
|
|
@ -707,7 +713,7 @@ public class ProductionReturnServiceImpl implements ProductionReturnService { |
|
|
|
labelInfo.setBatchNo(vo.getBatchNo()); |
|
|
|
labelInfo.setLocationId(vo.getLocationId()); |
|
|
|
labelInfo.setWarehouseId(vo.getOrderRef4()); |
|
|
|
labelInfo.setAvailableQty(BigDecimal.ZERO); |
|
|
|
labelInfo.setQuantity(BigDecimal.ZERO); |
|
|
|
labelInfo.setWdrNo(vo.getOrderRef3()); |
|
|
|
labelInfo.setEngChgLevel(vo.getEngChgLevel()); |
|
|
|
labelInfo.setHeight(BigDecimal.ZERO); |
|
|
|
|