|
|
@ -495,12 +495,19 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<IndexDeliveryDataVO> deliveryData(IndexDTO indexDTO) { |
|
|
|
public Map<String,List<IndexDeliveryDataVO>> deliveryData(IndexDTO indexDTO) { |
|
|
|
|
|
|
|
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
String key = CacheNames.tenantKey(user.getTenantId(), user.getUserId() + "", "deliveryData:" + indexDTO.toString()); |
|
|
|
String deliveryKey = CacheNames.tenantKey(user.getTenantId(), user.getUserId() + "", "deliveryData:" + indexDTO.toString()); |
|
|
|
// List<IndexDeliveryDataVO> indexDeliveryDataVOList = bladeRedis.get(key);
|
|
|
|
String billKey = CacheNames.tenantKey(user.getTenantId(), user.getUserId() + "", "deliveryData:" + indexDTO.toString()); |
|
|
|
|
|
|
|
String tripartiteDeliveryKey = CacheNames.tenantKey(user.getTenantId(), user.getUserId() + "", "deliveryData:" + indexDTO.toString()); |
|
|
|
|
|
|
|
// List<IndexDeliveryDataVO> indexDeliveryDataVOList = bladeRedis.get(deliveryKey);
|
|
|
|
|
|
|
|
// List<IndexDeliveryDataVO> indexBillDataVOList = bladeRedis.get(billKey);
|
|
|
|
|
|
|
|
// List<IndexDeliveryDataVO> indexBillDataVOList = bladeRedis.get(tripartiteDeliveryKey);
|
|
|
|
List<IndexDeliveryDataVO> indexDeliveryDataVOList= null; |
|
|
|
List<IndexDeliveryDataVO> indexDeliveryDataVOList= null; |
|
|
|
|
|
|
|
List<IndexDeliveryDataVO> indexBillDataVOList= null; |
|
|
|
|
|
|
|
List<IndexDeliveryDataVO> indexTripartiteDeliveryDataVOList= null; |
|
|
|
|
|
|
|
Map<String,List<IndexDeliveryDataVO>> map = new HashMap<>(); |
|
|
|
if (Objects.isNull(indexDeliveryDataVOList)) { |
|
|
|
if (Objects.isNull(indexDeliveryDataVOList)) { |
|
|
|
//查询商市配的信息
|
|
|
|
//查询商市配的信息
|
|
|
|
indexDeliveryDataVOList = new ArrayList<>(); |
|
|
|
indexDeliveryDataVOList = new ArrayList<>(); |
|
|
@ -521,8 +528,11 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { |
|
|
|
// indexDeliveryDataVO.setTotalRoadNum(totalRoadNum);
|
|
|
|
// indexDeliveryDataVO.setTotalRoadNum(totalRoadNum);
|
|
|
|
} |
|
|
|
} |
|
|
|
indexDeliveryDataVOList.addAll(indexDeliveryDataVOS); |
|
|
|
indexDeliveryDataVOList.addAll(indexDeliveryDataVOS); |
|
|
|
|
|
|
|
bladeRedis.setEx(deliveryKey, indexDeliveryDataVOList, 3600L); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
map.put("data1",indexDeliveryDataVOList); |
|
|
|
|
|
|
|
if (indexBillDataVOList.isEmpty()){ |
|
|
|
|
|
|
|
indexBillDataVOList = new ArrayList<>(); |
|
|
|
//查询自提信息
|
|
|
|
//查询自提信息
|
|
|
|
List<IndexDeliveryDataVO> indexDeliveryDataVO = warehouseIndexMapper.findBillLadingTotal(indexDTO); |
|
|
|
List<IndexDeliveryDataVO> indexDeliveryDataVO = warehouseIndexMapper.findBillLadingTotal(indexDTO); |
|
|
|
if (Func.isNotEmpty(indexDeliveryDataVO)) { |
|
|
|
if (Func.isNotEmpty(indexDeliveryDataVO)) { |
|
|
@ -540,9 +550,14 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { |
|
|
|
// Integer billLadingRoadTotalNum = warehouseIndexMapper.findBillLadingRoadTotalNum(deliveryDataVO.getWarehouseId());
|
|
|
|
// Integer billLadingRoadTotalNum = warehouseIndexMapper.findBillLadingRoadTotalNum(deliveryDataVO.getWarehouseId());
|
|
|
|
// deliveryDataVO.setTotalRoadNum(billLadingRoadTotalNum);
|
|
|
|
// deliveryDataVO.setTotalRoadNum(billLadingRoadTotalNum);
|
|
|
|
} |
|
|
|
} |
|
|
|
indexDeliveryDataVOList.addAll(indexDeliveryDataVO); |
|
|
|
indexBillDataVOList.addAll(indexDeliveryDataVO); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
bladeRedis.setEx(billKey, indexBillDataVOList, 3600L); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
map.put("data2",indexBillDataVOList); |
|
|
|
|
|
|
|
if (indexTripartiteDeliveryDataVOList.isEmpty()){ |
|
|
|
//查询尊外协信息
|
|
|
|
//查询尊外协信息
|
|
|
|
|
|
|
|
indexTripartiteDeliveryDataVOList = new ArrayList<>(); |
|
|
|
List<IndexDeliveryDataVO> indexTripartiteDeliveryDataVOS = warehouseIndexMapper.findTripartiteDeliveryTotal(indexDTO); |
|
|
|
List<IndexDeliveryDataVO> indexTripartiteDeliveryDataVOS = warehouseIndexMapper.findTripartiteDeliveryTotal(indexDTO); |
|
|
|
if (!indexTripartiteDeliveryDataVOS.isEmpty()) { |
|
|
|
if (!indexTripartiteDeliveryDataVOS.isEmpty()) { |
|
|
|
for (IndexDeliveryDataVO indexTripartiteDeliveryDataVO : indexTripartiteDeliveryDataVOS) { |
|
|
|
for (IndexDeliveryDataVO indexTripartiteDeliveryDataVO : indexTripartiteDeliveryDataVOS) { |
|
|
@ -557,11 +572,14 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { |
|
|
|
indexTripartiteDeliveryDataVO.setTotalVolume(totalVolume); |
|
|
|
indexTripartiteDeliveryDataVO.setTotalVolume(totalVolume); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
indexTripartiteDeliveryDataVOList.addAll(indexTripartiteDeliveryDataVOS); |
|
|
|
|
|
|
|
bladeRedis.setEx(tripartiteDeliveryKey, indexTripartiteDeliveryDataVOList, 3600L); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bladeRedis.setEx(key, indexDeliveryDataVOList, 3600L); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return indexDeliveryDataVOList; |
|
|
|
map.put("data3",indexTripartiteDeliveryDataVOList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return map; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|