Commit d854f06f authored by liuyang's avatar liuyang

fixed search bug

parent 48f82fc8
......@@ -70,7 +70,7 @@
LEFT JOIN course_tag_rel r on c.id = r.course_id
WHERE
c.is_del = 0
AND c.allow = 'ALL'
AND (c.allow = 'ALL'
<if test="userTags != null and userTags.size > 0">
or c.allow = 'USER_TAG'
and
......@@ -78,6 +78,7 @@
FIND_IN_SET(#{item},c.user_tag_ids)
</foreach>
</if>
)
AND c.`status` = 'UP'
<if test="p.courseName != null and p.courseName != ''">
and c.`name` like concat ('%',#{p.courseName},'%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment