|
@@ -100,11 +100,12 @@ id_,sort_no,route_id,name_,longitude_,latitude_,classify_,create_by,create_time,
|
|
</select>
|
|
</select>
|
|
<select id="search" parameterType="hashmap" resultMap="StationInfoMap">
|
|
<select id="search" parameterType="hashmap" resultMap="StationInfoMap">
|
|
<![CDATA[
|
|
<![CDATA[
|
|
- select * from bus_station_info
|
|
|
|
|
|
+ select a.* from bus_station_info a
|
|
]]>
|
|
]]>
|
|
<where>
|
|
<where>
|
|
|
|
+ a.del_flag = 0
|
|
<if test="searchParams.id != null">
|
|
<if test="searchParams.id != null">
|
|
- and ID_ like #{searchParams.id}
|
|
|
|
|
|
+ and a.ID_ like #{searchParams.id}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.maxLongitude != null">
|
|
<if test="searchParams.maxLongitude != null">
|
|
<![CDATA[
|
|
<![CDATA[
|
|
@@ -113,16 +114,19 @@ id_,sort_no,route_id,name_,longitude_,latitude_,classify_,create_by,create_time,
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.minLongitude != null">
|
|
<if test="searchParams.minLongitude != null">
|
|
<![CDATA[
|
|
<![CDATA[
|
|
- and longitude_ >= #{searchParams.minLongitude}
|
|
|
|
|
|
+ and a.longitude_ >= #{searchParams.minLongitude}
|
|
]]>
|
|
]]>
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.maxLatitude != null">
|
|
<if test="searchParams.maxLatitude != null">
|
|
<![CDATA[
|
|
<![CDATA[
|
|
- and latitude_ <= #{searchParams.maxLatitude}
|
|
|
|
|
|
+ and a.latitude_ <= #{searchParams.maxLatitude}
|
|
]]>
|
|
]]>
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.minLatitude != null">
|
|
<if test="searchParams.minLatitude != null">
|
|
- and latitude_ >= #{searchParams.minLatitude}
|
|
|
|
|
|
+ and a.latitude_ >= #{searchParams.minLatitude}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="searchParams.routeId != null">
|
|
|
|
+ and a.route_id like #{searchParams.routeId}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|