| File was renamed from ard-route/src/main/resources/mapper/ArdRouteInforMapper.xml |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ard.route.mapper.ArdRouteInforMapper"> |
| | | <mapper namespace="com.ard.route.mapper.ArdRouteInfoMapper"> |
| | | |
| | | <resultMap type="ArdRouteInfor" id="ArdRouteInforResult"> |
| | | <resultMap type="ArdRouteInfo" id="ArdRouteInfoResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="kmzName" column="kmz_name" /> |
| | | <result property="name" column="name" /> |
| | | <result property="upPath" column="up_path" /> |
| | | <result property="groupingId" column="grouping_id" /> |
| | | <result property="type" column="type" /> |
| | | <result property="aircraft" column="aircraft" /> |
| | | <result property="payload" column="payload" /> |
| | | <result property="routeData" column="route_data" /> |
| | | <result property="isImport" column="is_import" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdRouteInforVo"> |
| | | <sql id="selectArdRouteInfoVo"> |
| | | select id, |
| | | kmz_name, |
| | | name, |
| | | up_path, |
| | | grouping_id, |
| | | type, |
| | | aircraft, |
| | | payload, |
| | | route_data, |
| | | is_import, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | |
| | | from ard_route_infor |
| | | </sql> |
| | | |
| | | <select id="selectArdRouteInforList" parameterType="ArdRouteInfor" resultMap="ArdRouteInforResult"> |
| | | <include refid="selectArdRouteInforVo"/> |
| | | <select id="selectArdRouteInfoList" parameterType="ArdRouteInfo" resultMap="ArdRouteInfoResult"> |
| | | <include refid="selectArdRouteInfoVo"/> |
| | | <where> |
| | | <if test="kmzName != null and kmzName != ''"> and kmz_name like concat('%', #{kmzName}, '%')</if> |
| | | <if test="name != null and kmzName != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="aircraft != null and aircraft != ''"> and aircraft = #{aircraft}</if> |
| | | <if test="payload != null and payload != ''"> and payload = #{payload}</if> |
| | | <if test="type != null and type != ''"> and type = #{type}</if> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdRouteInforById" parameterType="String" resultMap="ArdRouteInforResult"> |
| | | <include refid="selectArdRouteInforVo"/> |
| | | <select id="selectArdRouteInfoById" parameterType="String" resultMap="ArdRouteInfoResult"> |
| | | <include refid="selectArdRouteInfoVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdRouteInfor" parameterType="ArdRouteInfor"> |
| | | <insert id="insertArdRouteInfo" parameterType="ArdRouteInfo"> |
| | | insert into ard_route_infor |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="kmzName != null">kmz_name,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="upPath != null">up_path,</if> |
| | | <if test="groupingId != null">grouping_id,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="aircraft != null">aircraft,</if> |
| | | <if test="payload != null">payload,</if> |
| | | <if test="routeData != null">route_data,</if> |
| | | <if test="isImport != null">is_import,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="kmzName != null">#{kmzName},</if> |
| | | <if test="name != null">#{name},</if> |
| | | <if test="upPath != null">#{upPath},</if> |
| | | <if test="groupingId != null">#{groupingId},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="aircraft != null">#{aircraft},</if> |
| | | <if test="payload != null">#{payload},</if> |
| | | <if test="routeData != null">#{routeData},</if> |
| | | <if test="isImport != null">#{isImport},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdRouteInfor" parameterType="ArdRouteInfor"> |
| | | <update id="updateArdRouteInfo" parameterType="ArdRouteInfo"> |
| | | update ard_route_infor |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="kmzName != null">kmz_name = #{kmzName},</if> |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="upPath != null">up_path = #{upPath},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="aircraft != null">aircraft = #{aircraft},</if> |
| | | <if test="payload != null">payload = #{payload},</if> |
| | | <if test="routeData != null">route_data = #{routeData},</if> |
| | | <if test="isImport != null">is_import = #{isImport},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteArdRouteInforById" parameterType="String"> |
| | | <delete id="deleteArdRouteInfoById" parameterType="String"> |
| | | delete from ard_route_infor where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdRouteInforByIds" parameterType="String"> |
| | | <delete id="deleteArdRouteInfoByIds" parameterType="String"> |
| | | delete from ard_route_infor where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectArdRouteInforByName" parameterType="String" resultMap="ArdRouteInforResult"> |
| | | <include refid="selectArdRouteInforVo"/> |
| | | <select id="selectArdRouteInfoByName" parameterType="String" resultMap="ArdRouteInfoResult"> |
| | | <include refid="selectArdRouteInfoVo"/> |
| | | where file_name = #{fileName} |
| | | </select> |
| | | |
| | |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectArdRouteInforByGroupingId" parameterType="String" resultMap="ArdRouteInforResult"> |
| | | select id,kmz_name,up_path,grouping_id,type,aircraft,payload,create_by,create_time,update_by,update_time from ard_route_infor |
| | | <select id="selectArdRouteInfoByGroupingId" parameterType="String" resultMap="ArdRouteInfoResult"> |
| | | select id,name,up_path,grouping_id,type,aircraft,payload,is_import,create_by,create_time,update_by,update_time from ard_route_infor |
| | | <where> |
| | | <if test="groupingId != null "> and grouping_id = #{groupingId}</if> |
| | | </where> |