zrj
2024-10-24 1a4792fdff667d3b9590c6ab4c085a08cdca1399
src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
@@ -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}
@@ -82,14 +82,14 @@
        WHERE panoramaurl IS NOT NULL
          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,x
    <select id="selectArchALL" resultType="org.springblade.modules.architecture.entity.Architecture">
        SELECT id,jd, wd, mechanismName AS mechanismname, tpUrl AS tpurl, codeUrl AS codeurl, introduce, panoramaurl,x
        FROM sys_architecture
        WHERE is_deleted = 0
        --         UNION
--         SELECT jd, wd, mechanismName AS mechanismname, tpUrl AS tpurl, codeUrl AS codeurl, introduce, panoramaurl
--         FROM sys_mechanism
--         WHERE is_deleted = 0
        <if test="architecture.campus!=null and architecture.campus!=''">
            and campus = #{architecture.campus}
        </if>
    </select>
    <select id="selectIns" resultType="java.lang.String">
@@ -147,6 +147,8 @@
               introduce,
               jd,
               wd,
               x,
               y,
               gd,
               tpUrl         as tpurl,
               codeUrl       as codeurl,
@@ -157,6 +159,7 @@
               panoramaurl
        FROM sys_architecture
        WHERE mechanismName LIKE '%${mechanismName}%'
        and campus = #{campus}
          AND is_deleted = 0
        UNION
        SELECT mechanismName AS mechanismname,
@@ -165,6 +168,8 @@
               introduce,
               jd,
               wd,
               x,
               y,
               gd,
               tpUrl         as tpurl,
               codeUrl       as codeurl,
@@ -175,6 +180,7 @@
               panoramaurl
        FROM sys_mechanism
        WHERE mechanismName LIKE '%${mechanismName}%'
        and campus = #{campus}
          AND is_deleted = 0
        UNION
        SELECT mechanismName AS mechanismname,
@@ -183,6 +189,8 @@
               introduce,
               jd,
               wd,
               x,
               y,
               gd,
               tpUrl         as tpurl,
               codeUrl       as codeurl,
@@ -193,6 +201,7 @@
               panoramaurl
        FROM sys_life
        WHERE mechanismName LIKE '%${mechanismName}%'
        and campus = #{campus}
          AND is_deleted = 0
    </select>
</mapper>