|
|
|
@ -18,6 +18,7 @@ package com.logpm.distribution.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
@ -25,6 +26,7 @@ import com.logpm.basicdata.entity.BasicdataWarehouseEntity;
|
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataCodeClient; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
|
|
import com.logpm.distribution.dto.app.StockupDTO; |
|
|
|
|
import com.logpm.distribution.entity.DistributionParcelDetailsEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionReservationEntity; |
|
|
|
|
import com.logpm.distribution.entity.DistributionStockupEntity; |
|
|
|
|
import com.logpm.distribution.excel.DistributionStockupExcel; |
|
|
|
@ -80,6 +82,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
@Autowired |
|
|
|
|
private IBasicdataWarehouseClient basicdataWarehouseClient; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IDistributionParcelDetailsService distributionParcelDetailsService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IPage<DistributionStockupVO> selectDistributionStockupPage(IPage<DistributionStockupVO> page, DistributionStockupVO distributionStockup) { |
|
|
|
@ -343,10 +348,16 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(!Objects.isNull(vo.getScanId())){ |
|
|
|
|
scanNum++; |
|
|
|
|
} |
|
|
|
|
String orderPackageCode = vo.getPackageBarCode(); |
|
|
|
|
QueryWrapper<DistributionParcelDetailsEntity> qw = new QueryWrapper<>(); |
|
|
|
|
qw.eq("package_code",orderPackageCode); |
|
|
|
|
List<DistributionParcelDetailsEntity> parcelDetailsEntityList = distributionParcelDetailsService.list(qw); |
|
|
|
|
vo.setDetailsEntities(parcelDetailsEntityList); |
|
|
|
|
} |
|
|
|
|
DistributionStockupOrderInfoVO vo = new DistributionStockupOrderInfoVO(); |
|
|
|
|
vo.setReservationId(reservationId); |
|
|
|
|
vo.setCustomer(reservationEntity.getConsignee()); |
|
|
|
|
vo.setAddress(reservationEntity.getDeliveryAddress()); |
|
|
|
|
vo.setPlanNum(size); |
|
|
|
|
vo.setScanNum(scanNum); |
|
|
|
|
vo.setStockupArea(reservationEntity.getGoodsAreaName()); |
|
|
|
|