|
|
|
@ -56,6 +56,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springblade.common.constant.CodeDesEnum; |
|
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
|
import org.springblade.common.constant.common.IsOrNoConstant; |
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStatusConstant; |
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageStockupStatusConstant; |
|
|
|
|
import org.springblade.common.constant.pda.PdaAudioLingoStatus; |
|
|
|
|
import org.springblade.common.constant.stocklist.StockLockingStatusConstant; |
|
|
|
@ -3137,6 +3138,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionStockupPackageListDetailExcel> exportStockUptDetail(List<Long> list) { |
|
|
|
|
List<DistributionStockupPackageListDetailExcel> detail = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DistributionStockupPackageListDetailExcel> stockupPackageListDetailExcels = baseMapper.exportStockUptOrderDetail(list); |
|
|
|
|
if (Func.isNotEmpty(stockupPackageListDetailExcels)){ |
|
|
|
|
for (DistributionStockupPackageListDetailExcel stockupPackageListDetailExcel : stockupPackageListDetailExcels) { |
|
|
|
@ -3162,14 +3166,51 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
detail.addAll(stockupPackageListDetailExcels); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//库存品
|
|
|
|
|
// List<DistributionStockupPackageListDetailExcel> stockupInventoryListDetailExcels = baseMapper.exportStockUptInventoryDetail(list);
|
|
|
|
|
List<DistributionStockupPackageListDetailExcel> stockupInventoryListDetailExcels = baseMapper.exportStockUptInventoryDetail(list); |
|
|
|
|
if (Func.isNotEmpty(stockupInventoryListDetailExcels)){ |
|
|
|
|
for (DistributionStockupPackageListDetailExcel stockupInventoryListDetailExcel : stockupInventoryListDetailExcels) { |
|
|
|
|
//查询库存品托盘信息
|
|
|
|
|
DistributionStockListEntity distributionStockLisEntity = distributionStockListMapper.selectById(stockupInventoryListDetailExcel.getId()); |
|
|
|
|
if (distributionStockLisEntity.getSourceType().equals("1")){ |
|
|
|
|
//转
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionParcelListService.list(Wrappers.<DistributionParcelListEntity>query().lambda() |
|
|
|
|
.eq(DistributionParcelListEntity::getOrderCode, distributionStockLisEntity.getIncomingBatch()) |
|
|
|
|
.eq(DistributionParcelListEntity::getOrderPackageStockupStatus, OrderPackageStockupStatusConstant.daibeihuo.getValue()) |
|
|
|
|
.eq(DistributionParcelListEntity::getOrderPackageStatus, OrderPackageStatusConstant.yiruku.getValue()) |
|
|
|
|
); |
|
|
|
|
if (Func.isNotEmpty(parcelListEntities)){ |
|
|
|
|
String orderpackageCode = parcelListEntities.stream().map(DistributionParcelListEntity::getOrderPackageCode).collect(Collectors.joining(",")); |
|
|
|
|
//订制品订单 查询托盘和库位
|
|
|
|
|
String trayName = warehouseTrayGoodsClient.getTrayNameByOrderPackageCode(orderpackageCode,3); |
|
|
|
|
if (Func.isNotBlank(trayName)){ |
|
|
|
|
stockupInventoryListDetailExcel.setTrayNames(trayName); |
|
|
|
|
} |
|
|
|
|
String allocationName = warehouseUpdownGoodsClient.getAllocationNameByOrderPackageCode(orderpackageCode,3); |
|
|
|
|
if (Func.isNotBlank(allocationName)){ |
|
|
|
|
stockupInventoryListDetailExcel.setAllocationNames(allocationName); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
|
//导
|
|
|
|
|
String trayName = warehouseTrayGoodsClient.getTrayInfoByInventory(distributionStockLisEntity.getMarketId(),distributionStockLisEntity.getCargoNumber()); |
|
|
|
|
if (Func.isNotBlank(trayName)){ |
|
|
|
|
stockupInventoryListDetailExcel.setTrayNames(trayName); |
|
|
|
|
} |
|
|
|
|
String allocationName = warehouseUpdownGoodsClient.getAllocationNameByInventory(distributionStockLisEntity.getMarketId(),distributionStockLisEntity.getCargoNumber()); |
|
|
|
|
if (Func.isNotBlank(allocationName)){ |
|
|
|
|
stockupInventoryListDetailExcel.setAllocationNames(allocationName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return stockupPackageListDetailExcels; |
|
|
|
|
detail.addAll(stockupInventoryListDetailExcels); |
|
|
|
|
} |
|
|
|
|
return detail; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|