Bläddra i källkod

修改地铁线路查询bug typeId字段无法筛选

zhouwang 3 dagar sedan
förälder
incheckning
8922f1ac34
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/main/resources/mapper/info/TrafficInfoMapper.xml

+ 2 - 1
src/main/resources/mapper/info/TrafficInfoMapper.xml

@@ -21,6 +21,7 @@
21 21
 	<select id="selectTrafficInfoList" parameterType="TrafficInfo" resultMap="TrafficInfoResult">
22 22
 		<include refid="selectTrafficInfoVo"/>
23 23
 		<where>
24
+			<if test="typeId != null and typeId != ''">and type_id = #{typeId}</if>
24 25
 			<if test="trafficName != null  and trafficName != ''"> and traffic_name like concat('%', #{trafficName}, '%')</if>
25 26
 		</where>
26 27
 		order by traffic_id
@@ -75,4 +76,4 @@
75 76
 			#{trafficId}
76 77
 		</foreach>
77 78
 	</delete>
78
-</mapper>
79
+</mapper>