Browse Source

Merge remote-tracking branch 'origin/pre-production'

master
zhenghaoyu 24 hours ago
parent
commit
083b9b26a5
  1. 22
      blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java

22
blade-service/logpm-data-sharing/src/main/java/com/logpm/datasharing/service/impl/LogpmDataSearchServiceImpl.java

@ -351,13 +351,16 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService {
int signNum = signListByWaybillNumber.stream().filter(t-> t.getSignNum()!=null).mapToInt(QualityDeliverEntity::getSignNum).sum(); int signNum = signListByWaybillNumber.stream().filter(t-> t.getSignNum()!=null).mapToInt(QualityDeliverEntity::getSignNum).sum();
// 配送装车 // 配送装车
QualityDeliverEntity qualityDeliverEntity = signListByWaybillNumber.get(0); // QualityDeliverEntity qualityDeliverEntity = signListByWaybillNumber.get(0);
if (loadNum != 0) { if (loadNum != 0) {
QualityDeliverEntity qualityDeliverEntity = signListByWaybillNumber.stream().filter(e -> e.getLoadTime() != null).findFirst().orElse(null);
if(qualityDeliverEntity != null){
nodeInfoVO = new NodeInfoVO(); nodeInfoVO = new NodeInfoVO();
nodeInfoVO.setOperateName("配送装车"); nodeInfoVO.setOperateName("配送装车");
nodeInfoVO.setOperateNumber(loadNum + ""); nodeInfoVO.setOperateNumber(loadNum + "");
nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName()); nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName());
nodeInfoVO.setOperateTime(qualityDeliverEntity.getCreateTime()); nodeInfoVO.setOperateTime(qualityDeliverEntity.getLoadTime());
// 增加网点电话 // 增加网点电话
BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId()); BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId());
if (entityWarehouseId != null) { if (entityWarehouseId != null) {
@ -367,12 +370,19 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService {
nodeInfoVOList.add(nodeInfoVO); nodeInfoVOList.add(nodeInfoVO);
} }
if (planNum != 0) {
}
if (signNum != 0) {
QualityDeliverEntity qualityDeliverEntity = signListByWaybillNumber.stream().filter(e -> e.getSignTime() != null).findFirst().orElse(null);
if(qualityDeliverEntity != null){
nodeInfoVO = new NodeInfoVO(); nodeInfoVO = new NodeInfoVO();
nodeInfoVO.setOperateName("配送签收"); nodeInfoVO.setOperateName("配送签收");
nodeInfoVO.setOperateNumber(signNum + "/" + loadNum); nodeInfoVO.setOperateNumber(signNum + "/" + loadNum);
nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName()); nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName());
nodeInfoVO.setOperateTime(qualityDeliverEntity.getCreateTime()); nodeInfoVO.setOperateTime(qualityDeliverEntity.getSignTime());
// 增加网点电话 // 增加网点电话
BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId()); BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId());
if (entityWarehouseId != null) { if (entityWarehouseId != null) {
@ -383,13 +393,11 @@ public class LogpmDataSearchServiceImpl implements ILogpmDataSearchService {
} }
}
//对nodeInfoVOList集合中的作业时间 按照 时间倒序排序 //对nodeInfoVOList集合中的作业时间 按照 时间倒序排序
nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed());
result.setNodeInfoVOList(nodeInfoVOList); result.setNodeInfoVOList(nodeInfoVOList);
// 配送签收 // 配送签收

Loading…
Cancel
Save