线上课没有未分类

This commit is contained in:
none
2023-03-17 15:54:59 +08:00
parent e33f4443a5
commit 0689c0d428
3 changed files with 1 additions and 11 deletions

View File

@@ -27,11 +27,4 @@
FROM `resource_course_category`
GROUP BY `resource_course_category`.`category_id`;
</select>
<select id="getNoneCategoryCount" resultType="java.lang.Integer">
SELECT count(DISTINCT `courses`.`id`) AS `total`
FROM `courses`
LEFT JOIN `resource_course_category` ON `resource_course_category`.`course_id` = `courses`.`id`
WHERE `resource_course_category`.`course_id` IS NULL;
</select>
</mapper>