统一数据库映射
This commit is contained in:
@@ -86,7 +86,7 @@ public class XianBridge {
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
private Object point;
|
||||
private Object geom;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识,0未删除,1已删除
|
||||
@@ -120,7 +120,7 @@ public class XianBridge {
|
||||
&& (this.getMaster() == null ? other.getMaster() == null : this.getMaster().equals(other.getMaster()))
|
||||
&& (this.getMaint() == null ? other.getMaint() == null : this.getMaint().equals(other.getMaint()))
|
||||
&& (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
|
||||
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
|
||||
&& (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
|
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ public class XianBridge {
|
||||
result = prime * result + ((getMaster() == null) ? 0 : getMaster().hashCode());
|
||||
result = prime * result + ((getMaint() == null) ? 0 : getMaint().hashCode());
|
||||
result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
|
||||
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
|
||||
result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
|
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -169,7 +169,7 @@ public class XianBridge {
|
||||
sb.append(", master=").append(master);
|
||||
sb.append(", maint=").append(maint);
|
||||
sb.append(", note=").append(note);
|
||||
sb.append(", point=").append(point);
|
||||
sb.append(", geom=").append(geom);
|
||||
sb.append(", isDelete=").append(isDelete);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -201,7 +201,7 @@ public class XianDangerousSource {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Object point;
|
||||
private Object geom;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识,0未删除,1已删除
|
||||
@@ -258,7 +258,7 @@ public class XianDangerousSource {
|
||||
&& (this.getWriteTime() == null ? other.getWriteTime() == null : this.getWriteTime().equals(other.getWriteTime()))
|
||||
&& (this.getLon() == null ? other.getLon() == null : this.getLon().equals(other.getLon()))
|
||||
&& (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
|
||||
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
|
||||
&& (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
|
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ public class XianDangerousSource {
|
||||
result = prime * result + ((getWriteTime() == null) ? 0 : getWriteTime().hashCode());
|
||||
result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
|
||||
result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
|
||||
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
|
||||
result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
|
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -353,7 +353,7 @@ public class XianDangerousSource {
|
||||
sb.append(", writeTime=").append(writeTime);
|
||||
sb.append(", lon=").append(lon);
|
||||
sb.append(", lat=").append(lat);
|
||||
sb.append(", point=").append(point);
|
||||
sb.append(", geom=").append(geom);
|
||||
sb.append(", isDelete=").append(isDelete);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -71,7 +71,7 @@ public class XianEmergencyShelter {
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
private Object point;
|
||||
private Object geom;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识,0未删除,1已删除
|
||||
@@ -102,7 +102,7 @@ public class XianEmergencyShelter {
|
||||
&& (this.getEffectiveNumberOfRefugees() == null ? other.getEffectiveNumberOfRefugees() == null : this.getEffectiveNumberOfRefugees().equals(other.getEffectiveNumberOfRefugees()))
|
||||
&& (this.getLon() == null ? other.getLon() == null : this.getLon().equals(other.getLon()))
|
||||
&& (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
|
||||
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
|
||||
&& (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
|
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ public class XianEmergencyShelter {
|
||||
result = prime * result + ((getEffectiveNumberOfRefugees() == null) ? 0 : getEffectiveNumberOfRefugees().hashCode());
|
||||
result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
|
||||
result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
|
||||
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
|
||||
result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
|
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -145,7 +145,7 @@ public class XianEmergencyShelter {
|
||||
sb.append(", effectiveNumberOfRefugees=").append(effectiveNumberOfRefugees);
|
||||
sb.append(", lon=").append(lon);
|
||||
sb.append(", lat=").append(lat);
|
||||
sb.append(", point=").append(point);
|
||||
sb.append(", geom=").append(geom);
|
||||
sb.append(", isDelete=").append(isDelete);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -281,7 +281,7 @@ public class XianFirefighter {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Object point;
|
||||
private Object geom;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识,0未删除,1已删除
|
||||
@@ -354,7 +354,7 @@ public class XianFirefighter {
|
||||
&& (this.getWriteTime() == null ? other.getWriteTime() == null : this.getWriteTime().equals(other.getWriteTime()))
|
||||
&& (this.getLon() == null ? other.getLon() == null : this.getLon().equals(other.getLon()))
|
||||
&& (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
|
||||
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
|
||||
&& (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
|
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
||||
}
|
||||
|
||||
@@ -416,7 +416,7 @@ public class XianFirefighter {
|
||||
result = prime * result + ((getWriteTime() == null) ? 0 : getWriteTime().hashCode());
|
||||
result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
|
||||
result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
|
||||
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
|
||||
result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
|
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -481,7 +481,7 @@ public class XianFirefighter {
|
||||
sb.append(", writeTime=").append(writeTime);
|
||||
sb.append(", lon=").append(lon);
|
||||
sb.append(", lat=").append(lat);
|
||||
sb.append(", point=").append(point);
|
||||
sb.append(", geom=").append(geom);
|
||||
sb.append(", isDelete=").append(isDelete);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -316,7 +316,7 @@ public class XianHospitals {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Object point;
|
||||
private Object geom;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识,0未删除,1已删除
|
||||
@@ -396,7 +396,7 @@ public class XianHospitals {
|
||||
&& (this.getWriteTime() == null ? other.getWriteTime() == null : this.getWriteTime().equals(other.getWriteTime()))
|
||||
&& (this.getLon() == null ? other.getLon() == null : this.getLon().equals(other.getLon()))
|
||||
&& (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
|
||||
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
|
||||
&& (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
|
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
||||
}
|
||||
|
||||
@@ -465,7 +465,7 @@ public class XianHospitals {
|
||||
result = prime * result + ((getWriteTime() == null) ? 0 : getWriteTime().hashCode());
|
||||
result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
|
||||
result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
|
||||
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
|
||||
result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
|
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -537,7 +537,7 @@ public class XianHospitals {
|
||||
sb.append(", writeTime=").append(writeTime);
|
||||
sb.append(", lon=").append(lon);
|
||||
sb.append(", lat=").append(lat);
|
||||
sb.append(", point=").append(point);
|
||||
sb.append(", geom=").append(geom);
|
||||
sb.append(", isDelete=").append(isDelete);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -251,7 +251,7 @@ public class XianStorePoints {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Object point;
|
||||
private Object geom;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -318,7 +318,7 @@ public class XianStorePoints {
|
||||
&& (this.getOverwriteTime() == null ? other.getOverwriteTime() == null : this.getOverwriteTime().equals(other.getOverwriteTime()))
|
||||
&& (this.getLon() == null ? other.getLon() == null : this.getLon().equals(other.getLon()))
|
||||
&& (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
|
||||
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
|
||||
&& (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
|
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
||||
}
|
||||
|
||||
@@ -374,7 +374,7 @@ public class XianStorePoints {
|
||||
result = prime * result + ((getOverwriteTime() == null) ? 0 : getOverwriteTime().hashCode());
|
||||
result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
|
||||
result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
|
||||
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
|
||||
result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
|
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -433,7 +433,7 @@ public class XianStorePoints {
|
||||
sb.append(", overwriteTime=").append(overwriteTime);
|
||||
sb.append(", lon=").append(lon);
|
||||
sb.append(", lat=").append(lat);
|
||||
sb.append(", point=").append(point);
|
||||
sb.append(", point=").append(geom);
|
||||
sb.append(", isDelete=").append(isDelete);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -61,7 +61,7 @@ public class XianSubwayStations {
|
||||
/**
|
||||
* 站点经纬度
|
||||
*/
|
||||
private Object point;
|
||||
private Object geom;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识,0未删除,1已删除
|
||||
@@ -90,7 +90,7 @@ public class XianSubwayStations {
|
||||
&& (this.getPointOtherDefenses() == null ? other.getPointOtherDefenses() == null : this.getPointOtherDefenses().equals(other.getPointOtherDefenses()))
|
||||
&& (this.getLon() == null ? other.getLon() == null : this.getLon().equals(other.getLon()))
|
||||
&& (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
|
||||
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
|
||||
&& (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
|
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ public class XianSubwayStations {
|
||||
result = prime * result + ((getPointOtherDefenses() == null) ? 0 : getPointOtherDefenses().hashCode());
|
||||
result = prime * result + ((getLon() == null) ? 0 : getLon().hashCode());
|
||||
result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
|
||||
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
|
||||
result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
|
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
|
||||
return result;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ public class XianSubwayStations {
|
||||
sb.append(", pointOtherDefenses=").append(pointOtherDefenses);
|
||||
sb.append(", lon=").append(lon);
|
||||
sb.append(", lat=").append(lat);
|
||||
sb.append(", point=").append(point);
|
||||
sb.append(", geom=").append(geom);
|
||||
sb.append(", isDelete=").append(isDelete);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -17,15 +17,15 @@
|
||||
<result property="projectScale" column="project_scale" />
|
||||
<result property="hasHiddenDanger" column="has_hidden_danger" />
|
||||
<result property="note1" column="note1" />
|
||||
<result property="lon" column="longitude" />
|
||||
<result property="lat" column="latitude" />
|
||||
<result property="lon" column="lon" />
|
||||
<result property="lat" column="lon" />
|
||||
<result property="geom" column="geom" />
|
||||
<result property="isDelete" column="is_delete" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 获取所有水库基础点 -->
|
||||
<select id="getBasePoints" resultMap="BaseResultMap">
|
||||
SELECT id, reservoir_name, longitude, latitude FROM xian_reservoir_list
|
||||
SELECT id, reservoir_name, lon, lat FROM xian_reservoir_list
|
||||
<where>
|
||||
is_delete = 0
|
||||
</where>
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
<!-- 根据id获取水库详情 -->
|
||||
<select id="getPointDetailById" resultMap="BaseResultMap">
|
||||
SELECT id, reservoir_name, location, safety_assess_result, longitude, latitude FROM xian_reservoir_list
|
||||
SELECT id, reservoir_name, location, safety_assess_result, lon, lat FROM xian_reservoir_list
|
||||
<where>
|
||||
id = #{id} AND is_delete = 0
|
||||
</where>
|
||||
|
||||
Reference in New Issue
Block a user