|
@@ -739,10 +739,7 @@ public class SyPreAssembledPackingListServiceImpl extends ServiceImpl<SyPreAssem
|
|
|
if(syPreAssembledPackingListItemMapper.selectOne(queryWrapper)!=null){
|
|
|
total=syPreAssembledPackingListItemMapper.selectOne(queryWrapper).getTotal();
|
|
|
}
|
|
|
- System.out.println("本次数量\t"+quantity);
|
|
|
- System.out.println("总数\t"+total);
|
|
|
total=total.add(quantity);
|
|
|
- System.out.println("总数减后\t"+total);
|
|
|
SyShippingDetailsItem item=syShippingDetailsItemMapper.selectById(syShippingDetailsItemId);
|
|
|
BigDecimal packSurplus=item.getShipmentQuantity();//获取出运明细发货数量
|
|
|
|
|
@@ -754,6 +751,11 @@ public class SyPreAssembledPackingListServiceImpl extends ServiceImpl<SyPreAssem
|
|
|
}
|
|
|
item.setPackSurplus(remainingQuantity);//出运明细剩余数量
|
|
|
item.setExcessQuantity(excessQuantity);//出运明细超发数量
|
|
|
+ if(item.getPackSurplus().doubleValue()==item.getShipmentQuantity().doubleValue()){//代表所有装箱单数量清空
|
|
|
+ item.setIsReference(0);
|
|
|
+ }else{
|
|
|
+ item.setIsReference(1);
|
|
|
+ }
|
|
|
syShippingDetailsItemMapper.updateById(item);
|
|
|
|
|
|
/*UpdateWrapper updateWrapper=new UpdateWrapper();
|