|
@@ -1,5 +1,5 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!-- namespace必须指向DAO接口 -->
|
|
<!-- namespace必须指向DAO接口 -->
|
|
<mapper namespace="com.jpsoft.bus.modules.bus.dao.StationSubInfoDAO">
|
|
<mapper namespace="com.jpsoft.bus.modules.bus.dao.StationSubInfoDAO">
|
|
@@ -81,7 +81,7 @@
|
|
where id_=#{id}
|
|
where id_=#{id}
|
|
</update>
|
|
</update>
|
|
<select id="get" parameterType="string" resultMap="StationSubInfoMap">
|
|
<select id="get" parameterType="string" resultMap="StationSubInfoMap">
|
|
- select
|
|
|
|
|
|
+ select
|
|
id_,station_id,start_station_id,end_station_id,longitude_,latitude_,create_by,create_time,update_by,update_time,del_flag from bus_station_sub_info where id_=#{0}
|
|
id_,station_id,start_station_id,end_station_id,longitude_,latitude_,create_by,create_time,update_by,update_time,del_flag from bus_station_sub_info where id_=#{0}
|
|
</select>
|
|
</select>
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
@@ -98,9 +98,45 @@ id_,station_id,start_station_id,end_station_id,longitude_,latitude_,create_by,cr
|
|
<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>
|
|
|
|
+
|
|
|
|
+ <if test="searchParams.startStationId != null">
|
|
|
|
+ and start_station_id = #{searchParams.startStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="searchParams.endStationId != null">
|
|
|
|
+ and end_station_id = #{searchParams.endStationId}
|
|
|
|
+ </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}
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="findByStationIdStartEnd" resultMap="StationSubInfoMap">
|
|
|
|
+ <![CDATA[
|
|
|
|
+ select * from bus_station_sub_info
|
|
|
|
+ where del_flag = 0
|
|
|
|
+ and station_id = #{stationId}
|
|
|
|
+ and start_station_id = #{startStationId}
|
|
|
|
+ and end_station_id = #{endStationId}
|
|
|
|
+ limit 1
|
|
|
|
+ ]]>
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|