Xiajijian
2026-02-03 6ffcb1a19bd759b664e565349a7132a2b17fbf72
ard-route/src/main/resources/mapper/ArdRouteMissionMapper.xml
@@ -15,6 +15,8 @@
        <result property="updateTime"    column="update_time"    />
        <result property="executeBy"    column="execute_by"    />
        <result property="executeTime"    column="execute_time"    />
        <result property="taskType"    column="task_type"    />
        <result property="taskDescription"    column="task_description"    />
    </resultMap>
    <sql id="selectArdRouteMissionVo">
@@ -27,7 +29,9 @@
               update_by,
               update_time,
               execute_by,
               execute_time
               execute_time,
               task_type,
               task_description
        from ard_route_mission
    </sql>
@@ -39,14 +43,15 @@
            <if test="executeStatus != null  and executeStatus != ''"> and execute_status = #{executeStatus}</if>
            <if test="executeBy != null  and executeBy != ''"> and execute_by = #{executeBy}</if>
            <if test="executeTime != null "> and execute_time = #{executeTime}</if>
            <if test="taskType != null  and taskType != ''"> and task_type = #{taskType}</if>
        </where>
        order by create_time asc
        order by create_time DESC
    </select>
    
    <select id="selectArdRouteMissionById" parameterType="String" resultMap="ArdRouteMissionResult">
        <include refid="selectArdRouteMissionVo"/>
        where id = #{id}
        order by create_time asc
        order by create_time DESC
    </select>
    <insert id="insertArdRouteMission" parameterType="ArdRouteMission">
@@ -62,6 +67,8 @@
            <if test="updateTime != null">update_time,</if>
            <if test="executeBy != null">execute_by,</if>
            <if test="executeTime != null">execute_time,</if>
            <if test="taskType != null">task_type,</if>
            <if test="taskDescription != null">task_description,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},</if>
@@ -74,6 +81,8 @@
            <if test="updateTime != null">#{updateTime},</if>
            <if test="executeBy != null">#{executeBy},</if>
            <if test="executeTime != null">#{executeTime},</if>
            <if test="taskType != null">#{taskType},</if>
            <if test="taskDescription != null">#{taskDescription},</if>
         </trim>
    </insert>
@@ -89,6 +98,8 @@
            <if test="updateTime != null">update_time = #{updateTime},</if>
            <if test="executeBy != null">execute_by = #{executeBy},</if>
            <if test="executeTime != null">execute_time = #{executeTime},</if>
            <if test="taskType != null">task_type = #{taskType},</if>
            <if test="taskDescription != null">task_description = #{taskDescription},</if>
        </trim>
        where id = #{id}
    </update>