|
@@ -1,6 +1,6 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
-<mapper namespace="com.css.simulation.resource.scene.mapper.SceneNaturalMapper" >
|
|
|
|
|
|
+<mapper namespace="com.css.simulation.resource.scene.mapper.SceneNaturalMapper">
|
|
|
|
|
|
<insert id="saveSceneNatural" parameterType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
<insert id="saveSceneNatural" parameterType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
insert into simulation.scene_natural
|
|
insert into simulation.scene_natural
|
|
@@ -33,7 +33,8 @@
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
- <select id="querySceneNaturalList" parameterType="api.common.pojo.param.scene.SceneNaturalParam" resultType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
|
|
|
|
+ <select id="querySceneNaturalList" parameterType="api.common.pojo.param.scene.SceneNaturalParam"
|
|
|
|
+ resultType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
select
|
|
select
|
|
natural_id,natural_name,weather,backlight,light_change,road_type,
|
|
natural_id,natural_name,weather,backlight,light_change,road_type,
|
|
road_matrrial,driveway_num,driveway_type,road_flatness,road_curvature,
|
|
road_matrrial,driveway_num,driveway_type,road_flatness,road_curvature,
|
|
@@ -52,252 +53,288 @@
|
|
and natural_name like CONCAT('%',#{naturalName,jdbcType=VARCHAR},'%')
|
|
and natural_name like CONCAT('%',#{naturalName,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
</if>
|
|
<if test="weather != null and weather != ''">
|
|
<if test="weather != null and weather != ''">
|
|
- and weather in
|
|
|
|
|
|
+ and weather in
|
|
<foreach collection="weather" item="item" index="index"
|
|
<foreach collection="weather" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="backlight != null and backlight != ''">
|
|
<if test="backlight != null and backlight != ''">
|
|
- and backlight in
|
|
|
|
|
|
+ and backlight in
|
|
<foreach collection="backlight" item="item" index="index"
|
|
<foreach collection="backlight" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="lightChange != null and lightChange != ''">
|
|
<if test="lightChange != null and lightChange != ''">
|
|
- and light_change in
|
|
|
|
|
|
+ and light_change in
|
|
<foreach collection="lightChange" item="item" index="index"
|
|
<foreach collection="lightChange" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="roadType != null and roadType != ''">
|
|
<if test="roadType != null and roadType != ''">
|
|
- and road_type in
|
|
|
|
|
|
+ and road_type in
|
|
<foreach collection="roadType" item="item" index="index"
|
|
<foreach collection="roadType" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="roadMatrrial != null and roadMatrrial != ''">
|
|
<if test="roadMatrrial != null and roadMatrrial != ''">
|
|
- and road_matrrial in
|
|
|
|
|
|
+ and road_matrrial in
|
|
<foreach collection="roadMatrrial" item="item" index="index"
|
|
<foreach collection="roadMatrrial" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="drivewayNum != null and drivewayNum != ''">
|
|
<if test="drivewayNum != null and drivewayNum != ''">
|
|
- and driveway_num in
|
|
|
|
|
|
+ and driveway_num in
|
|
<foreach collection="drivewayNum" item="item" index="index"
|
|
<foreach collection="drivewayNum" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="drivewayType != null and drivewayType != ''">
|
|
<if test="drivewayType != null and drivewayType != ''">
|
|
- and driveway_type in
|
|
|
|
|
|
+ and driveway_type in
|
|
<foreach collection="drivewayType" item="item" index="index"
|
|
<foreach collection="drivewayType" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="roadFlatness != null and roadFlatness != ''">
|
|
<if test="roadFlatness != null and roadFlatness != ''">
|
|
- and road_flatness in
|
|
|
|
|
|
+ and road_flatness in
|
|
<foreach collection="roadFlatness" item="item" index="index"
|
|
<foreach collection="roadFlatness" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="roadCurvature != null and roadCurvature != ''">
|
|
<if test="roadCurvature != null and roadCurvature != ''">
|
|
- and road_curvature in
|
|
|
|
|
|
+ and road_curvature in
|
|
<foreach collection="roadCurvature" item="item" index="index"
|
|
<foreach collection="roadCurvature" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="ramp != null and ramp != ''">
|
|
<if test="ramp != null and ramp != ''">
|
|
- and ramp in
|
|
|
|
|
|
+ and ramp in
|
|
<foreach collection="ramp" item="item" index="index"
|
|
<foreach collection="ramp" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="intersectionType != null and intersectionType != ''">
|
|
<if test="intersectionType != null and intersectionType != ''">
|
|
- and intersection_type in
|
|
|
|
|
|
+ and intersection_type in
|
|
<foreach collection="intersectionType" item="item" index="index"
|
|
<foreach collection="intersectionType" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="planeIntersection != null and planeIntersection != ''">
|
|
<if test="planeIntersection != null and planeIntersection != ''">
|
|
- and plane_intersection in
|
|
|
|
|
|
+ and plane_intersection in
|
|
<foreach collection="planeIntersection" item="item" index="index"
|
|
<foreach collection="planeIntersection" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="bridge != null and bridge != ''">
|
|
<if test="bridge != null and bridge != ''">
|
|
- and bridge in
|
|
|
|
|
|
+ and bridge in
|
|
<foreach collection="bridge" item="item" index="index"
|
|
<foreach collection="bridge" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="tunnel != null and tunnel != ''">
|
|
<if test="tunnel != null and tunnel != ''">
|
|
- and tunnel in
|
|
|
|
|
|
+ and tunnel in
|
|
<foreach collection="tunnel" item="item" index="index"
|
|
<foreach collection="tunnel" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="speedLimit != null and speedLimit != ''">
|
|
<if test="speedLimit != null and speedLimit != ''">
|
|
- and speed_limit in
|
|
|
|
|
|
+ and speed_limit in
|
|
<foreach collection="speedLimit" item="item" index="index"
|
|
<foreach collection="speedLimit" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="minSpeedLimit != null and minSpeedLimit != ''">
|
|
<if test="minSpeedLimit != null and minSpeedLimit != ''">
|
|
- and min_speed_limit in
|
|
|
|
|
|
+ and min_speed_limit in
|
|
<foreach collection="minSpeedLimit" item="item" index="index"
|
|
<foreach collection="minSpeedLimit" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="noEntry != null and noEntry != ''">
|
|
<if test="noEntry != null and noEntry != ''">
|
|
- and no_entry in
|
|
|
|
|
|
+ and no_entry in
|
|
<foreach collection="noEntry" item="item" index="index"
|
|
<foreach collection="noEntry" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="noStopping != null and noStopping != ''">
|
|
<if test="noStopping != null and noStopping != ''">
|
|
- and no_stopping in
|
|
|
|
|
|
+ and no_stopping in
|
|
<foreach collection="noStopping" item="item" index="index"
|
|
<foreach collection="noStopping" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="leftLaneLine != null and leftLaneLine != ''">
|
|
<if test="leftLaneLine != null and leftLaneLine != ''">
|
|
- and left_lane_line in
|
|
|
|
|
|
+ and left_lane_line in
|
|
<foreach collection="leftLaneLine" item="item" index="index"
|
|
<foreach collection="leftLaneLine" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="rightLaneLine != null and rightLaneLine != ''">
|
|
<if test="rightLaneLine != null and rightLaneLine != ''">
|
|
- and right_lane_line in
|
|
|
|
|
|
+ and right_lane_line in
|
|
<foreach collection="rightLaneLine" item="item" index="index"
|
|
<foreach collection="rightLaneLine" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="conductorMarking != null and conductorMarking != ''">
|
|
<if test="conductorMarking != null and conductorMarking != ''">
|
|
- and conductor_marking in
|
|
|
|
|
|
+ and conductor_marking in
|
|
<foreach collection="conductorMarking" item="item" index="index"
|
|
<foreach collection="conductorMarking" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="pedestrianCrossing != null and pedestrianCrossing != ''">
|
|
<if test="pedestrianCrossing != null and pedestrianCrossing != ''">
|
|
- and pedestrian_crossing in
|
|
|
|
|
|
+ and pedestrian_crossing in
|
|
<foreach collection="pedestrianCrossing" item="item" index="index"
|
|
<foreach collection="pedestrianCrossing" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="trafficLight != null and trafficLight != ''">
|
|
<if test="trafficLight != null and trafficLight != ''">
|
|
- and traffic_light in
|
|
|
|
|
|
+ and traffic_light in
|
|
<foreach collection="trafficLight" item="item" index="index"
|
|
<foreach collection="trafficLight" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="decelerationMarking != null and decelerationMarking != ''">
|
|
<if test="decelerationMarking != null and decelerationMarking != ''">
|
|
- and deceleration_marking in
|
|
|
|
|
|
+ and deceleration_marking in
|
|
<foreach collection="decelerationMarking" item="item" index="index"
|
|
<foreach collection="decelerationMarking" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="pavementCondition != null and pavementCondition != ''">
|
|
<if test="pavementCondition != null and pavementCondition != ''">
|
|
- and pavement_condition in
|
|
|
|
|
|
+ and pavement_condition in
|
|
<foreach collection="pavementCondition" item="item" index="index"
|
|
<foreach collection="pavementCondition" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="naturalDisaster != null and naturalDisaster != ''">
|
|
<if test="naturalDisaster != null and naturalDisaster != ''">
|
|
- and natural_disaster in
|
|
|
|
|
|
+ and natural_disaster in
|
|
<foreach collection="naturalDisaster" item="item" index="index"
|
|
<foreach collection="naturalDisaster" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="roadSafetySigns != null and roadSafetySigns != ''">
|
|
<if test="roadSafetySigns != null and roadSafetySigns != ''">
|
|
- and road_safety_signs in
|
|
|
|
|
|
+ and road_safety_signs in
|
|
<foreach collection="roadSafetySigns" item="item" index="index"
|
|
<foreach collection="roadSafetySigns" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="safetyWarningBoard != null and safetyWarningBoard != ''">
|
|
<if test="safetyWarningBoard != null and safetyWarningBoard != ''">
|
|
- and safety_warning_board in
|
|
|
|
|
|
+ and safety_warning_board in
|
|
<foreach collection="safetyWarningBoard" item="item" index="index"
|
|
<foreach collection="safetyWarningBoard" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="trafficAccident != null and trafficAccident != ''">
|
|
<if test="trafficAccident != null and trafficAccident != ''">
|
|
- and traffic_accident in
|
|
|
|
|
|
+ and traffic_accident in
|
|
<foreach collection="trafficAccident" item="item" index="index"
|
|
<foreach collection="trafficAccident" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="patency != null and patency != ''">
|
|
<if test="patency != null and patency != ''">
|
|
- and patency in
|
|
|
|
|
|
+ and patency in
|
|
<foreach collection="patency" item="item" index="index"
|
|
<foreach collection="patency" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="specialVehicleYield != null and specialVehicleYield != ''">
|
|
<if test="specialVehicleYield != null and specialVehicleYield != ''">
|
|
- and special_vehicle_yield in
|
|
|
|
|
|
+ and special_vehicle_yield in
|
|
<foreach collection="specialVehicleYield" item="item" index="index"
|
|
<foreach collection="specialVehicleYield" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="violation != null and violation != ''">
|
|
<if test="violation != null and violation != ''">
|
|
- and violation in
|
|
|
|
|
|
+ and violation in
|
|
<foreach collection="violation" item="item" index="index"
|
|
<foreach collection="violation" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="doubleFlashingCar != null and doubleFlashingCar != ''">
|
|
<if test="doubleFlashingCar != null and doubleFlashingCar != ''">
|
|
- and double_flashing_car in
|
|
|
|
|
|
+ and double_flashing_car in
|
|
<foreach collection="doubleFlashingCar" item="item" index="index"
|
|
<foreach collection="doubleFlashingCar" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="selfBehavior != null and selfBehavior != ''">
|
|
<if test="selfBehavior != null and selfBehavior != ''">
|
|
- and self_behavior in
|
|
|
|
|
|
+ and self_behavior in
|
|
<foreach collection="selfBehavior" item="item" index="index"
|
|
<foreach collection="selfBehavior" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="targetBehavior != null and targetBehavior != ''">
|
|
<if test="targetBehavior != null and targetBehavior != ''">
|
|
- and target_behavior in
|
|
|
|
|
|
+ and target_behavior in
|
|
<foreach collection="targetBehavior" item="item" index="index"
|
|
<foreach collection="targetBehavior" item="item" index="index"
|
|
separator="," open="(" close=")">
|
|
separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
- order by create_time desc
|
|
|
|
|
|
+ <if test="ids != null and ids.length>0">
|
|
|
|
+ and natural_id in
|
|
|
|
+ <foreach collection="ids" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ order by modify_time desc
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <update id="deleteSceneNatural" parameterType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
|
|
+ update simulation.scene_natural
|
|
|
|
+ <set>
|
|
|
|
+ <if test="isDeleted != null and isDeleted!=''">
|
|
|
|
+ is_deleted = #{isDeleted,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="modifyUserId != null and modifyUserId!=''">
|
|
|
|
+ modify_user_id = #{modifyUserId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="modifyTime != null">
|
|
|
|
+ modify_time = #{modifyTime},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where natural_id = #{naturalId,jdbcType=VARCHAR}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <select id="querySceneNaturaByName" parameterType="api.common.pojo.param.scene.SceneNaturalParam"
|
|
|
|
+ resultType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
|
|
+ select
|
|
|
|
+ natural_id,natural_name
|
|
|
|
+ from simulation.scene_natural
|
|
|
|
+ <where>
|
|
|
|
+ is_deleted = '0'
|
|
|
|
+ <if test="naturalName != null and naturalName != ''">
|
|
|
|
+ and natural_name =#{naturalName,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|