SELECT topic_id AS topicid,topic_name AS topicname,COUNT(*) AS num FROM `comment` WHERE library_id = 6 GROUP BY topic_id,topic_name;
SELECT b.name, a.module_id AS moduleid, a.topic_id AS topicid, a.topic_name AS topicname, COUNT(*) AS num FROM `comment` a LEFT JOIN application_tree b ON a.module_id = b.id WHERE a.library_id = 6 GROUP BY a.topic_id, a.topic_name, a.module_id, b. name;
{"type":"doc","content":[{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"typ
{"type":"doc","content":[{"type":"heading","attrs":{"align":null,"level":1}},{"type":"blockquote","content":[{"type":"pa
{"type":"doc","content":[{"type":"heading","attrs":{"align":null,"level":1}},{"type":"paragraph","attrs":{"indent":0,"nu