From 99f528e235f11126fea44480c6e8888a9e463f2f Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 08 十一月 2025 21:09:53 +0800
Subject: [PATCH] feat:任务附件上传和同步

---
 ruoyi-system/src/main/resources/mapper/system/SysTaskLogMapper.xml |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysTaskLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysTaskLogMapper.xml
index 0144d40..71fa476 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysTaskLogMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysTaskLogMapper.xml
@@ -15,11 +15,23 @@
         <result property="operatorName"     column="operator_name"     />
         <result property="operationTime"    column="operation_time"    />
         <result property="ipAddress"        column="ip_address"        />
+        <result property="latitude"         column="latitude"          />
+        <result property="longitude"        column="longitude"         />
+        <result property="locationAddress"  column="location_address"  />
+        <result property="locationProvince" column="location_province" />
+        <result property="locationCity"     column="location_city"     />
+        <result property="locationDistrict" column="location_district" />
+        <result property="gpsAccuracy"      column="gps_accuracy"      />
+        <result property="altitude"         column="altitude"          />
+        <result property="speed"            column="speed"             />
+        <result property="heading"          column="heading"           />
     </resultMap>
 
     <sql id="selectSysTaskLogVo">
         select log_id, task_id, operation_type, operation_desc, old_value, new_value, 
-               operator_id, operator_name, operation_time, ip_address 
+               operator_id, operator_name, operation_time, ip_address,
+               latitude, longitude, location_address, location_province, 
+               location_city, location_district, gps_accuracy, altitude, speed, heading
         from sys_task_log
     </sql>
 
@@ -57,6 +69,16 @@
             <if test="operatorName != null and operatorName != ''">operator_name,</if>
             <if test="operationTime != null">operation_time,</if>
             <if test="ipAddress != null">ip_address,</if>
+            <if test="latitude != null">latitude,</if>
+            <if test="longitude != null">longitude,</if>
+            <if test="locationAddress != null">location_address,</if>
+            <if test="locationProvince != null">location_province,</if>
+            <if test="locationCity != null">location_city,</if>
+            <if test="locationDistrict != null">location_district,</if>
+            <if test="gpsAccuracy != null">gps_accuracy,</if>
+            <if test="altitude != null">altitude,</if>
+            <if test="speed != null">speed,</if>
+            <if test="heading != null">heading,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="taskId != null">#{taskId},</if>
@@ -68,6 +90,16 @@
             <if test="operatorName != null and operatorName != ''">#{operatorName},</if>
             <if test="operationTime != null">#{operationTime},</if>
             <if test="ipAddress != null">#{ipAddress},</if>
+            <if test="latitude != null">#{latitude},</if>
+            <if test="longitude != null">#{longitude},</if>
+            <if test="locationAddress != null">#{locationAddress},</if>
+            <if test="locationProvince != null">#{locationProvince},</if>
+            <if test="locationCity != null">#{locationCity},</if>
+            <if test="locationDistrict != null">#{locationDistrict},</if>
+            <if test="gpsAccuracy != null">#{gpsAccuracy},</if>
+            <if test="altitude != null">#{altitude},</if>
+            <if test="speed != null">#{speed},</if>
+            <if test="heading != null">#{heading},</if>
          </trim>
     </insert>
 

--
Gitblit v1.9.1