Commit fbd9c404 authored by Tong Li's avatar Tong Li

bom

parent 923683e8
...@@ -170,6 +170,10 @@ public class MaterialRequirementService { ...@@ -170,6 +170,10 @@ public class MaterialRequirementService {
useMaterials.add(material); useMaterials.add(material);
useMaterialids.add(materialId); useMaterialids.add(materialId);
} }
if(component.getSpentQty()==null)
{
throw new RuntimeException("配套数据有问题,需求数量为空,请检查数据,"+component.getMaterialNumber());
}
double allneeded = component.getSpentQty().doubleValue()/ component.getMainQty().doubleValue() * operation.Quantity; double allneeded = component.getSpentQty().doubleValue()/ component.getMainQty().doubleValue() * operation.Quantity;
OrderMaterialRequirement orderMaterialRequirement = CreateMaterialRequirement(material, orderId, "", operation, OrderMaterialRequirement orderMaterialRequirement = CreateMaterialRequirement(material, orderId, "", operation,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment