From cc415c7aa922629d7fc45efae440cada98b899b4 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 21 Jan 2022 08:56:56 +0800
Subject: [PATCH] 活动

---
 src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 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 c18010a..0097005 100644
--- a/src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
+++ b/src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
@@ -44,7 +44,7 @@
         SELECT id, mechanismName as mechanismname, tpUrl as tpurl
         FROM `sys_architecture`
         WHERE campus = #{campus}
-          and type = #{type}
+          and type = #{type} and is_deleted = 0
     </select>
 
     <!--查询校内建筑基本信息-->
@@ -67,7 +67,7 @@
                roll,
                panoramaurl
         FROM `sys_architecture`
-        WHERE id = #{id}
+        WHERE id = #{id} and is_deleted = 0
     </select>
 
 
@@ -75,17 +75,17 @@
         SELECT jd, wd, mechanismName as mechanismname, tpUrl as tpurl, codeUrl as codeurl, introduce,panoramaurl
         FROM sys_architecture
         WHERE panoramaurl IS NOT NULL
-          AND panoramaurl!=''
+          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
-        FROM sys_architecture
+        FROM sys_architecture where is_deleted = 0
     </select>
 
     <select id="selectIns" resultType="java.lang.String">
         SELECT GROUP_CONCAT(mechanismName) AS mechanismname
         FROM sys_life
-        WHERE loutype = #{id}
+        WHERE loutype = #{id} and is_deleted = 0
     </select>
 
     <select id="selectLook" resultType="java.util.HashMap">
@@ -99,7 +99,7 @@
         UNION
         SELECT GROUP_CONCAT(mechanismName) AS mechanismname
         FROM sys_life
-        WHERE mechanismName LIKE '%${mechanismName}%'
+        WHERE mechanismName LIKE '%${mechanismName}%' and is_deleted = 0
     </select>
 
     <!--视频监控-->
@@ -109,20 +109,20 @@
                videourl
         FROM sys_architecture
         WHERE videourl IS NOT NULL
-          AND videourl != ''
+          AND videourl != '' and is_deleted = 0
         UNION
         SELECT jd,
                wd, mechanismName as mechanismname,
                videourl
         FROM sys_mechanism
         WHERE videourl IS NOT NULL
-          AND videourl != ''
+          AND videourl != '' and is_deleted = 0
         UNION
         SELECT jd,
                wd, mechanismName as mechanismname,
                videourl
         FROM sys_life
         WHERE videourl IS NOT NULL
-          AND videourl != ''
+          AND videourl != '' and is_deleted = 0
     </select>
 </mapper>

--
Gitblit v1.9.3