|
@@ -45,7 +45,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
<select id="selectConfigStationList" parameterType="ConfigStation" resultMap="ConfigStationResult">
|
|
<select id="selectConfigStationList" parameterType="ConfigStation" resultMap="ConfigStationResult">
|
|
|
<include refid="selectConfigStationVo"/>
|
|
<include refid="selectConfigStationVo"/>
|
|
|
- <where>
|
|
|
|
|
|
|
+ <where>
|
|
|
|
|
+ and station_type = 1
|
|
|
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
|
|
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
|
|
|
<if test="stationCode != null and stationCode != ''"> and station_code = #{stationCode}</if>
|
|
<if test="stationCode != null and stationCode != ''"> and station_code = #{stationCode}</if>
|
|
|
<if test="superiorAreaId != null and superiorAreaId != ''"> and superior_area_id = #{superiorAreaId}</if>
|
|
<if test="superiorAreaId != null and superiorAreaId != ''"> and superior_area_id = #{superiorAreaId}</if>
|
|
@@ -78,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
<select id="selectConfigStationById" parameterType="Long" resultMap="ConfigStationResult">
|
|
<select id="selectConfigStationById" parameterType="Long" resultMap="ConfigStationResult">
|
|
|
<include refid="selectConfigStationVo"/>
|
|
<include refid="selectConfigStationVo"/>
|
|
|
- where id = #{id}
|
|
|
|
|
|
|
+ where id = #{id} and station_type = 1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectConfigStationByIds" parameterType="Long" resultMap="ConfigStationResult">
|
|
<select id="selectConfigStationByIds" parameterType="Long" resultMap="ConfigStationResult">
|
|
@@ -86,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ and station_type = 1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertConfigStation" parameterType="ConfigStation">
|
|
<insert id="insertConfigStation" parameterType="ConfigStation">
|