| | |
| | | <result property="id" column="id" /> |
| | | <result property="name" column="name" /> |
| | | <result property="upPath" column="up_path" /> |
| | | <result property="groupingId" column="grouping_id" /> |
| | | <result property="GroupId" column="grouping_id" /> |
| | | <result property="type" column="type" /> |
| | | <result property="aircraft" column="aircraft" /> |
| | | <result property="payload" column="payload" /> |
| | |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | from ard_route_infor |
| | | from ard_route_info |
| | | </sql> |
| | | |
| | | <select id="selectArdRouteInfoList" parameterType="ArdRouteInfo" resultMap="ArdRouteInfoResult"> |
| | |
| | | </select> |
| | | |
| | | <insert id="insertArdRouteInfo" parameterType="ArdRouteInfo"> |
| | | insert into ard_route_infor |
| | | insert into ard_route_info |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="upPath != null">up_path,</if> |
| | | <if test="groupingId != null">grouping_id,</if> |
| | | <if test="GroupId != null">grouping_id,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="aircraft != null">aircraft,</if> |
| | | <if test="payload != null">payload,</if> |
| | |
| | | <if test="id != null">#{id},</if> |
| | | <if test="name != null">#{name},</if> |
| | | <if test="upPath != null">#{upPath},</if> |
| | | <if test="groupingId != null">#{groupingId},</if> |
| | | <if test="GroupId != null">#{GroupId},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="aircraft != null">#{aircraft},</if> |
| | | <if test="payload != null">#{payload},</if> |
| | |
| | | </insert> |
| | | |
| | | <update id="updateArdRouteInfo" parameterType="ArdRouteInfo"> |
| | | update ard_route_infor |
| | | update ard_route_info |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="upPath != null">up_path = #{upPath},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteArdRouteInfoById" parameterType="String"> |
| | | delete from ard_route_infor where id = #{id} |
| | | delete from ard_route_info where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdRouteInfoByIds" parameterType="String"> |
| | | delete from ard_route_infor where id in |
| | | delete from ard_route_info where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | |
| | | where file_name = #{fileName} |
| | | </select> |
| | | |
| | | <delete id="deleteRouteInforByGroupingIds" parameterType="String"> |
| | | delete from ard_route_infor where grouping_id in |
| | | <delete id="deleteRouteInforByGroupIds" parameterType="String"> |
| | | delete from ard_route_info where grouping_id in |
| | | <foreach item="groupingIId" collection="array" open="(" separator="," close=")"> |
| | | #{groupingIId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <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 |
| | | <select id="selectArdRouteInfoByGroupId" 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_info |
| | | <where> |
| | | <if test="groupingId != null "> and grouping_id = #{groupingId}</if> |
| | | <if test="GroupId != null "> and grouping_id = #{GroupId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <update id="updateRouteInforGroupingId"> |
| | | update ard_route_infor |
| | | <update id="updateRouteInforGroupId"> |
| | | update ard_route_info |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="groupingId != null">grouping_id = #{groupingId},</if> |
| | | <if test="GroupId != null">grouping_id = #{GroupId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |