1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740 |
- <?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_preview, video_address, osgb_address, xodr_address, xosc_address,
- json_address, max_time)
- 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}, #{videoPreview,jdbcType=VARCHAR},
- #{videoAddress,jdbcType=VARCHAR}, #{osgbAddress,jdbcType=VARCHAR},
- #{xodrAddress,jdbcType=VARCHAR}, #{xoscAddress,jdbcType=VARCHAR}, #{jsonAddress,jdbcType=VARCHAR},
- #{maxTime,jdbcType=VARCHAR})
- </insert>
- <insert id="saveSceneNaturalList" parameterType="java.lang.String">
- 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_preview,video_address,osgb_address,xodr_address,xosc_address,
- json_address,max_time)
- values
- <foreach collection="list" index="index" item="item" separator=",">
- (#{item.naturalId,jdbcType=VARCHAR},#{item.naturalName,jdbcType=VARCHAR},#{item.weather,jdbcType=VARCHAR},
- #{item.backlight,jdbcType=VARCHAR},
- #{item.lightChange,jdbcType=VARCHAR},
- #{item.roadType,jdbcType=VARCHAR},#{item.roadMatrrial,jdbcType=VARCHAR},#{item.drivewayNum,jdbcType=VARCHAR},
- #{item.drivewayType,jdbcType=VARCHAR},
- #{item.roadFlatness,jdbcType=VARCHAR},#{item.roadCurvature,jdbcType=VARCHAR},#{item.ramp,jdbcType=VARCHAR},
- #{item.intersectionType,jdbcType=VARCHAR},
- #{item.planeIntersection,jdbcType=VARCHAR},#{item.bridge,jdbcType=VARCHAR},#{item.tunnel,jdbcType=VARCHAR},
- #{item.speedLimit,jdbcType=VARCHAR},
- #{item.minSpeedLimit,jdbcType=VARCHAR},#{item.noEntry,jdbcType=VARCHAR},#{item.noStopping,jdbcType=VARCHAR},
- #{item.leftLaneLine,jdbcType=VARCHAR},
- #{item.rightLaneLine,jdbcType=VARCHAR},#{item.conductorMarking,jdbcType=VARCHAR},#{item.pedestrianCrossing,jdbcType=VARCHAR},
- #{item.trafficLight,jdbcType=VARCHAR},
- #{item.decelerationMarking,jdbcType=VARCHAR},#{item.pavementCondition,jdbcType=VARCHAR},#{item.naturalDisaster,jdbcType=VARCHAR},
- #{item.roadSafetySigns,jdbcType=VARCHAR},
- #{item.safetyWarningBoard,jdbcType=VARCHAR},#{item.trafficAccident,jdbcType=VARCHAR},#{item.patency,jdbcType=VARCHAR},
- #{item.specialVehicleYield,jdbcType=VARCHAR},
- #{item.violation,jdbcType=VARCHAR},#{item.doubleFlashingCar,jdbcType=VARCHAR},#{item.selfBehavior,jdbcType=VARCHAR},
- #{item.targetBehavior,jdbcType=VARCHAR},
- #{item.createUserId,jdbcType=VARCHAR},#{item.createTime},#{item.modifyUserId,jdbcType=VARCHAR},#{item.modifyTime},
- #{item.isDeleted,jdbcType=VARCHAR},
- #{item.share,jdbcType=VARCHAR},#{item.videoPreview,jdbcType=VARCHAR},#{item.videoAddress,jdbcType=VARCHAR},#{item.osgbAddress,jdbcType=VARCHAR},
- #{item.xodrAddress,jdbcType=VARCHAR},
- #{item.xoscAddress,jdbcType=VARCHAR},#{item.jsonAddress,jdbcType=VARCHAR},#{item.maxTime,jdbcType=VARCHAR})
- </foreach>
- </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,video_preview,max_time
- 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.size()>0 ">
- and weather in
- <foreach collection="weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.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.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.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.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.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.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.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.size()>0">
- and ramp in
- <foreach collection="ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.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.size()>0">
- and bridge in
- <foreach collection="bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.size()>0">
- and patency in
- <foreach collection="patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.size()>0">
- and violation in
- <foreach collection="violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.size()>0">
- and
- <foreach collection="selfBehavior" item="item" index="index"
- 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.size()>0">
- and
- <foreach collection="targetBehavior" item="item" index="index"
- 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
- <foreach collection="ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="allSceneNames != null and allSceneNames.length>0">
- and natural_name in
- <foreach collection="allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="AllIds != null and AllIds.size()>0">
- and natural_id in
- <foreach collection="AllIds" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="share != null and share==0">
- and share =#{share}
- </if>
- <if test="share != null and share!= '' and share!=0">
- and share !='0'
- </if>
- <if test="userId != null and userId != ''">
- and create_user_id =#{userId}
- </if>
- order by create_time,natural_name desc
- </where>
- </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.po.scene.SceneNaturalPO"
- 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_preview,video_address,osgb_address,xodr_address,xosc_address,
- json_address,max_time
- from simulation.scene_natural
- <where>
- is_deleted = '0'
- <if test="naturalName != null and naturalName!=''">
- and natural_name =#{naturalName}
- </if>
- <if test="share != null and share==0">
- and share =#{share}
- </if>
- <if test="share != null and share!= '' and share!=0">
- and share !='0'
- </if>
- </where>
- </select>
- <select id="querySceneNumBySy" parameterType="api.common.pojo.param.scene.SceneNaturalParam"
- resultType="java.lang.Integer">
- select SUM(num) from(
- select COUNT(1) AS num from simulation.scene_natural
- <where>is_deleted = '0' and share='0'
- <if test="createUserId != null and createUserId!=''">
- and create_user_id =#{createUserId}
- </if>
- </where>
- union all
- select COUNT(1) AS num from simulation.scene_accident
- <where>is_deleted = '0' and share='0'
- <if test="createUserId != null and createUserId!=''">
- and create_user_id =#{createUserId}
- </if>
- </where>
- union all
- select COUNT(1) AS num from simulation.scene_standards_regulations
- <where>is_deleted = '0' and share='0'
- <if test="createUserId != null and createUserId!=''">
- and create_user_id =#{createUserId}
- </if>
- </where>
- union all
- select COUNT(1) AS num from simulation.scene_general_template
- <where>is_deleted = '0' and share='0'
- <if test="createUserId != null and createUserId!=''">
- and create_user_id =#{createUserId}
- </if>
- </where>
- ) a
- </select>
- <select id="querySceneNaturalListByBqAndXlk" 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,video_preview,max_time
- from (
- 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,video_preview,max_time
- from simulation.scene_natural
- <where>
- <if test="po.naturalName != null and po.naturalName != ''">
- natural_name like CONCAT('%',#{po.naturalName,jdbcType=VARCHAR},'%')
- </if>
- <if test="po.weather != null and po.weather.size()>0 ">
- and weather in
- <foreach collection="po.weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.backlight != null and po.backlight.size()>0">
- and backlight in
- <foreach collection="po.backlight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.lightChange != null and po.lightChange.size()>0">
- and light_change in
- <foreach collection="po.lightChange" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadType != null and po.roadType.size()>0">
- and road_type in
- <foreach collection="po.roadType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadMatrrial != null and po.roadMatrrial.size()>0">
- and road_matrrial in
- <foreach collection="po.roadMatrrial" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.drivewayNum != null and po.drivewayNum.size()>0">
- and driveway_num in
- <foreach collection="po.drivewayNum" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.drivewayType != null and po.drivewayType.size()>0">
- and driveway_type in
- <foreach collection="po.drivewayType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadFlatness != null and po.roadFlatness.size()>0">
- and road_flatness in
- <foreach collection="po.roadFlatness" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadCurvature != null and po.roadCurvature.size()>0">
- and road_curvature in
- <foreach collection="po.roadCurvature" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.ramp != null and po.ramp.size()>0">
- and ramp in
- <foreach collection="po.ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.intersectionType != null and po.intersectionType.size()>0">
- and intersection_type in
- <foreach collection="po.intersectionType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.planeIntersection != null and po.planeIntersection.size()>0">
- and plane_intersection in
- <foreach collection="po.planeIntersection" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.bridge != null and po.bridge.size()>0">
- and bridge in
- <foreach collection="po.bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.tunnel != null and po.tunnel.size()>0">
- and tunnel in
- <foreach collection="po.tunnel" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.speedLimit != null and po.speedLimit.size()>0">
- and speed_limit in
- <foreach collection="po.speedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.minSpeedLimit != null and po.minSpeedLimit.size()>0">
- and min_speed_limit in
- <foreach collection="po.minSpeedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.noEntry != null and po.noEntry.size()>0">
- and no_entry in
- <foreach collection="po.noEntry" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.noStopping != null and po.noStopping.size()>0">
- and no_stopping in
- <foreach collection="po.noStopping" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.leftLaneLine != null and po.leftLaneLine.size()>0">
- and left_lane_line in
- <foreach collection="po.leftLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.rightLaneLine != null and po.rightLaneLine.size()>0">
- and right_lane_line in
- <foreach collection="po.rightLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.conductorMarking != null and po.conductorMarking.size()>0">
- and conductor_marking in
- <foreach collection="po.conductorMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.pedestrianCrossing != null and po.pedestrianCrossing.size()>0">
- and pedestrian_crossing in
- <foreach collection="po.pedestrianCrossing" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.trafficLight != null and po.trafficLight.size()>0">
- and traffic_light in
- <foreach collection="po.trafficLight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.decelerationMarking != null and po.decelerationMarking.size()>0">
- and deceleration_marking in
- <foreach collection="po.decelerationMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.pavementCondition != null and po.pavementCondition.size()>0">
- and pavement_condition in
- <foreach collection="po.pavementCondition" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.naturalDisaster != null and po.naturalDisaster.size()>0">
- and natural_disaster in
- <foreach collection="po.naturalDisaster" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadSafetySigns != null and po.roadSafetySigns.size()>0">
- and road_safety_signs in
- <foreach collection="po.roadSafetySigns" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.safetyWarningBoard != null and po.safetyWarningBoard.size()>0">
- and safety_warning_board in
- <foreach collection="po.safetyWarningBoard" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.trafficAccident != null and po.trafficAccident.size()>0">
- and traffic_accident in
- <foreach collection="po.trafficAccident" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.patency != null and po.patency.size()>0">
- and patency in
- <foreach collection="po.patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.specialVehicleYield != null and po.specialVehicleYield.size()>0">
- and special_vehicle_yield in
- <foreach collection="po.specialVehicleYield" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.violation != null and po.violation.size()>0">
- and violation in
- <foreach collection="po.violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.doubleFlashingCar != null and po.doubleFlashingCar.size()>0">
- and double_flashing_car in
- <foreach collection="po.doubleFlashingCar" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.selfBehavior != null and po.selfBehavior.size()>0">
- and
- <foreach collection="po.selfBehavior" item="item" index="index"
- 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="po.targetBehavior != null and po.targetBehavior.size()>0">
- and
- <foreach collection="po.targetBehavior" item="item" index="index"
- 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="po.ids != null and po.ids.length>0">
- and natural_id in
- <foreach collection="po.ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.allSceneNames != null and po.allSceneNames.length>0">
- and natural_name in
- <foreach collection="po.allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- </where>
- union
- 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,video_preview,max_time
- from simulation.scene_natural
- <where>
- <if test="poBq.naturalName != null and poBq.naturalName != ''">
- or natural_name like CONCAT('%',#{poBq.naturalName,jdbcType=VARCHAR},'%')
- </if>
- <if test="poBq.weather != null and poBq.weather.size()>0 ">
- or weather in
- <foreach collection="poBq.weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.backlight != null and poBq.backlight.size()>0">
- or backlight in
- <foreach collection="poBq.backlight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.lightChange != null and poBq.lightChange.size()>0">
- or light_change in
- <foreach collection="poBq.lightChange" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadType != null and poBq.roadType.size()>0">
- or road_type in
- <foreach collection="poBq.roadType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadMatrrial != null and poBq.roadMatrrial.size()>0">
- or road_matrrial in
- <foreach collection="poBq.roadMatrrial" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayNum != null and poBq.drivewayNum.size()>0">
- or driveway_num in
- <foreach collection="poBq.drivewayNum" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayType != null and poBq.drivewayType.size()>0">
- or driveway_type in
- <foreach collection="poBq.drivewayType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadFlatness != null and poBq.roadFlatness.size()>0">
- or road_flatness in
- <foreach collection="poBq.roadFlatness" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadCurvature != null and poBq.roadCurvature.size()>0">
- or road_curvature in
- <foreach collection="poBq.roadCurvature" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.ramp != null and poBq.ramp.size()>0">
- or ramp in
- <foreach collection="poBq.ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.intersectionType != null and poBq.intersectionType.size()>0">
- or intersection_type in
- <foreach collection="poBq.intersectionType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.planeIntersection != null and poBq.planeIntersection.size()>0">
- or plane_intersection in
- <foreach collection="poBq.planeIntersection" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.bridge != null and poBq.bridge.size()>0">
- or bridge in
- <foreach collection="poBq.bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.tunnel != null and poBq.tunnel.size()>0">
- or tunnel in
- <foreach collection="poBq.tunnel" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.speedLimit != null and poBq.speedLimit.size()>0">
- or speed_limit in
- <foreach collection="poBq.speedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.minSpeedLimit != null and poBq.minSpeedLimit.size()>0">
- or min_speed_limit in
- <foreach collection="poBq.minSpeedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noEntry != null and poBq.noEntry.size()>0">
- or no_entry in
- <foreach collection="poBq.noEntry" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noStopping != null and poBq.noStopping.size()>0">
- or no_stopping in
- <foreach collection="poBq.noStopping" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.leftLaneLine != null and poBq.leftLaneLine.size()>0">
- or left_lane_line in
- <foreach collection="poBq.leftLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.rightLaneLine != null and poBq.rightLaneLine.size()>0">
- or right_lane_line in
- <foreach collection="poBq.rightLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.conductorMarking != null and poBq.conductorMarking.size()>0">
- or conductor_marking in
- <foreach collection="poBq.conductorMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pedestrianCrossing != null and poBq.pedestrianCrossing.size()>0">
- or pedestrian_crossing in
- <foreach collection="poBq.pedestrianCrossing" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficLight != null and poBq.trafficLight.size()>0">
- or traffic_light in
- <foreach collection="poBq.trafficLight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.decelerationMarking != null and poBq.decelerationMarking.size()>0">
- or deceleration_marking in
- <foreach collection="poBq.decelerationMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pavementCondition != null and poBq.pavementCondition.size()>0">
- or pavement_condition in
- <foreach collection="poBq.pavementCondition" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.naturalDisaster != null and poBq.naturalDisaster.size()>0">
- or natural_disaster in
- <foreach collection="poBq.naturalDisaster" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadSafetySigns != null and poBq.roadSafetySigns.size()>0">
- or road_safety_signs in
- <foreach collection="poBq.roadSafetySigns" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.safetyWarningBoard != null and poBq.safetyWarningBoard.size()>0">
- or safety_warning_board in
- <foreach collection="poBq.safetyWarningBoard" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficAccident != null and poBq.trafficAccident.size()>0">
- or traffic_accident in
- <foreach collection="poBq.trafficAccident" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.patency != null and poBq.patency.size()>0">
- or patency in
- <foreach collection="poBq.patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.specialVehicleYield != null and poBq.specialVehicleYield.size()>0">
- or special_vehicle_yield in
- <foreach collection="poBq.specialVehicleYield" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.violation != null and poBq.violation.size()>0">
- or violation in
- <foreach collection="poBq.violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.doubleFlashingCar != null and poBq.doubleFlashingCar.size()>0">
- or double_flashing_car in
- <foreach collection="poBq.doubleFlashingCar" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.selfBehavior != null and poBq.selfBehavior.size()>0">
- or
- <foreach collection="poBq.selfBehavior" item="item" index="index"
- 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="poBq.targetBehavior != null and poBq.targetBehavior.size()>0">
- or
- <foreach collection="poBq.targetBehavior" item="item" index="index"
- 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="poBq.ids != null and poBq.ids.length>0">
- or natural_id in
- <foreach collection="poBq.ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.allSceneNames != null and poBq.allSceneNames.length>0">
- or natural_name in
- <foreach collection="poBq.allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- </where>
- )a where
- a.is_deleted = '0'
- <if test="poBq.AllIds != null and poBq.AllIds.size()>0">
- or a.natural_id in
- <foreach collection="poBq.AllIds" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- order by a.modify_time desc
- </select>
- <select id="querySceneNaturalListByBq" parameterType="java.util.Map"
- 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,video_preview,max_time from (
- 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,video_preview,max_time
- from simulation.scene_natural
- <where>
- <if test="poBq.naturalName != null and poBq.naturalName != ''">
- natural_name like CONCAT('%',#{poBq.naturalName,jdbcType=VARCHAR},'%')
- </if>
- <if test="poBq.weather != null and poBq.weather.size()>0 ">
- or weather in
- <foreach collection="poBq.weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.backlight != null and poBq.backlight.size()>0">
- or backlight in
- <foreach collection="poBq.backlight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.lightChange != null and poBq.lightChange.size()>0">
- or light_change in
- <foreach collection="poBq.lightChange" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadType != null and poBq.roadType.size()>0">
- or road_type in
- <foreach collection="poBq.roadType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadMatrrial != null and poBq.roadMatrrial.size()>0">
- or road_matrrial in
- <foreach collection="poBq.roadMatrrial" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayNum != null and poBq.drivewayNum.size()>0">
- or driveway_num in
- <foreach collection="poBq.drivewayNum" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayType != null and poBq.drivewayType.size()>0">
- or driveway_type in
- <foreach collection="poBq.drivewayType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadFlatness != null and poBq.roadFlatness.size()>0">
- or road_flatness in
- <foreach collection="poBq.roadFlatness" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadCurvature != null and poBq.roadCurvature.size()>0">
- or road_curvature in
- <foreach collection="poBq.roadCurvature" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.ramp != null and poBq.ramp.size()>0">
- or ramp in
- <foreach collection="poBq.ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.intersectionType != null and poBq.intersectionType.size()>0">
- or intersection_type in
- <foreach collection="poBq.intersectionType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.planeIntersection != null and poBq.planeIntersection.size()>0">
- or plane_intersection in
- <foreach collection="poBq.planeIntersection" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.bridge != null and poBq.bridge.size()>0">
- or bridge in
- <foreach collection="poBq.bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.tunnel != null and poBq.tunnel.size()>0">
- or tunnel in
- <foreach collection="poBq.tunnel" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.speedLimit != null and poBq.speedLimit.size()>0">
- or speed_limit in
- <foreach collection="poBq.speedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.minSpeedLimit != null and poBq.minSpeedLimit.size()>0">
- or min_speed_limit in
- <foreach collection="poBq.minSpeedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noEntry != null and poBq.noEntry.size()>0">
- or no_entry in
- <foreach collection="poBq.noEntry" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noStopping != null and poBq.noStopping.size()>0">
- or no_stopping in
- <foreach collection="poBq.noStopping" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.leftLaneLine != null and poBq.leftLaneLine.size()>0">
- or left_lane_line in
- <foreach collection="poBq.leftLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.rightLaneLine != null and poBq.rightLaneLine.size()>0">
- or right_lane_line in
- <foreach collection="poBq.rightLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.conductorMarking != null and poBq.conductorMarking.size()>0">
- or conductor_marking in
- <foreach collection="poBq.conductorMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pedestrianCrossing != null and poBq.pedestrianCrossing.size()>0">
- or pedestrian_crossing in
- <foreach collection="poBq.pedestrianCrossing" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficLight != null and poBq.trafficLight.size()>0">
- or traffic_light in
- <foreach collection="poBq.trafficLight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.decelerationMarking != null and poBq.decelerationMarking.size()>0">
- or deceleration_marking in
- <foreach collection="poBq.decelerationMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pavementCondition != null and poBq.pavementCondition.size()>0">
- or pavement_condition in
- <foreach collection="poBq.pavementCondition" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.naturalDisaster != null and poBq.naturalDisaster.size()>0">
- or natural_disaster in
- <foreach collection="poBq.naturalDisaster" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadSafetySigns != null and poBq.roadSafetySigns.size()>0">
- or road_safety_signs in
- <foreach collection="poBq.roadSafetySigns" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.safetyWarningBoard != null and poBq.safetyWarningBoard.size()>0">
- or safety_warning_board in
- <foreach collection="poBq.safetyWarningBoard" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficAccident != null and poBq.trafficAccident.size()>0">
- or traffic_accident in
- <foreach collection="poBq.trafficAccident" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.patency != null and poBq.patency.size()>0">
- or patency in
- <foreach collection="poBq.patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.specialVehicleYield != null and poBq.specialVehicleYield.size()>0">
- or special_vehicle_yield in
- <foreach collection="poBq.specialVehicleYield" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.violation != null and poBq.violation.size()>0">
- or violation in
- <foreach collection="poBq.violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.doubleFlashingCar != null and poBq.doubleFlashingCar.size()>0">
- or double_flashing_car in
- <foreach collection="poBq.doubleFlashingCar" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.selfBehavior != null and poBq.selfBehavior.size()>0">
- or
- <foreach collection="poBq.selfBehavior" item="item" index="index"
- 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="poBq.targetBehavior != null and poBq.targetBehavior.size()>0">
- or
- <foreach collection="poBq.targetBehavior" item="item" index="index"
- 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="poBq.ids != null and poBq.ids.length>0">
- or natural_id in
- <foreach collection="poBq.ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.allSceneNames != null and poBq.allSceneNames.length>0">
- or natural_name in
- <foreach collection="poBq.allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- ) a
- where
- a.is_deleted = '0'
- <if test="po.AllIds != null and po.AllIds.size()>0">
- and a.natural_id in
- <foreach collection="po.AllIds" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- order by a.modify_time desc
- </where>
- </select>
- <update id="updateSceneNatural" parameterType="api.common.pojo.po.scene.SceneNaturalPO">
- update simulation.scene_natural
- set natural_name=#{naturalName},
- weather=#{weather},
- backlight=#{backlight},
- light_change=#{lightChange},
- road_type=#{roadType},
- road_matrrial=#{roadMatrrial},
- driveway_num=#{drivewayNum},
- driveway_type=#{drivewayType},
- road_flatness=#{roadFlatness},
- road_curvature=#{roadCurvature},
- ramp=#{ramp},
- intersection_type=#{intersectionType},
- plane_intersection=#{planeIntersection},
- bridge=#{bridge},
- tunnel=#{tunnel},
- speed_limit=#{speedLimit},
- min_speed_limit=#{minSpeedLimit},
- no_entry=#{noEntry},
- no_stopping=#{noStopping},
- left_lane_line=#{leftLaneLine},
- right_lane_line=#{rightLaneLine},
- conductor_marking=#{conductorMarking},
- pedestrian_crossing=#{pedestrianCrossing},
- traffic_light=#{trafficLight},
- deceleration_marking=#{decelerationMarking},
- pavement_condition=#{pavementCondition},
- natural_disaster=#{naturalDisaster},
- road_safety_signs=#{roadSafetySigns},
- safety_warning_board=#{safetyWarningBoard},
- traffic_accident=#{trafficAccident},
- patency=#{patency},
- special_vehicle_yield=#{specialVehicleYield},
- violation=#{violation},
- double_flashing_car=#{doubleFlashingCar},
- self_behavior=#{selfBehavior},
- target_behavior=#{targetBehavior},
- modify_user_id=#{modifyUserId},
- modify_time=#{modifyTime},
- video_address=#{videoAddress},
- osgb_address=#{osgbAddress},
- xodr_address=#{xodrAddress},
- xosc_address=#{xoscAddress},
- json_address=#{jsonAddress},
- max_time=#{maxTime}
- where natural_id = #{naturalId,jdbcType=VARCHAR}
- </update>
- <update id="updateSceneNaturalList" parameterType="java.util.List">
- <foreach collection="list" index="index" item="item" separator=";">
- update simulation.scene_natural
- set natural_name=#{item.naturalName},weather=#{item.weather},backlight=#{item.backlight},
- light_change=#{item.lightChange},road_type=#{item.roadType},road_matrrial=#{item.roadMatrrial},
- driveway_num=#{item.drivewayNum},driveway_type=#{item.drivewayType},road_flatness=#{item.roadFlatness},
- road_curvature=#{item.roadCurvature},ramp=#{item.ramp},intersection_type=#{item.intersectionType},
- plane_intersection=#{item.planeIntersection},bridge=#{item.bridge},tunnel=#{item.tunnel},
- speed_limit=#{item.speedLimit},min_speed_limit=#{item.minSpeedLimit},no_entry=#{item.noEntry},
- no_stopping=#{item.noStopping},left_lane_line=#{item.leftLaneLine},right_lane_line=#{item.rightLaneLine},
- conductor_marking=#{item.conductorMarking},pedestrian_crossing=#{item.pedestrianCrossing},traffic_light=#{item.trafficLight},
- deceleration_marking=#{item.decelerationMarking},pavement_condition=#{item.pavementCondition},natural_disaster=#{item.naturalDisaster},
- road_safety_signs=#{item.roadSafetySigns},safety_warning_board=#{item.safetyWarningBoard},traffic_accident=#{item.trafficAccident},
- patency=#{item.patency},special_vehicle_yield=#{item.specialVehicleYield},violation=#{item.violation},
- double_flashing_car=#{item.doubleFlashingCar},self_behavior=#{item.selfBehavior},target_behavior=#{item.targetBehavior},
- modify_user_id=#{item.modifyUserId},modify_time=#{item.modifyTime},video_address=#{item.videoAddress},
- osgb_address=#{item.osgbAddress},xodr_address=#{item.xodrAddress},xosc_address=#{item.xoscAddress},
- json_address=#{item.jsonAddress},max_time=#{item.maxTime}
- where natural_id = #{item.naturalId,jdbcType=VARCHAR}
- </foreach>
- </update>
- <select id="querySceneNaturalListByQx" 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,video_preview,max_time
- from (select zr.* from( select s.scene_name
- FROM system_scene_package p
- JOIN system_user_scene u on p.id = u.package_id and u.is_deleted = '0' and p.is_deleted = '0'
- JOIN system_scene_package_sublist s on p.id = s.scene_and_package
- where scene_type='1' and s.is_deleted = '0' and user_id=#{userId} group by s.scene_name)qx join scene_natural zr
- on qx.scene_name=zr.natural_name
- and zr.share='2' union select jtNew.* from scene_natural jtNew where jtNew.share='1' and is_deleted='0') dd
- <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.size()>0 ">
- and weather in
- <foreach collection="weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.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.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.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.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.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.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.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.size()>0">
- and ramp in
- <foreach collection="ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.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.size()>0">
- and bridge in
- <foreach collection="bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.size()>0">
- and patency in
- <foreach collection="patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.size()>0">
- and violation in
- <foreach collection="violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <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.size()>0">
- and
- <foreach collection="selfBehavior" item="item" index="index"
- 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.size()>0">
- and
- <foreach collection="targetBehavior" item="item" index="index"
- 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
- <foreach collection="ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="allSceneNames != null and allSceneNames.length>0">
- and natural_name in
- <foreach collection="allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="AllIds != null and AllIds.size()>0">
- and natural_id in
- <foreach collection="AllIds" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="share != null and share==0">
- and share =#{share}
- </if>
- <if test="share != null and share!= '' and share!=0">
- and share !='0'
- </if>
- order by create_time,natural_name desc
- </where>
- </select>
- <select id="querySceneNaturalListByBqAndXlkAndQx" 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,video_preview,max_time
- from (
- 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,video_preview,max_time
- from (select zr.* from( select s.scene_name
- FROM system_scene_package p
- JOIN system_user_scene u on p.id = u.package_id and u.is_deleted = '0' and p.is_deleted = '0'
- JOIN system_scene_package_sublist s on p.id = s.scene_and_package
- where scene_type='1' and s.is_deleted = '0' and user_id=#{po.userId} group by s.scene_name)qx join scene_natural
- zr on qx.scene_name=zr.natural_name) dd
- <where>
- <if test="po.naturalName != null and po.naturalName != ''">
- natural_name like CONCAT('%',#{po.naturalName,jdbcType=VARCHAR},'%')
- </if>
- <if test="po.weather != null and po.weather.size()>0 ">
- and weather in
- <foreach collection="po.weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.backlight != null and po.backlight.size()>0">
- and backlight in
- <foreach collection="po.backlight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.lightChange != null and po.lightChange.size()>0">
- and light_change in
- <foreach collection="po.lightChange" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadType != null and po.roadType.size()>0">
- and road_type in
- <foreach collection="po.roadType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadMatrrial != null and po.roadMatrrial.size()>0">
- and road_matrrial in
- <foreach collection="po.roadMatrrial" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.drivewayNum != null and po.drivewayNum.size()>0">
- and driveway_num in
- <foreach collection="po.drivewayNum" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.drivewayType != null and po.drivewayType.size()>0">
- and driveway_type in
- <foreach collection="po.drivewayType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadFlatness != null and po.roadFlatness.size()>0">
- and road_flatness in
- <foreach collection="po.roadFlatness" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadCurvature != null and po.roadCurvature.size()>0">
- and road_curvature in
- <foreach collection="po.roadCurvature" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.ramp != null and po.ramp.size()>0">
- and ramp in
- <foreach collection="po.ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.intersectionType != null and po.intersectionType.size()>0">
- and intersection_type in
- <foreach collection="po.intersectionType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.planeIntersection != null and po.planeIntersection.size()>0">
- and plane_intersection in
- <foreach collection="po.planeIntersection" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.bridge != null and po.bridge.size()>0">
- and bridge in
- <foreach collection="po.bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.tunnel != null and po.tunnel.size()>0">
- and tunnel in
- <foreach collection="po.tunnel" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.speedLimit != null and po.speedLimit.size()>0">
- and speed_limit in
- <foreach collection="po.speedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.minSpeedLimit != null and po.minSpeedLimit.size()>0">
- and min_speed_limit in
- <foreach collection="po.minSpeedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.noEntry != null and po.noEntry.size()>0">
- and no_entry in
- <foreach collection="po.noEntry" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.noStopping != null and po.noStopping.size()>0">
- and no_stopping in
- <foreach collection="po.noStopping" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.leftLaneLine != null and po.leftLaneLine.size()>0">
- and left_lane_line in
- <foreach collection="po.leftLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.rightLaneLine != null and po.rightLaneLine.size()>0">
- and right_lane_line in
- <foreach collection="po.rightLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.conductorMarking != null and po.conductorMarking.size()>0">
- and conductor_marking in
- <foreach collection="po.conductorMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.pedestrianCrossing != null and po.pedestrianCrossing.size()>0">
- and pedestrian_crossing in
- <foreach collection="po.pedestrianCrossing" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.trafficLight != null and po.trafficLight.size()>0">
- and traffic_light in
- <foreach collection="po.trafficLight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.decelerationMarking != null and po.decelerationMarking.size()>0">
- and deceleration_marking in
- <foreach collection="po.decelerationMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.pavementCondition != null and po.pavementCondition.size()>0">
- and pavement_condition in
- <foreach collection="po.pavementCondition" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.naturalDisaster != null and po.naturalDisaster.size()>0">
- and natural_disaster in
- <foreach collection="po.naturalDisaster" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.roadSafetySigns != null and po.roadSafetySigns.size()>0">
- and road_safety_signs in
- <foreach collection="po.roadSafetySigns" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.safetyWarningBoard != null and po.safetyWarningBoard.size()>0">
- and safety_warning_board in
- <foreach collection="po.safetyWarningBoard" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.trafficAccident != null and po.trafficAccident.size()>0">
- and traffic_accident in
- <foreach collection="po.trafficAccident" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.patency != null and po.patency.size()>0">
- and patency in
- <foreach collection="po.patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.specialVehicleYield != null and po.specialVehicleYield.size()>0">
- and special_vehicle_yield in
- <foreach collection="po.specialVehicleYield" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.violation != null and po.violation.size()>0">
- and violation in
- <foreach collection="po.violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.doubleFlashingCar != null and po.doubleFlashingCar.size()>0">
- and double_flashing_car in
- <foreach collection="po.doubleFlashingCar" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.selfBehavior != null and po.selfBehavior.size()>0">
- and
- <foreach collection="po.selfBehavior" item="item" index="index"
- 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="po.targetBehavior != null and po.targetBehavior.size()>0">
- and
- <foreach collection="po.targetBehavior" item="item" index="index"
- 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="po.ids != null and po.ids.length>0">
- and natural_id in
- <foreach collection="po.ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="po.allSceneNames != null and po.allSceneNames.length>0">
- and natural_name in
- <foreach collection="po.allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- </where>
- union
- 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,video_preview,max_time
- from (select zr.* from( select s.scene_name
- FROM system_scene_package p
- JOIN system_user_scene u on p.id = u.package_id and u.is_deleted = '0' and p.is_deleted = '0'
- JOIN system_scene_package_sublist s on p.id = s.scene_and_package
- where scene_type='1' and s.is_deleted = '0' and user_id=#{poBq.userId} group by s.scene_name)qx join
- scene_natural zr on qx.scene_name=zr.natural_name) ee
- <where>
- <if test="poBq.naturalName != null and poBq.naturalName != ''">
- or natural_name like CONCAT('%',#{poBq.naturalName,jdbcType=VARCHAR},'%')
- </if>
- <if test="poBq.weather != null and poBq.weather.size()>0 ">
- or weather in
- <foreach collection="poBq.weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.backlight != null and poBq.backlight.size()>0">
- or backlight in
- <foreach collection="poBq.backlight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.lightChange != null and poBq.lightChange.size()>0">
- or light_change in
- <foreach collection="poBq.lightChange" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadType != null and poBq.roadType.size()>0">
- or road_type in
- <foreach collection="poBq.roadType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadMatrrial != null and poBq.roadMatrrial.size()>0">
- or road_matrrial in
- <foreach collection="poBq.roadMatrrial" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayNum != null and poBq.drivewayNum.size()>0">
- or driveway_num in
- <foreach collection="poBq.drivewayNum" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayType != null and poBq.drivewayType.size()>0">
- or driveway_type in
- <foreach collection="poBq.drivewayType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadFlatness != null and poBq.roadFlatness.size()>0">
- or road_flatness in
- <foreach collection="poBq.roadFlatness" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadCurvature != null and poBq.roadCurvature.size()>0">
- or road_curvature in
- <foreach collection="poBq.roadCurvature" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.ramp != null and poBq.ramp.size()>0">
- or ramp in
- <foreach collection="poBq.ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.intersectionType != null and poBq.intersectionType.size()>0">
- or intersection_type in
- <foreach collection="poBq.intersectionType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.planeIntersection != null and poBq.planeIntersection.size()>0">
- or plane_intersection in
- <foreach collection="poBq.planeIntersection" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.bridge != null and poBq.bridge.size()>0">
- or bridge in
- <foreach collection="poBq.bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.tunnel != null and poBq.tunnel.size()>0">
- or tunnel in
- <foreach collection="poBq.tunnel" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.speedLimit != null and poBq.speedLimit.size()>0">
- or speed_limit in
- <foreach collection="poBq.speedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.minSpeedLimit != null and poBq.minSpeedLimit.size()>0">
- or min_speed_limit in
- <foreach collection="poBq.minSpeedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noEntry != null and poBq.noEntry.size()>0">
- or no_entry in
- <foreach collection="poBq.noEntry" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noStopping != null and poBq.noStopping.size()>0">
- or no_stopping in
- <foreach collection="poBq.noStopping" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.leftLaneLine != null and poBq.leftLaneLine.size()>0">
- or left_lane_line in
- <foreach collection="poBq.leftLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.rightLaneLine != null and poBq.rightLaneLine.size()>0">
- or right_lane_line in
- <foreach collection="poBq.rightLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.conductorMarking != null and poBq.conductorMarking.size()>0">
- or conductor_marking in
- <foreach collection="poBq.conductorMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pedestrianCrossing != null and poBq.pedestrianCrossing.size()>0">
- or pedestrian_crossing in
- <foreach collection="poBq.pedestrianCrossing" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficLight != null and poBq.trafficLight.size()>0">
- or traffic_light in
- <foreach collection="poBq.trafficLight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.decelerationMarking != null and poBq.decelerationMarking.size()>0">
- or deceleration_marking in
- <foreach collection="poBq.decelerationMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pavementCondition != null and poBq.pavementCondition.size()>0">
- or pavement_condition in
- <foreach collection="poBq.pavementCondition" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.naturalDisaster != null and poBq.naturalDisaster.size()>0">
- or natural_disaster in
- <foreach collection="poBq.naturalDisaster" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadSafetySigns != null and poBq.roadSafetySigns.size()>0">
- or road_safety_signs in
- <foreach collection="poBq.roadSafetySigns" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.safetyWarningBoard != null and poBq.safetyWarningBoard.size()>0">
- or safety_warning_board in
- <foreach collection="poBq.safetyWarningBoard" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficAccident != null and poBq.trafficAccident.size()>0">
- or traffic_accident in
- <foreach collection="poBq.trafficAccident" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.patency != null and poBq.patency.size()>0">
- or patency in
- <foreach collection="poBq.patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.specialVehicleYield != null and poBq.specialVehicleYield.size()>0">
- or special_vehicle_yield in
- <foreach collection="poBq.specialVehicleYield" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.violation != null and poBq.violation.size()>0">
- or violation in
- <foreach collection="poBq.violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.doubleFlashingCar != null and poBq.doubleFlashingCar.size()>0">
- or double_flashing_car in
- <foreach collection="poBq.doubleFlashingCar" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.selfBehavior != null and poBq.selfBehavior.size()>0">
- or
- <foreach collection="poBq.selfBehavior" item="item" index="index"
- 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="poBq.targetBehavior != null and poBq.targetBehavior.size()>0">
- or
- <foreach collection="poBq.targetBehavior" item="item" index="index"
- 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="poBq.ids != null and poBq.ids.length>0">
- or natural_id in
- <foreach collection="poBq.ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.allSceneNames != null and poBq.allSceneNames.length>0">
- or natural_name in
- <foreach collection="poBq.allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- </where>
- )a where
- a.is_deleted = '0'
- <if test="poBq.AllIds != null and poBq.AllIds.size()>0">
- and a.natural_id in
- <foreach collection="poBq.AllIds" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- order by a.modify_time desc
- </select>
- <select id="querySceneNaturalListByBqAndQx" parameterType="java.util.Map"
- 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,video_preview,max_time from (
- 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,video_preview,max_time
- from (select zr.* from( select s.scene_name
- FROM system_scene_package p
- JOIN system_user_scene u on p.id = u.package_id and u.is_deleted = '0' and p.is_deleted = '0'
- JOIN system_scene_package_sublist s on p.id = s.scene_and_package
- where scene_type='1' and s.is_deleted = '0' and user_id=#{poBq.userId} group by s.scene_name)qx join
- scene_natural zr on qx.scene_name=zr.natural_name) dd
- <where>
- <if test="poBq.naturalName != null and poBq.naturalName != ''">
- natural_name like CONCAT('%',#{poBq.naturalName,jdbcType=VARCHAR},'%')
- </if>
- <if test="poBq.weather != null and poBq.weather.size()>0 ">
- or weather in
- <foreach collection="poBq.weather" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.backlight != null and poBq.backlight.size()>0">
- or backlight in
- <foreach collection="poBq.backlight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.lightChange != null and poBq.lightChange.size()>0">
- or light_change in
- <foreach collection="poBq.lightChange" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadType != null and poBq.roadType.size()>0">
- or road_type in
- <foreach collection="poBq.roadType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadMatrrial != null and poBq.roadMatrrial.size()>0">
- or road_matrrial in
- <foreach collection="poBq.roadMatrrial" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayNum != null and poBq.drivewayNum.size()>0">
- or driveway_num in
- <foreach collection="poBq.drivewayNum" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.drivewayType != null and poBq.drivewayType.size()>0">
- or driveway_type in
- <foreach collection="poBq.drivewayType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadFlatness != null and poBq.roadFlatness.size()>0">
- or road_flatness in
- <foreach collection="poBq.roadFlatness" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadCurvature != null and poBq.roadCurvature.size()>0">
- or road_curvature in
- <foreach collection="poBq.roadCurvature" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.ramp != null and poBq.ramp.size()>0">
- or ramp in
- <foreach collection="poBq.ramp" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.intersectionType != null and poBq.intersectionType.size()>0">
- or intersection_type in
- <foreach collection="poBq.intersectionType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.planeIntersection != null and poBq.planeIntersection.size()>0">
- or plane_intersection in
- <foreach collection="poBq.planeIntersection" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.bridge != null and poBq.bridge.size()>0">
- or bridge in
- <foreach collection="poBq.bridge" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.tunnel != null and poBq.tunnel.size()>0">
- or tunnel in
- <foreach collection="poBq.tunnel" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.speedLimit != null and poBq.speedLimit.size()>0">
- or speed_limit in
- <foreach collection="poBq.speedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.minSpeedLimit != null and poBq.minSpeedLimit.size()>0">
- or min_speed_limit in
- <foreach collection="poBq.minSpeedLimit" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noEntry != null and poBq.noEntry.size()>0">
- or no_entry in
- <foreach collection="poBq.noEntry" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.noStopping != null and poBq.noStopping.size()>0">
- or no_stopping in
- <foreach collection="poBq.noStopping" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.leftLaneLine != null and poBq.leftLaneLine.size()>0">
- or left_lane_line in
- <foreach collection="poBq.leftLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.rightLaneLine != null and poBq.rightLaneLine.size()>0">
- or right_lane_line in
- <foreach collection="poBq.rightLaneLine" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.conductorMarking != null and poBq.conductorMarking.size()>0">
- or conductor_marking in
- <foreach collection="poBq.conductorMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pedestrianCrossing != null and poBq.pedestrianCrossing.size()>0">
- or pedestrian_crossing in
- <foreach collection="poBq.pedestrianCrossing" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficLight != null and poBq.trafficLight.size()>0">
- or traffic_light in
- <foreach collection="poBq.trafficLight" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.decelerationMarking != null and poBq.decelerationMarking.size()>0">
- or deceleration_marking in
- <foreach collection="poBq.decelerationMarking" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.pavementCondition != null and poBq.pavementCondition.size()>0">
- or pavement_condition in
- <foreach collection="poBq.pavementCondition" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.naturalDisaster != null and poBq.naturalDisaster.size()>0">
- or natural_disaster in
- <foreach collection="poBq.naturalDisaster" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.roadSafetySigns != null and poBq.roadSafetySigns.size()>0">
- or road_safety_signs in
- <foreach collection="poBq.roadSafetySigns" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.safetyWarningBoard != null and poBq.safetyWarningBoard.size()>0">
- or safety_warning_board in
- <foreach collection="poBq.safetyWarningBoard" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.trafficAccident != null and poBq.trafficAccident.size()>0">
- or traffic_accident in
- <foreach collection="poBq.trafficAccident" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.patency != null and poBq.patency.size()>0">
- or patency in
- <foreach collection="poBq.patency" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.specialVehicleYield != null and poBq.specialVehicleYield.size()>0">
- or special_vehicle_yield in
- <foreach collection="poBq.specialVehicleYield" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.violation != null and poBq.violation.size()>0">
- or violation in
- <foreach collection="poBq.violation" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.doubleFlashingCar != null and poBq.doubleFlashingCar.size()>0">
- or double_flashing_car in
- <foreach collection="poBq.doubleFlashingCar" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.selfBehavior != null and poBq.selfBehavior.size()>0">
- or
- <foreach collection="poBq.selfBehavior" item="item" index="index"
- 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="poBq.targetBehavior != null and poBq.targetBehavior.size()>0">
- or
- <foreach collection="poBq.targetBehavior" item="item" index="index"
- 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="poBq.ids != null and poBq.ids.length>0">
- or natural_id in
- <foreach collection="poBq.ids" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="poBq.allSceneNames != null and poBq.allSceneNames.length>0">
- or natural_name in
- <foreach collection="poBq.allSceneNames" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- ) a
- where
- a.is_deleted = '0'
- <if test="po.AllIds != null and po.AllIds.size()>0">
- and a.natural_id in
- <foreach collection="po.AllIds" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- order by a.modify_time desc
- </where>
- </select>
- <select id="querySceneNaturalById" parameterType="java.lang.String"
- 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_preview,
- video_address,
- osgb_address,
- xodr_address,
- xosc_address,
- json_address,
- max_time
- from scene_natural
- where natural_id = #{id}
- </select>
- </mapper>
|