From d79aeb1aefbeff017c27304750f62d629779ed0b Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Wed, 14 Sep 2022 08:46:57 +0800
Subject: [PATCH] 修改返回信息

---
 src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml b/src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
index d999c34..14ee534 100644
--- a/src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
+++ b/src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
@@ -21,7 +21,7 @@
         <result column="pitch" property="pitch"/>
         <result column="roll" property="roll"/>
         <result column="panoramaurl" property="panoramaurl"/>
-        <result column="addressName" property="addressName"/>
+        <result column="address_name" property="addressName"/>
     </resultMap>
 
 
@@ -42,7 +42,7 @@
 
     <!--查询校内建筑列表-->
     <select id="selectList" resultType="java.util.HashMap">
-        SELECT id, mechanismName as mechanismname, tpUrl as tpurl
+        SELECT *
         FROM `sys_architecture`
         WHERE campus = #{campus}
           and type = #{type}
@@ -68,7 +68,8 @@
                pitch,
                roll,
                panoramaurl,
-               addressName
+               address_name,
+               x
         FROM `sys_architecture`
         WHERE id = #{id}
           and is_deleted = 0
@@ -82,10 +83,10 @@
           AND panoramaurl!='' and is_deleted = 0
     </select>
     <select id="selectArchALL" resultType="java.util.HashMap">
-        SELECT jd, wd, mechanismName AS mechanismname, tpUrl AS tpurl, codeUrl AS codeurl, introduce, panoramaurl
+        SELECT jd, wd, mechanismName AS mechanismname, tpUrl AS tpurl, codeUrl AS codeurl, introduce, panoramaurl,x
         FROM sys_architecture
         WHERE is_deleted = 0
---         UNION
+        --         UNION
 --         SELECT jd, wd, mechanismName AS mechanismname, tpUrl AS tpurl, codeUrl AS codeurl, introduce, panoramaurl
 --         FROM sys_mechanism
 --         WHERE is_deleted = 0
@@ -146,6 +147,8 @@
                introduce,
                jd,
                wd,
+               x,
+               y,
                gd,
                tpUrl         as tpurl,
                codeUrl       as codeurl,
@@ -164,6 +167,8 @@
                introduce,
                jd,
                wd,
+               x,
+               y,
                gd,
                tpUrl         as tpurl,
                codeUrl       as codeurl,
@@ -182,6 +187,8 @@
                introduce,
                jd,
                wd,
+               x,
+               y,
                gd,
                tpUrl         as tpurl,
                codeUrl       as codeurl,

--
Gitblit v1.9.3