|
|
@ -351,45 +351,53 @@ 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) { |
|
|
|
nodeInfoVO = new NodeInfoVO(); |
|
|
|
QualityDeliverEntity qualityDeliverEntity = signListByWaybillNumber.stream().filter(e -> e.getLoadTime() != null).findFirst().orElse(null); |
|
|
|
nodeInfoVO.setOperateName("配送装车"); |
|
|
|
|
|
|
|
nodeInfoVO.setOperateNumber(loadNum + ""); |
|
|
|
if(qualityDeliverEntity != null){ |
|
|
|
nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName()); |
|
|
|
nodeInfoVO = new NodeInfoVO(); |
|
|
|
nodeInfoVO.setOperateTime(qualityDeliverEntity.getCreateTime()); |
|
|
|
nodeInfoVO.setOperateName("配送装车"); |
|
|
|
// 增加网点电话
|
|
|
|
nodeInfoVO.setOperateNumber(loadNum + ""); |
|
|
|
BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId()); |
|
|
|
nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName()); |
|
|
|
if (entityWarehouseId != null) { |
|
|
|
nodeInfoVO.setOperateTime(qualityDeliverEntity.getLoadTime()); |
|
|
|
nodeInfoVO.setOperateWarehousePhone(entityWarehouseId.getContactNumber()); |
|
|
|
// 增加网点电话
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId()); |
|
|
|
|
|
|
|
if (entityWarehouseId != null) { |
|
|
|
|
|
|
|
nodeInfoVO.setOperateWarehousePhone(entityWarehouseId.getContactNumber()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nodeInfoVOList.add(nodeInfoVO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
nodeInfoVOList.add(nodeInfoVO); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (planNum != 0) { |
|
|
|
if (signNum != 0) { |
|
|
|
nodeInfoVO = new NodeInfoVO(); |
|
|
|
|
|
|
|
nodeInfoVO.setOperateName("配送签收"); |
|
|
|
QualityDeliverEntity qualityDeliverEntity = signListByWaybillNumber.stream().filter(e -> e.getSignTime() != null).findFirst().orElse(null); |
|
|
|
nodeInfoVO.setOperateNumber(signNum + "/" + loadNum); |
|
|
|
|
|
|
|
nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName()); |
|
|
|
if(qualityDeliverEntity != null){ |
|
|
|
nodeInfoVO.setOperateTime(qualityDeliverEntity.getCreateTime()); |
|
|
|
nodeInfoVO = new NodeInfoVO(); |
|
|
|
// 增加网点电话
|
|
|
|
nodeInfoVO.setOperateName("配送签收"); |
|
|
|
BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId()); |
|
|
|
nodeInfoVO.setOperateNumber(signNum + "/" + loadNum); |
|
|
|
if (entityWarehouseId != null) { |
|
|
|
nodeInfoVO.setOperateWarehouseName(qualityDeliverEntity.getWarehouseName()); |
|
|
|
nodeInfoVO.setOperateWarehousePhone(entityWarehouseId.getContactNumber()); |
|
|
|
nodeInfoVO.setOperateTime(qualityDeliverEntity.getSignTime()); |
|
|
|
|
|
|
|
// 增加网点电话
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity entityWarehouseId = basicdataWarehouseClient.getEntityWarehouseId(qualityDeliverEntity.getWarehouseId()); |
|
|
|
|
|
|
|
if (entityWarehouseId != null) { |
|
|
|
|
|
|
|
nodeInfoVO.setOperateWarehousePhone(entityWarehouseId.getContactNumber()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
nodeInfoVOList.add(nodeInfoVO); |
|
|
|
} |
|
|
|
} |
|
|
|
nodeInfoVOList.add(nodeInfoVO); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//对nodeInfoVOList集合中的作业时间 按照 时间倒序排序
|
|
|
|
//对nodeInfoVOList集合中的作业时间 按照 时间倒序排序
|
|
|
|
nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); |
|
|
|
nodeInfoVOList.sort(Comparator.comparing(NodeInfoVO::getOperateTime).reversed()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.setNodeInfoVOList(nodeInfoVOList); |
|
|
|
result.setNodeInfoVOList(nodeInfoVOList); |
|
|
|
// 配送签收
|
|
|
|
// 配送签收
|
|
|
|
|
|
|
|
|
|
|
|