|
|
|
@ -50,6 +50,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
|
import org.springblade.common.constant.common.IsOrNoConstant; |
|
|
|
|
import org.springblade.common.constant.order.OrderStatusConstant; |
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStatusConstant; |
|
|
|
|
import org.springblade.common.constant.printTemplate.PrintTemplateStatusConstant; |
|
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
@ -847,9 +848,13 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
IPage<DistributionStockArticleEntity> distributionStockArticleEntityIPage = baseMapper.pageListOwe(page, stockArticleEntity); |
|
|
|
|
distributionStockArticleEntityIPage.getRecords().stream().forEach(i ->{ |
|
|
|
|
DistributionStockArticleEntity distributionStockArticleEntity = baseMapper.getStockArticleQueryQuantity(i.getId()); |
|
|
|
|
/* DistributionStockArticleEntity distributionStockArticleEntity = baseMapper.getStockArticleQueryQuantity(i.getId()); |
|
|
|
|
i.setDeliveryQuantity(distributionStockArticleEntity.getDeliveryQuantity()); |
|
|
|
|
i.setSigninQuantity(distributionStockArticleEntity.getSigninQuantity()); |
|
|
|
|
List<DistributionParcelListEntity> list = distributionParcelListService.list(Wrappers.<DistributionParcelListEntity>query().lambda() |
|
|
|
|
.eq(DistributionParcelListEntity::getStockArticleId, i.getId()) |
|
|
|
|
.eq(DistributionParcelListEntity::getOrderPackageStatus, OrderPackageStatusConstant.yiqianshou.getValue()) |
|
|
|
|
); |
|
|
|
|
i.setSigninQuantity(distributionStockArticleEntity.getSigninQuantity() + list.size() );*/ |
|
|
|
|
if(i.getIsZero().equals("1")){ |
|
|
|
|
//查询托盘
|
|
|
|
|
WarehouseTrayGoodsEntity warehouseTrayGoods = new WarehouseTrayGoodsEntity(); |
|
|
|
|