| | |
| | | from ard_drone_info |
| | | </sql> |
| | | |
| | | <select id="selectArdDroneManagementList" parameterType="ArdDroneManagement" resultMap="ArdDroneManagementResult"> |
| | | <select id="selectArdDroneManagementList" parameterType="ArdDroneInfo" resultMap="ArdDroneManagementResult"> |
| | | <include refid="selectArdDroneManagementVo"/> |
| | | <where> |
| | | <if test="deviceModel != null and deviceModel != ''"> and device_model = #{deviceModel}</if> |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdDroneManagement" parameterType="ArdDroneManagement"> |
| | | <insert id="insertArdDroneManagement" parameterType="ArdDroneInfo"> |
| | | insert into ard_drone_info |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdDroneManagement" parameterType="ArdDroneManagement"> |
| | | <update id="updateArdDroneManagement" parameterType="ArdDroneInfo"> |
| | | update ard_drone_info |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="deviceModel != null">device_model = #{deviceModel},</if> |