1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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.StandardsRegulationsMapper" >
- <insert id="saveStandardsRegulations" parameterType="api.common.pojo.po.scene.StandardsRegulationsPO">
- insert into simulation.scene_standards_regulations
- (regulations_id,scene_name,regulation_type,standard_type,
- create_user_id,create_time,modify_user_id,modify_time,
- is_deleted,share,video_address,osgb_address,xml_address,xodr_address,
- json_address)
- values (#{regulationsId,jdbcType=VARCHAR},#{sceneName,jdbcType=VARCHAR},#{regulationType,jdbcType=VARCHAR}, #{standardType,jdbcType=VARCHAR},
- #{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
- #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR},#{videoAddress,jdbcType=VARCHAR},#{osgbAddress,jdbcType=VARCHAR},
- #{xmlAddress,jdbcType=VARCHAR}, #{xodrAddress,jdbcType=VARCHAR},#{jsonAddress,jdbcType=VARCHAR})
- </insert>
- <select id="queryStandardsRegulationsList" parameterType="api.common.pojo.param.scene.StandardsRegulationsParam" resultType="api.common.pojo.po.scene.StandardsRegulationsPO">
- select
- regulations_id,scene_name,regulation_type,standard_type,
- create_user_id,create_time,modify_user_id,
- modify_time,is_deleted,share,video_address,osgb_address,
- xml_address,xodr_address,json_address
- from simulation.scene_standards_regulations
- <where>
- is_deleted = '0'
- <if test="sceneName != null and sceneName != ''">
- and scene_name like CONCAT('%',#{sceneName,jdbcType=VARCHAR},'%')
- </if>
- <if test="regulationType != null and regulationType != ''">
- and regulation_type in
- <foreach collection="regulationType" item="item" index="index"
- separator="," open="(" close=")">
- #{item}
- </foreach>
- </if>
- <if test="standardType != null and standardType != ''">
- and standard_type like CONCAT('%',#{standardType,jdbcType=VARCHAR},'%')
- </if>
- order by create_time desc
- </where>
- </select>
- </mapper>
|