|
@@ -52,250 +52,258 @@
|
|
|
<if test="naturalName != null and naturalName != ''">
|
|
|
and natural_name like CONCAT('%',#{naturalName,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
- <if test="weather != null and weather != ''">
|
|
|
+ <if test="weather != null and weather.size()>0 ">
|
|
|
and weather in
|
|
|
<foreach collection="weather" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="backlight != null and backlight != ''">
|
|
|
+ <if test="backlight != null and backlight.size()>0">
|
|
|
and backlight in
|
|
|
<foreach collection="backlight" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="lightChange != null and lightChange != ''">
|
|
|
+ <if test="lightChange != null and lightChange.size()>0">
|
|
|
and light_change in
|
|
|
<foreach collection="lightChange" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="roadType != null and roadType != ''">
|
|
|
+ <if test="roadType != null and roadType.size()>0">
|
|
|
and road_type in
|
|
|
<foreach collection="roadType" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="roadMatrrial != null and roadMatrrial != ''">
|
|
|
+ <if test="roadMatrrial != null and roadMatrrial.size()>0">
|
|
|
and road_matrrial in
|
|
|
<foreach collection="roadMatrrial" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="drivewayNum != null and drivewayNum != ''">
|
|
|
+ <if test="drivewayNum != null and drivewayNum.size()>0">
|
|
|
and driveway_num in
|
|
|
<foreach collection="drivewayNum" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="drivewayType != null and drivewayType != ''">
|
|
|
+ <if test="drivewayType != null and drivewayType.size()>0">
|
|
|
and driveway_type in
|
|
|
<foreach collection="drivewayType" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="roadFlatness != null and roadFlatness != ''">
|
|
|
+ <if test="roadFlatness != null and roadFlatness.size()>0">
|
|
|
and road_flatness in
|
|
|
<foreach collection="roadFlatness" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="roadCurvature != null and roadCurvature != ''">
|
|
|
+ <if test="roadCurvature != null and roadCurvature.size()>0">
|
|
|
and road_curvature in
|
|
|
<foreach collection="roadCurvature" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="ramp != null and ramp != ''">
|
|
|
+ <if test="ramp != null and ramp.size()>0">
|
|
|
and ramp in
|
|
|
<foreach collection="ramp" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="intersectionType != null and intersectionType != ''">
|
|
|
+ <if test="intersectionType != null and intersectionType.size()>0">
|
|
|
and intersection_type in
|
|
|
<foreach collection="intersectionType" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="planeIntersection != null and planeIntersection != ''">
|
|
|
+ <if test="planeIntersection != null and planeIntersection.size()>0">
|
|
|
and plane_intersection in
|
|
|
<foreach collection="planeIntersection" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="bridge != null and bridge != ''">
|
|
|
+ <if test="bridge != null and bridge.size()>0">
|
|
|
and bridge in
|
|
|
<foreach collection="bridge" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="tunnel != null and tunnel != ''">
|
|
|
+ <if test="tunnel != null and tunnel.size()>0">
|
|
|
and tunnel in
|
|
|
<foreach collection="tunnel" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="speedLimit != null and speedLimit != ''">
|
|
|
+ <if test="speedLimit != null and speedLimit.size()>0">
|
|
|
and speed_limit in
|
|
|
<foreach collection="speedLimit" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="minSpeedLimit != null and minSpeedLimit != ''">
|
|
|
+ <if test="minSpeedLimit != null and minSpeedLimit.size()>0">
|
|
|
and min_speed_limit in
|
|
|
<foreach collection="minSpeedLimit" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="noEntry != null and noEntry != ''">
|
|
|
+ <if test="noEntry != null and noEntry.size()>0">
|
|
|
and no_entry in
|
|
|
<foreach collection="noEntry" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="noStopping != null and noStopping != ''">
|
|
|
+ <if test="noStopping != null and noStopping.size()>0">
|
|
|
and no_stopping in
|
|
|
<foreach collection="noStopping" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="leftLaneLine != null and leftLaneLine != ''">
|
|
|
+ <if test="leftLaneLine != null and leftLaneLine.size()>0">
|
|
|
and left_lane_line in
|
|
|
<foreach collection="leftLaneLine" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="rightLaneLine != null and rightLaneLine != ''">
|
|
|
+ <if test="rightLaneLine != null and rightLaneLine.size()>0">
|
|
|
and right_lane_line in
|
|
|
<foreach collection="rightLaneLine" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="conductorMarking != null and conductorMarking != ''">
|
|
|
+ <if test="conductorMarking != null and conductorMarking.size()>0">
|
|
|
and conductor_marking in
|
|
|
<foreach collection="conductorMarking" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="pedestrianCrossing != null and pedestrianCrossing != ''">
|
|
|
+ <if test="pedestrianCrossing != null and pedestrianCrossing.size()>0">
|
|
|
and pedestrian_crossing in
|
|
|
<foreach collection="pedestrianCrossing" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="trafficLight != null and trafficLight != ''">
|
|
|
+ <if test="trafficLight != null and trafficLight.size()>0">
|
|
|
and traffic_light in
|
|
|
<foreach collection="trafficLight" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="decelerationMarking != null and decelerationMarking != ''">
|
|
|
+ <if test="decelerationMarking != null and decelerationMarking.size()>0">
|
|
|
and deceleration_marking in
|
|
|
<foreach collection="decelerationMarking" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="pavementCondition != null and pavementCondition != ''">
|
|
|
+ <if test="pavementCondition != null and pavementCondition.size()>0">
|
|
|
and pavement_condition in
|
|
|
<foreach collection="pavementCondition" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="naturalDisaster != null and naturalDisaster != ''">
|
|
|
+ <if test="naturalDisaster != null and naturalDisaster.size()>0">
|
|
|
and natural_disaster in
|
|
|
<foreach collection="naturalDisaster" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="roadSafetySigns != null and roadSafetySigns != ''">
|
|
|
+ <if test="roadSafetySigns != null and roadSafetySigns.size()>0">
|
|
|
and road_safety_signs in
|
|
|
<foreach collection="roadSafetySigns" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="safetyWarningBoard != null and safetyWarningBoard != ''">
|
|
|
+ <if test="safetyWarningBoard != null and safetyWarningBoard.size()>0">
|
|
|
and safety_warning_board in
|
|
|
<foreach collection="safetyWarningBoard" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="trafficAccident != null and trafficAccident != ''">
|
|
|
+ <if test="trafficAccident != null and trafficAccident.size()>0">
|
|
|
and traffic_accident in
|
|
|
<foreach collection="trafficAccident" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="patency != null and patency != ''">
|
|
|
+ <if test="patency != null and patency.size()>0">
|
|
|
and patency in
|
|
|
<foreach collection="patency" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="specialVehicleYield != null and specialVehicleYield != ''">
|
|
|
+ <if test="specialVehicleYield != null and specialVehicleYield.size()>0">
|
|
|
and special_vehicle_yield in
|
|
|
<foreach collection="specialVehicleYield" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="violation != null and violation != ''">
|
|
|
+ <if test="violation != null and violation.size()>0">
|
|
|
and violation in
|
|
|
<foreach collection="violation" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="doubleFlashingCar != null and doubleFlashingCar != ''">
|
|
|
+ <if test="doubleFlashingCar != null and doubleFlashingCar.size()>0">
|
|
|
and double_flashing_car in
|
|
|
<foreach collection="doubleFlashingCar" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="selfBehavior != null and selfBehavior != ''">
|
|
|
- and self_behavior in
|
|
|
+ <if test="selfBehavior != null and selfBehavior.size()>0">
|
|
|
+ and
|
|
|
<foreach collection="selfBehavior" item="item" index="index"
|
|
|
- separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
+ separator=" or " open="(" close=")">
|
|
|
+ self_behavior like CONCAT('%,',#{item},',%')
|
|
|
+ or self_behavior like CONCAT('%,',#{item}) or
|
|
|
+ self_behavior like CONCAT(#{item},',%') or
|
|
|
+ self_behavior=#{item}
|
|
|
</foreach>
|
|
|
+
|
|
|
</if>
|
|
|
- <if test="targetBehavior != null and targetBehavior != ''">
|
|
|
- and target_behavior in
|
|
|
+ <if test="targetBehavior != null and targetBehavior.size()>0">
|
|
|
+ and
|
|
|
<foreach collection="targetBehavior" item="item" index="index"
|
|
|
- separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
+ separator=" or " open="(" close=")">
|
|
|
+ target_behavior like CONCAT('%,',#{item},',%')
|
|
|
+ or target_behavior like CONCAT('%,',#{item}) or
|
|
|
+ target_behavior like CONCAT(#{item},',%') or
|
|
|
+ target_behavior=#{item}
|
|
|
</foreach>
|
|
|
+
|
|
|
</if>
|
|
|
<if test="ids != null and ids.length>0">
|
|
|
and natural_id in
|