Zhaops 6 lat temu
rodzic
commit
e42fcf35af

+ 5 - 2
icssman-service/src/main/resources/mapper/IntroduceInfoMapper.xml

@@ -29,7 +29,7 @@
 
     <!-- 分页查询 -->
     <select id="getIntroducePage" resultMap="BaseResultMapDTO">
-    SELECT info.*, t.tag_name FROM icss_introduce_info info,
+    SELECT info.*, t.tag_name FROM icss_introduce_info info left join
 	    (SELECT tt.introduce_id,GROUP_CONCAT(tt.tag_name) AS tag_name
 		    FROM
 			(
@@ -43,10 +43,13 @@
 				WHERE
 					a.question_id = b.id
 				AND a.type = b.type
+                and a.is_deleted='N'
+                and b.is_deleted='N'
 			) tt
 		    GROUP BY tt.introduce_id
 	    ) t
-    WHERE info.id = t.introduce_id
+    on info.id = t.introduce_id
+    where info.is_deleted='N'
 	<if test="introducePageVO.name != null and introducePageVO.name != '' ">
 	    and info.name like concat('%',#{introducePageVO.name},'%')
     </if>