Browse Source

Merge branch 'dev' into pre-production

pre-production
zhaoqiaobo 1 month ago
parent
commit
77da12497c
  1. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/DeliverFinishReportListener.java

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/DeliverFinishReportListener.java

@ -1105,8 +1105,9 @@ public class DeliverFinishReportListener implements ReportService {
Long distance = GaoDeApiUtil.measureDistance(beforePositioning, arrivePositioning);
String str = Convert.toStr(ObjectUtil.isNotEmpty(distance) ? NumberUtil.div(new BigDecimal(distance), 1000) : 0L / 1000);
// 获取上一个点位的总距离
reduce = NumberUtil.add(reduce, new BigDecimal(str));
allRouteMap.put(value1.getSignReservationCode(), Convert.toStr(reduce));
// reduce = NumberUtil.add(reduce, new BigDecimal(str));
// allRouteMap.put(value1.getSignReservationCode(), Convert.toStr(reduce));
allRouteMap.put(value1.getSignReservationCode(), str);
beforePositioning = arrivePositioning;
}
}

Loading…
Cancel
Save