|
@@ -32,8 +32,8 @@
|
|
,#{sortNo,jdbcType= NUMERIC }
|
|
,#{sortNo,jdbcType= NUMERIC }
|
|
,#{routeId,jdbcType=VARCHAR}
|
|
,#{routeId,jdbcType=VARCHAR}
|
|
,#{name,jdbcType=VARCHAR}
|
|
,#{name,jdbcType=VARCHAR}
|
|
-,#{longitude,jdbcType=VARCHAR}
|
|
|
|
-,#{latitude,jdbcType=VARCHAR}
|
|
|
|
|
|
+,#{longitude,jdbcType=DOUBLE}
|
|
|
|
+,#{latitude,jdbcType=DOUBLE}
|
|
,#{classify,jdbcType= NUMERIC }
|
|
,#{classify,jdbcType= NUMERIC }
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
@@ -59,10 +59,10 @@
|
|
name_=#{name,jdbcType=VARCHAR},
|
|
name_=#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="longitude!=null">
|
|
<if test="longitude!=null">
|
|
- longitude_=#{longitude,jdbcType=VARCHAR},
|
|
|
|
|
|
+ longitude_=#{longitude,jdbcType=DOUBLE},
|
|
</if>
|
|
</if>
|
|
<if test="latitude!=null">
|
|
<if test="latitude!=null">
|
|
- latitude_=#{latitude,jdbcType=VARCHAR},
|
|
|
|
|
|
+ latitude_=#{latitude,jdbcType=DOUBLE},
|
|
</if>
|
|
</if>
|
|
<if test="classify!=null">
|
|
<if test="classify!=null">
|
|
classify_=#{classify,jdbcType= NUMERIC },
|
|
classify_=#{classify,jdbcType= NUMERIC },
|
|
@@ -106,6 +106,24 @@ id_,sort_no,route_id,name_,longitude_,latitude_,classify_,create_by,create_time,
|
|
<if test="searchParams.id != null">
|
|
<if test="searchParams.id != null">
|
|
and ID_ like #{searchParams.id}
|
|
and ID_ like #{searchParams.id}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="searchParams.maxLongitude != null">
|
|
|
|
+ <![CDATA[
|
|
|
|
+ and longitude_ <= #{searchParams.maxLongitude}
|
|
|
|
+ ]]>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="searchParams.minLongitude != null">
|
|
|
|
+ <![CDATA[
|
|
|
|
+ and longitude_ >= #{searchParams.minLongitude}
|
|
|
|
+ ]]>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="searchParams.maxLatitude != null">
|
|
|
|
+ <![CDATA[
|
|
|
|
+ and latitude_ <= #{searchParams.maxLatitude}
|
|
|
|
+ ]]>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="searchParams.minLatitude != null">
|
|
|
|
+ and latitude_ >= #{searchParams.minLatitude}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
${sort.name} ${sort.order}
|
|
${sort.name} ${sort.order}
|