|
|
@ -55,6 +55,8 @@ import org.springblade.common.constant.orderpackage.OrderPackageLoadingStatusCon |
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageReservationStatusConstant; |
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageReservationStatusConstant; |
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStatusConstant; |
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStatusConstant; |
|
|
|
import org.springblade.common.constant.printTemplate.PrintTemplateStatusConstant; |
|
|
|
import org.springblade.common.constant.printTemplate.PrintTemplateStatusConstant; |
|
|
|
|
|
|
|
import org.springblade.common.constant.reservation.ReservationOrderStatusConstant; |
|
|
|
|
|
|
|
import org.springblade.common.constant.reservation.ReservationPackageStatusConstant; |
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
import org.springblade.common.utils.FileUtil; |
|
|
|
import org.springblade.common.utils.FileUtil; |
|
|
@ -126,6 +128,7 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
private final DistributionParcelNumberMapper distributionParcelNumberMapper; |
|
|
|
private final DistributionParcelNumberMapper distributionParcelNumberMapper; |
|
|
|
private final IWarehouseTrayGoodsClient warehouseTrayGoodsClient; |
|
|
|
private final IWarehouseTrayGoodsClient warehouseTrayGoodsClient; |
|
|
|
private final IWarehouseUpdownGoodsClient warehouseUpdownGoodsClient; |
|
|
|
private final IWarehouseUpdownGoodsClient warehouseUpdownGoodsClient; |
|
|
|
|
|
|
|
private final IDistributionReservationPackageService distributionReservationPackageService; |
|
|
|
private final IUserClient userClient; |
|
|
|
private final IUserClient userClient; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -1588,6 +1591,42 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
return baseMapper.findUpDownStockupZeroByOrderCodeAndWarehouseId(orderCode,warehouseId); |
|
|
|
return baseMapper.findUpDownStockupZeroByOrderCodeAndWarehouseId(orderCode,warehouseId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param type |
|
|
|
|
|
|
|
* @param code |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public R getOrderDeliveryInfo(Integer type, String code) { |
|
|
|
|
|
|
|
switch (type){ |
|
|
|
|
|
|
|
//运单
|
|
|
|
|
|
|
|
case 1: |
|
|
|
|
|
|
|
List<DistributionStockArticleEntity> list = this.list(Wrappers.<DistributionStockArticleEntity>query().lambda().eq(DistributionStockArticleEntity::getOrderCode, code)); |
|
|
|
|
|
|
|
if (Func.isNotEmpty(list) && list.size()>0){ |
|
|
|
|
|
|
|
//查询配送数量
|
|
|
|
|
|
|
|
for (DistributionStockArticleEntity stockArticleEntity : list) { |
|
|
|
|
|
|
|
//查询配送数量
|
|
|
|
|
|
|
|
List<DistributionReservationPackageEntity> packageEntityList = distributionReservationPackageService.list(Wrappers.<DistributionReservationPackageEntity>query().lambda() |
|
|
|
|
|
|
|
.eq(DistributionReservationPackageEntity::getStockArticleId, stockArticleEntity.getId()) |
|
|
|
|
|
|
|
.ne(DistributionReservationPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue()) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if (Func.isNotEmpty(packageEntityList)){ |
|
|
|
|
|
|
|
long count = packageEntityList.stream().count(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//查询签收数量
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 2: |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
return R.fail("查无此信息"); |
|
|
|
|
|
|
|
//订单
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public DistributionStockArticleEntity findZeroByOrderCodeAndWarehouseId(String orderCode, Long warehouseId) { |
|
|
|
public DistributionStockArticleEntity findZeroByOrderCodeAndWarehouseId(String orderCode, Long warehouseId) { |
|
|
|