liusuyi
2025-03-22 b3245b2608e7f4dadc24e26ecf43107dae1c33ee
ard-work/src/main/resources/mapper/UavBoxMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ard.tianyu.mapper.UavBoxMapper">
    
    <resultMap type="UavBox" id="UavBoxResult">
    <resultMap type="UavBoxEntity" id="UavBoxResult">
        <result property="id"    column="id"    />
        <result property="boxSn"    column="box_sn"    />
        <result property="boxName"    column="box_name"    />
@@ -24,7 +24,7 @@
        select id, box_sn, box_name, box_version, onLine, last_task_id, user_id, dept_id, create_by, create_time, update_by, update_time, remark from uav_box
    </sql>
    <select id="selectUavBoxList" parameterType="UavBox" resultMap="UavBoxResult">
    <select id="selectUavBoxList" parameterType="UavBoxEntity" resultMap="UavBoxResult">
        <include refid="selectUavBoxVo"/>
        <where>  
            <if test="boxSn != null  and boxSn != ''"> and box_sn = #{boxSn}</if>
@@ -42,7 +42,7 @@
        where id = #{id}
    </select>
    <insert id="insertUavBox" parameterType="UavBox">
    <insert id="insertUavBox" parameterType="UavBoxEntity">
        insert into uav_box
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">id,</if>
@@ -76,7 +76,7 @@
         </trim>
    </insert>
    <update id="updateUavBox" parameterType="UavBox">
    <update id="updateUavBox" parameterType="UavBoxEntity">
        update uav_box
        <trim prefix="SET" suffixOverrides=",">
            <if test="boxSn != null">box_sn = #{boxSn},</if>