|
|
|
@ -351,7 +351,29 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (Func.isNotEmpty(packageLoadingMap.get(p.getId()))){ |
|
|
|
|
DistributionLoadscanEntity distributionLoadscanEntity = packageLoadingMap.get(p.getId()); |
|
|
|
|
detailDTO.setLoadingTime(distributionLoadscanEntity.getScanTime()); |
|
|
|
|
detailDTO.setSigningTime(distributionLoadscanEntity.getSigningTime()); |
|
|
|
|
detailDTO.setLoadingStatusName(OrderPackageLoadingStatusConstant.weizhuancghe.getName()); |
|
|
|
|
if (distributionLoadscanEntity.getSignforState().equals(LoadScanSigningStatusConstant.yiqianshou.getValue())){ |
|
|
|
|
//签收
|
|
|
|
|
detailDTO.setSigningTime(distributionLoadscanEntity.getSigningTime()); |
|
|
|
|
detailDTO.setSigningStatusName(OrderPackageStatusConstant.yiqianshou.getName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
detailDTO.setStockupStatusName(p.getOrderPackageStockupStatusName()); |
|
|
|
|
DistributionStockEntity distributionStockEntity = distributionStockMapper.selectOne(Wrappers.<DistributionStockEntity>query().lambda() |
|
|
|
|
.eq(DistributionStockEntity::getConditions, p.getConditions()) |
|
|
|
|
.eq(DistributionStockEntity::getStockArticle, p.getStockArticleId()) |
|
|
|
|
.eq(DistributionStockEntity::getParcelListId, p.getId()) |
|
|
|
|
); |
|
|
|
|
if (Func.isNotEmpty(distributionStockEntity)){ |
|
|
|
|
detailDTO.setStockupTime(distributionStockEntity.getCreateTime()); |
|
|
|
|
} |
|
|
|
|
detailDTO.setStockupStatusName(p.getOrderPackageStockupStatusName()); |
|
|
|
|
if (detailDTO.getConditions().equals(1)){ |
|
|
|
|
detailDTO.setConditionsName("订制品"); |
|
|
|
|
}else if (detailDTO.getConditions().equals(2)){ |
|
|
|
|
detailDTO.setConditionsName("库存品"); |
|
|
|
|
}else { |
|
|
|
|
detailDTO.setConditionsName("零担"); |
|
|
|
|
} |
|
|
|
|
detailDTOS.add(detailDTO); |
|
|
|
|
}); |
|
|
|
|