From d2b4f1493696c28355242deda4eaa66ceb1ec7d6 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Tue, 18 Nov 2025 15:18:07 +0800
Subject: [PATCH] 2025-11-15 zwy 取消任务时,任务状态无法取消返回提示改为中文。

---
 ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
index a10104f..749a0a5 100644
--- a/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
+++ b/ard-route/src/main/resources/mapper/ArdRouteInfoMapper.xml
@@ -40,12 +40,17 @@
     <select id="selectArdRouteInfoList" parameterType="ArdRouteInfo" resultMap="ArdRouteInfoResult">
         <include refid="selectArdRouteInfoVo"/>
         <where>  
-            <if test="name != null  and kmzName != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
             <if test="aircraft != null  and aircraft != ''"> and aircraft = #{aircraft}</if>
             <if test="payload != null  and payload != ''"> and payload = #{payload}</if>
             <if test="type != null  and type != ''"> and type = #{type}</if>
             <if test="path != null  and path != ''"> and path = #{path}</if>
+            <if test="groupId != null"> and group_id = #{groupId}</if>
         </where>
+        <!-- 动态排序 -->
+        <if test="orderByTime != null and orderByTime != ''">
+            ORDER BY update_time ${orderByTime}
+        </if>
     </select>
     
     <select id="selectArdRouteInfoById" parameterType="String" resultMap="ArdRouteInfoResult">
@@ -59,7 +64,7 @@
             <if test="id != null">id,</if>
             <if test="name != null">name,</if>
             <if test="path != null">path,</if>
-            <if test="GroupId != null">group_id,</if>
+            <if test="groupId != null">group_id,</if>
             <if test="type != null">type,</if>
             <if test="aircraft != null">aircraft,</if>
             <if test="payload != null">payload,</if>
@@ -74,7 +79,7 @@
             <if test="id != null">#{id},</if>
             <if test="name != null">#{name},</if>
             <if test="path != null">#{path},</if>
-            <if test="GroupId != null">#{GroupId},</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>
@@ -92,6 +97,7 @@
         <trim prefix="SET" suffixOverrides=",">
             <if test="name != null">name = #{name},</if>
             <if test="path != null">path = #{path},</if>
+            <if test="groupId != null">group_id = #{groupId},</if>
             <if test="type != null">type = #{type},</if>
             <if test="aircraft != null">aircraft = #{aircraft},</if>
             <if test="payload != null">payload = #{payload},</if>

--
Gitblit v1.9.3