拣货完成无论拣货多少都为拣货完成;
This commit is contained in:
+8
@@ -206,10 +206,18 @@ public class HandoverTaskOrderDomainService {
|
||||
BigDecimal newFreezeQuantity = oldFreezeQuantity.subtract(checkQuantity);
|
||||
|
||||
|
||||
|
||||
BigDecimal oldArea = materialInventoryPO.getArea();
|
||||
BigDecimal oldVolume = materialInventoryPO.getVolume();
|
||||
BigDecimal oldGrossWeight = materialInventoryPO.getGrossWeight();
|
||||
BigDecimal oldNetWeight = materialInventoryPO.getNetWeight();
|
||||
|
||||
// 初始化旧数据,避免空指针
|
||||
oldArea = oldArea != null ? oldArea : BigDecimal.ZERO;
|
||||
oldVolume = oldVolume != null ? oldVolume : BigDecimal.ZERO;
|
||||
oldGrossWeight = oldGrossWeight != null ? oldGrossWeight : BigDecimal.ZERO;
|
||||
oldNetWeight = oldNetWeight != null ? oldNetWeight : BigDecimal.ZERO;
|
||||
|
||||
BigDecimal newArea = oldArea.subtract(checkArea);
|
||||
BigDecimal newVolume = oldVolume.subtract(checkVolume);
|
||||
BigDecimal newGrossWeight = oldGrossWeight.subtract(checkGrossWeight);
|
||||
|
||||
Reference in New Issue
Block a user