|
|
|
@ -103,7 +103,7 @@ public class QualityDeliverListener {
|
|
|
|
|
// 零担
|
|
|
|
|
LambdaQueryWrapper<QualityDeliverEntity> wrapper = Wrappers.<QualityDeliverEntity>lambdaQuery() |
|
|
|
|
.eq(QualityDeliverEntity::getOrderCode, qualityDeliverEntity.getOrderCode()) |
|
|
|
|
.eq(QualityDeliverEntity::getCostCategory, qualityDeliverEntity.getCostCategory()) |
|
|
|
|
.eq(QualityDeliverEntity::getCategory, qualityDeliverEntity.getCategory()) |
|
|
|
|
.lt(QualityDeliverEntity::getBizStatus, 110); |
|
|
|
|
if (StrUtil.isNotEmpty(qualityDeliverEntity.getPlanReservationCode())) { |
|
|
|
|
wrapper.eq(QualityDeliverEntity::getPlanReservationCode, qualityDeliverEntity.getPlanReservationCode()); |
|
|
|
@ -195,7 +195,8 @@ public class QualityDeliverListener {
|
|
|
|
|
if (ObjectUtil.equals(PackageTypeEnums.CMP.getCode(), conditions)) { |
|
|
|
|
// 订制品
|
|
|
|
|
// 构建订制品基础信息
|
|
|
|
|
buildCmpBasicInfo(qualityDeliverEntity); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = parcelListService.selectByOrderPackageCode(qualityDeliverEntity.getOrderPackageCode(), qualityDeliverEntity.getWarehouseId()); |
|
|
|
|
buildCmpBasicInfo(qualityDeliverEntity, parcelListEntity); |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.equals(PackageTypeEnums.INV.getCode(), conditions)) { |
|
|
|
|
// 库存品
|
|
|
|
@ -203,7 +204,9 @@ public class QualityDeliverListener {
|
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.equals(PackageTypeEnums.LTL.getCode(), conditions)) { |
|
|
|
|
// 零担
|
|
|
|
|
buildOrderInfo(qualityDeliverEntity, qualityDeliverEntity.getWarehouseId(), qualityDeliverEntity.getOrderCode()); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = parcelListService.findByOrderCodeAndCategory(qualityDeliverEntity.getOrderCode(), qualityDeliverEntity.getCategory(), qualityDeliverEntity.getWarehouseId()); |
|
|
|
|
buildCmpBasicInfo(qualityDeliverEntity, parcelListEntity); |
|
|
|
|
// buildOrderInfo(qualityDeliverEntity, qualityDeliverEntity.getWarehouseId(), qualityDeliverEntity.getOrderCode());
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -220,7 +223,8 @@ public class QualityDeliverListener {
|
|
|
|
|
String brandName = stockList.getBrandName(); |
|
|
|
|
String sourceType = stockList.getSourceType(); |
|
|
|
|
if (StrUtil.equals(sourceType, "1")) { |
|
|
|
|
buildCmpBasicInfo(qualityDeliverEntity); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = parcelListService.selectByOrderPackageCode(qualityDeliverEntity.getOrderPackageCode(), qualityDeliverEntity.getWarehouseId()); |
|
|
|
|
buildCmpBasicInfo(qualityDeliverEntity, parcelListEntity); |
|
|
|
|
} else { |
|
|
|
|
qualityDeliverEntity.setBrandName(brandName); |
|
|
|
|
qualityDeliverEntity.setMallCode(stockList.getMarketCode()); |
|
|
|
@ -245,8 +249,7 @@ public class QualityDeliverListener {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void buildCmpBasicInfo(QualityDeliverEntity qualityDeliverEntity) { |
|
|
|
|
DistributionParcelListEntity parcelListEntity = parcelListService.selectByOrderPackageCode(qualityDeliverEntity.getOrderPackageCode(), qualityDeliverEntity.getWarehouseId()); |
|
|
|
|
private void buildCmpBasicInfo(QualityDeliverEntity qualityDeliverEntity, DistributionParcelListEntity parcelListEntity) { |
|
|
|
|
if (ObjectUtil.isNotEmpty(parcelListEntity)) { |
|
|
|
|
// 品牌
|
|
|
|
|
qualityDeliverEntity.setBrandName(parcelListEntity.getBrandName()); |
|
|
|
@ -282,9 +285,9 @@ public class QualityDeliverListener {
|
|
|
|
|
qualityDeliverEntity.setEndWarehouseInTime(parcelListEntity.getWarehouseEntryTimeEnd()); |
|
|
|
|
// 构建运单相关信息
|
|
|
|
|
buildWaybillInfo(qualityDeliverEntity, waybillNumber); |
|
|
|
|
// 构建订单相关信息
|
|
|
|
|
buildOrderInfo(qualityDeliverEntity, qualityDeliverEntity.getWarehouseId(), parcelListEntity.getOrderCode()); |
|
|
|
|
} |
|
|
|
|
// 构建订单相关信息
|
|
|
|
|
buildOrderInfo(qualityDeliverEntity, qualityDeliverEntity.getWarehouseId(), qualityDeliverEntity.getOrderCode()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void buildOrderInfo(QualityDeliverEntity qualityDeliverEntity, Long warehouseId, String orderCode) { |
|
|
|
|