| | |
| | | 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> |
| | |
| | | </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> |
| | |
| | | </select> |
| | | |
| | | <delete id="deleteRouteInforByGroupingIds" parameterType="String"> |
| | | delete from ard_route_infor where grouping_id in |
| | | 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,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> |
| | | </where> |
| | | </select> |
| | | |
| | | <update id="updateRouteInforGroupingId"> |
| | | update ard_route_infor |
| | | update ard_route_info |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="groupingId != null">grouping_id = #{groupingId},</if> |
| | | </trim> |