From cd8c89967768145adb0fa7d6a097779407352522 Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Tue, 14 Oct 2025 08:57:13 +0800
Subject: [PATCH] 1.模型管理增加模型路径字段。 2.tile管理增加默认加载字段。

---
 ard-system/src/main/resources/mapper/system/ArdModelManagementMapper.xml |    8 +++++++-
 ard-system/src/main/java/com/ard/data/domain/ArdModelManagement.java     |    4 ++++
 ard-system/src/main/java/com/ard/data/domain/ArdTileManagement.java      |    5 +++++
 ard-system/src/main/resources/mapper/system/ArdTileManagementMapper.xml  |    7 ++++++-
 4 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/ard-system/src/main/java/com/ard/data/domain/ArdModelManagement.java b/ard-system/src/main/java/com/ard/data/domain/ArdModelManagement.java
index 9a2f1e6..909883d 100644
--- a/ard-system/src/main/java/com/ard/data/domain/ArdModelManagement.java
+++ b/ard-system/src/main/java/com/ard/data/domain/ArdModelManagement.java
@@ -37,4 +37,8 @@
     @Excel(name = "比例")
     private Long proportion;
 
+    /** 模型路径 */
+    @Excel(name = "模型路径")
+    private Long modelUrl;
+
 }
diff --git a/ard-system/src/main/java/com/ard/data/domain/ArdTileManagement.java b/ard-system/src/main/java/com/ard/data/domain/ArdTileManagement.java
index 7002491..321b41d 100644
--- a/ard-system/src/main/java/com/ard/data/domain/ArdTileManagement.java
+++ b/ard-system/src/main/java/com/ard/data/domain/ArdTileManagement.java
@@ -53,4 +53,9 @@
     /** 部门ID */
     @Excel(name = "部门ID")
     private Long deptId;
+
+    /** 默认加载 */
+    @Excel(name = "默认加载")
+    private String defaultLoading;
+
 }
diff --git a/ard-system/src/main/resources/mapper/system/ArdModelManagementMapper.xml b/ard-system/src/main/resources/mapper/system/ArdModelManagementMapper.xml
index 7bd3fa0..f6e113f 100644
--- a/ard-system/src/main/resources/mapper/system/ArdModelManagementMapper.xml
+++ b/ard-system/src/main/resources/mapper/system/ArdModelManagementMapper.xml
@@ -11,6 +11,7 @@
         <result property="latitude"    column="latitude"    />
         <result property="height"    column="height"    />
         <result property="proportion"    column="proportion"    />
+        <result property="modelUrl"    column="model_url"    />
     </resultMap>
 
     <sql id="selectArdModelManagementVo">
@@ -19,7 +20,8 @@
                longitude,
                latitude,
                height,
-               proportion
+               proportion,
+               model_url
         from ard_model_management
     </sql>
 
@@ -31,6 +33,7 @@
             <if test="latitude != null "> and latitude = #{latitude}</if>
             <if test="height != null "> and height = #{height}</if>
             <if test="proportion != null "> and proportion = #{proportion}</if>
+            <if test="modelUrl != null "> and model_url = #{modelUrl}</if>
         </where>
     </select>
     
@@ -48,6 +51,7 @@
             <if test="latitude != null">latitude,</if>
             <if test="height != null">height,</if>
             <if test="proportion != null">proportion,</if>
+            <if test="modelUrl != null">model_url,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -56,6 +60,7 @@
             <if test="latitude != null">#{latitude},</if>
             <if test="height != null">#{height},</if>
             <if test="proportion != null">#{proportion},</if>
+            <if test="modelUrl != null">#{modelUrl},</if>
          </trim>
     </insert>
 
@@ -67,6 +72,7 @@
             <if test="latitude != null">latitude = #{latitude},</if>
             <if test="height != null">height = #{height},</if>
             <if test="proportion != null">proportion = #{proportion},</if>
+            <if test="modelUrl != null">model_url = #{modelUrl},</if>
         </trim>
         where id = #{id}
     </update>
diff --git a/ard-system/src/main/resources/mapper/system/ArdTileManagementMapper.xml b/ard-system/src/main/resources/mapper/system/ArdTileManagementMapper.xml
index e82120a..e95b888 100644
--- a/ard-system/src/main/resources/mapper/system/ArdTileManagementMapper.xml
+++ b/ard-system/src/main/resources/mapper/system/ArdTileManagementMapper.xml
@@ -15,6 +15,7 @@
         <result property="loadingSpeed"    column="loading_speed"    />
         <result property="userId"    column="user_id"    />
         <result property="deptId"    column="dept_id"    />
+        <result property="defaultLoading"    column="default_loading"    />
     </resultMap>
 
     <sql id="selectArdTileManagementVo">
@@ -27,7 +28,8 @@
                automatic_super_cleaning_model,
                loading_speed,
                user_id,
-               dept_id
+               dept_id,
+               default_loading
         from ard_tile_management
     </sql>
 
@@ -58,6 +60,7 @@
             <if test="loadingSpeed != null">loading_speed,</if>
             <if test="userId != null">user_id,</if>
             <if test="deptId != null">dept_id,</if>
+            <if test="defaultLoading != null">default_loading,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -70,6 +73,7 @@
             <if test="loadingSpeed != null">#{loadingSpeed},</if>
             <if test="userId != null">#{userId},</if>
             <if test="deptId != null">#{deptId},</if>
+            <if test="defaultLoading != null">#{defaultLoading},</if>
          </trim>
     </insert>
 
@@ -85,6 +89,7 @@
             <if test="loadingSpeed != null">loading_speed = #{loadingSpeed},</if>
             <if test="userId != null">user_id = #{userId},</if>
             <if test="deptId != null">dept_id = #{deptId},</if>
+            <if test="defaultLoading != null">default_loading = #{defaultLoading},</if>
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3