[2.0.0] 修复接驳乘客屏偶现路线不更新问题

This commit is contained in:
wangmingjun
2023-04-10 15:30:36 +08:00
parent 56ff6e1bc4
commit 9c0ba1f3b0
6 changed files with 38 additions and 13 deletions

View File

@@ -1,5 +1,7 @@
package com.mogo.och.data.bean;
import java.util.Objects;
/**
* 单个网约车小巴车站信息
*
@@ -93,6 +95,28 @@ public class BusStationBean {
this.leaving = leaving;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BusStationBean that = (BusStationBean) o;
return siteId == that.siteId
&& seq == that.seq
&& Double.compare(that.gcjLon, gcjLon) == 0
&& Double.compare(that.gcjLat, gcjLat) == 0
&& Double.compare(that.lon, lon) == 0
&& Double.compare(that.lat, lat) == 0
&& drivingStatus == that.drivingStatus
&& leaving == that.leaving
&& name.equals(that.name)
&& nameKr.equals(that.nameKr);
}
@Override
public int hashCode() {
return Objects.hash(siteId, name, nameKr, seq, gcjLon, gcjLat, lon, lat, drivingStatus, leaving);
}
@Override
public String toString() {
return "BusStationBean{" +
@@ -107,4 +131,6 @@ public class BusStationBean {
", leaving=" + leaving +
'}';
}
}