|
|
@@ -407,14 +407,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND c.is_show = 1
|
|
|
AND c.is_private = 0
|
|
|
|
|
|
- <choose>
|
|
|
- <when test="q.yxxTag != null and q.yxxTag == 1">
|
|
|
- AND c.cate_id = (select cate_id from fs_user_course_category WHERE cate_name like '%央广原乡行%' AND cate_type = 1 limit 1)
|
|
|
- </when>
|
|
|
- <otherwise>
|
|
|
- AND c.cate_id != (select cate_id from fs_user_course_category WHERE cate_name like '%央广原乡行%' AND cate_type = 1 limit 1)
|
|
|
- </otherwise>
|
|
|
- </choose>
|
|
|
+
|
|
|
+ <if test="q.yxxTag != null and q.yxxTag == 1">
|
|
|
+ AND c.cate_id = (select cate_id from fs_user_course_category WHERE cate_name like '%央广原乡行%' AND cate_type = 1 limit 1)
|
|
|
+ </if>
|
|
|
+ <if test="q.yxxTag == null">
|
|
|
+ AND c.cate_id != (select cate_id from fs_user_course_category WHERE cate_name like '%央广原乡行%' AND cate_type = 1 limit 1)
|
|
|
+ </if>
|
|
|
AND EXISTS (
|
|
|
SELECT 1 FROM fs_user_course_category pc2
|
|
|
WHERE pc2.cate_id = c.cate_id AND pc2.cate_type = 1 AND pc2.is_del = 0
|