|
@@ -0,0 +1,303 @@
|
|
|
|
+<?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" >
|
|
|
|
+<mapper namespace="com.css.simulation.resource.scene.mapper.SceneNaturalMapper" >
|
|
|
|
+
|
|
|
|
+ <insert id="saveSceneNatural" parameterType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
|
|
+ insert into simulation.scene_natural
|
|
|
|
+ (natural_id,natural_name,weather,backlight,
|
|
|
|
+ light_change,road_type,road_matrrial,driveway_num,
|
|
|
|
+ driveway_type,road_flatness,road_curvature,ramp,
|
|
|
|
+ intersection_type,plane_intersection,bridge,tunnel,
|
|
|
|
+ speed_limit,min_speed_limit,no_entry,no_stopping,
|
|
|
|
+ left_lane_line,right_lane_line,conductor_marking,pedestrian_crossing,
|
|
|
|
+ traffic_light,deceleration_marking,pavement_condition,natural_disaster,
|
|
|
|
+ road_safety_signs,safety_warning_board,traffic_accident,patency,
|
|
|
|
+ special_vehicle_yield,violation,double_flashing_car,self_behavior,
|
|
|
|
+ target_behavior,create_user_id,create_time,modify_user_id,modify_time,
|
|
|
|
+ is_deleted,share,video_address,osgb_address,xodr_address,xosc_address,
|
|
|
|
+ json_address)
|
|
|
|
+ values (#{naturalId,jdbcType=VARCHAR},#{naturalName,jdbcType=VARCHAR},#{weather,jdbcType=VARCHAR}, #{backlight,jdbcType=VARCHAR},
|
|
|
|
+ #{lightChange,jdbcType=VARCHAR}, #{roadType,jdbcType=VARCHAR},#{roadMatrrial,jdbcType=VARCHAR},#{drivewayNum,jdbcType=VARCHAR},
|
|
|
|
+ #{drivewayType,jdbcType=VARCHAR}, #{roadFlatness,jdbcType=VARCHAR},#{roadCurvature,jdbcType=VARCHAR},#{ramp,jdbcType=VARCHAR},
|
|
|
|
+ #{intersectionType,jdbcType=VARCHAR}, #{planeIntersection,jdbcType=VARCHAR},#{bridge,jdbcType=VARCHAR},#{tunnel,jdbcType=VARCHAR},
|
|
|
|
+ #{speedLimit,jdbcType=VARCHAR}, #{minSpeedLimit,jdbcType=VARCHAR},#{noEntry,jdbcType=VARCHAR},#{noStopping,jdbcType=VARCHAR},
|
|
|
|
+ #{leftLaneLine,jdbcType=VARCHAR}, #{rightLaneLine,jdbcType=VARCHAR},#{conductorMarking,jdbcType=VARCHAR},#{pedestrianCrossing,jdbcType=VARCHAR},
|
|
|
|
+ #{trafficLight,jdbcType=VARCHAR}, #{decelerationMarking,jdbcType=VARCHAR},#{pavementCondition,jdbcType=VARCHAR},#{naturalDisaster,jdbcType=VARCHAR},
|
|
|
|
+ #{roadSafetySigns,jdbcType=VARCHAR}, #{safetyWarningBoard,jdbcType=VARCHAR},#{trafficAccident,jdbcType=VARCHAR},#{patency,jdbcType=VARCHAR},
|
|
|
|
+ #{specialVehicleYield,jdbcType=VARCHAR}, #{violation,jdbcType=VARCHAR},#{doubleFlashingCar,jdbcType=VARCHAR},#{selfBehavior,jdbcType=VARCHAR},
|
|
|
|
+
|
|
|
|
+ #{targetBehavior,jdbcType=VARCHAR}, #{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
|
|
|
|
+
|
|
|
|
+ #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR},#{videoAddress,jdbcType=VARCHAR},#{osgbAddress,jdbcType=VARCHAR},
|
|
|
|
+ #{xodrAddress,jdbcType=VARCHAR}, #{xoscAddress,jdbcType=VARCHAR},#{jsonAddress,jdbcType=VARCHAR})
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <select id="querySceneNaturalList" parameterType="api.common.pojo.param.scene.SceneNaturalParam" resultType="api.common.pojo.po.scene.SceneNaturalPO">
|
|
|
|
+ select
|
|
|
|
+ natural_id,natural_name,weather,backlight,light_change,road_type,
|
|
|
|
+ road_matrrial,driveway_num,driveway_type,road_flatness,road_curvature,
|
|
|
|
+ ramp,intersection_type,plane_intersection,bridge,tunnel,speed_limit,
|
|
|
|
+ min_speed_limit,no_entry,no_stopping,left_lane_line,right_lane_line,
|
|
|
|
+ conductor_marking,pedestrian_crossing,traffic_light,deceleration_marking,
|
|
|
|
+ pavement_condition,natural_disaster,road_safety_signs,safety_warning_board,
|
|
|
|
+ traffic_accident,patency,special_vehicle_yield,violation,double_flashing_car,
|
|
|
|
+ self_behavior,target_behavior,create_user_id,create_time,modify_user_id,
|
|
|
|
+ modify_time,is_deleted,share,video_address,osgb_address,
|
|
|
|
+ xodr_address,xosc_address,json_address
|
|
|
|
+ from simulation.scene_natural
|
|
|
|
+ <where>
|
|
|
|
+ is_deleted = '0'
|
|
|
|
+ <if test="naturalName != null and naturalName != ''">
|
|
|
|
+ and natural_name like CONCAT('%',#{naturalName,jdbcType=VARCHAR},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="weather != null and weather != ''">
|
|
|
|
+ and weather in
|
|
|
|
+ <foreach collection="weather" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="backlight != null and backlight != ''">
|
|
|
|
+ and backlight in
|
|
|
|
+ <foreach collection="backlight" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lightChange != null and lightChange != ''">
|
|
|
|
+ and light_change in
|
|
|
|
+ <foreach collection="lightChange" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="roadType != null and roadType != ''">
|
|
|
|
+ and road_type in
|
|
|
|
+ <foreach collection="roadType" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="roadMatrrial != null and roadMatrrial != ''">
|
|
|
|
+ and road_matrrial in
|
|
|
|
+ <foreach collection="roadMatrrial" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="drivewayNum != null and drivewayNum != ''">
|
|
|
|
+ and driveway_num in
|
|
|
|
+ <foreach collection="drivewayNum" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="drivewayType != null and drivewayType != ''">
|
|
|
|
+ and driveway_type in
|
|
|
|
+ <foreach collection="drivewayType" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="roadFlatness != null and roadFlatness != ''">
|
|
|
|
+ and road_flatness in
|
|
|
|
+ <foreach collection="roadFlatness" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="roadCurvature != null and roadCurvature != ''">
|
|
|
|
+ and road_curvature in
|
|
|
|
+ <foreach collection="roadCurvature" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="ramp != null and ramp != ''">
|
|
|
|
+ and ramp in
|
|
|
|
+ <foreach collection="ramp" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="intersectionType != null and intersectionType != ''">
|
|
|
|
+ and intersection_type in
|
|
|
|
+ <foreach collection="intersectionType" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="planeIntersection != null and planeIntersection != ''">
|
|
|
|
+ and plane_intersection in
|
|
|
|
+ <foreach collection="planeIntersection" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="bridge != null and bridge != ''">
|
|
|
|
+ and bridge in
|
|
|
|
+ <foreach collection="bridge" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tunnel != null and tunnel != ''">
|
|
|
|
+ and tunnel in
|
|
|
|
+ <foreach collection="tunnel" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="speedLimit != null and speedLimit != ''">
|
|
|
|
+ and speed_limit in
|
|
|
|
+ <foreach collection="speedLimit" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="minSpeedLimit != null and minSpeedLimit != ''">
|
|
|
|
+ and min_speed_limit in
|
|
|
|
+ <foreach collection="minSpeedLimit" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="noEntry != null and noEntry != ''">
|
|
|
|
+ and no_entry in
|
|
|
|
+ <foreach collection="noEntry" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="noStopping != null and noStopping != ''">
|
|
|
|
+ and no_stopping in
|
|
|
|
+ <foreach collection="noStopping" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="leftLaneLine != null and leftLaneLine != ''">
|
|
|
|
+ and left_lane_line in
|
|
|
|
+ <foreach collection="leftLaneLine" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rightLaneLine != null and rightLaneLine != ''">
|
|
|
|
+ and right_lane_line in
|
|
|
|
+ <foreach collection="rightLaneLine" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="conductorMarking != null and conductorMarking != ''">
|
|
|
|
+ and conductor_marking in
|
|
|
|
+ <foreach collection="conductorMarking" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="pedestrianCrossing != null and pedestrianCrossing != ''">
|
|
|
|
+ and pedestrian_crossing in
|
|
|
|
+ <foreach collection="pedestrianCrossing" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trafficLight != null and trafficLight != ''">
|
|
|
|
+ and traffic_light in
|
|
|
|
+ <foreach collection="trafficLight" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="decelerationMarking != null and decelerationMarking != ''">
|
|
|
|
+ and deceleration_marking in
|
|
|
|
+ <foreach collection="decelerationMarking" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="pavementCondition != null and pavementCondition != ''">
|
|
|
|
+ and pavement_condition in
|
|
|
|
+ <foreach collection="pavementCondition" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="naturalDisaster != null and naturalDisaster != ''">
|
|
|
|
+ and natural_disaster in
|
|
|
|
+ <foreach collection="naturalDisaster" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="roadSafetySigns != null and roadSafetySigns != ''">
|
|
|
|
+ and road_safety_signs in
|
|
|
|
+ <foreach collection="roadSafetySigns" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="safetyWarningBoard != null and safetyWarningBoard != ''">
|
|
|
|
+ and safety_warning_board in
|
|
|
|
+ <foreach collection="safetyWarningBoard" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trafficAccident != null and trafficAccident != ''">
|
|
|
|
+ and traffic_accident in
|
|
|
|
+ <foreach collection="trafficAccident" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="patency != null and patency != ''">
|
|
|
|
+ and patency in
|
|
|
|
+ <foreach collection="patency" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialVehicleYield != null and specialVehicleYield != ''">
|
|
|
|
+ and special_vehicle_yield in
|
|
|
|
+ <foreach collection="specialVehicleYield" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="violation != null and violation != ''">
|
|
|
|
+ and violation in
|
|
|
|
+ <foreach collection="violation" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="doubleFlashingCar != null and doubleFlashingCar != ''">
|
|
|
|
+ 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
|
|
|
|
+ <foreach collection="selfBehavior" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="targetBehavior != null and targetBehavior != ''">
|
|
|
|
+ and target_behavior in
|
|
|
|
+ <foreach collection="targetBehavior" item="item" index="index"
|
|
|
|
+ separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ order by create_time desc
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+</mapper>
|