取消第二排序

This commit is contained in:
670788339
2025-11-17 19:03:21 +08:00
parent d47c0a891c
commit 2efe56ecda

View File

@@ -151,9 +151,9 @@ public class CourseTagDao extends BaseDao<CourseTag> {
parameters.add("%" + tagName + "%");
}
sql.append(") AS all_tags ");
sql.append("ORDER BY ");
if (StringUtils.isNotBlank(typeId)) {
sql.append("ORDER BY ");
sql.append(" CASE WHEN id IN ( ");
sql.append(" SELECT tag_id ");
sql.append(" FROM boe_course_type_tag_relation ");