部门列表api返回部门的学员数量

This commit is contained in:
none
2023-04-12 13:55:22 +08:00
parent 3fda4b6926
commit 9344f81772
7 changed files with 63 additions and 36 deletions

View File

@@ -15,8 +15,13 @@
</resultMap>
<sql id="Base_Column_List">
id,name,parent_id,
parent_chain,sort,created_at,
id,name,parent_id,
parent_chain,sort,created_at,
updated_at
</sql>
<select id="getDepartmentsUserCount" resultType="xyz.playedu.api.types.mapper.DepartmentsUserCountMapRes">
SELECT `dep_id`, count(1) AS `total`
FROM user_department
GROUP BY dep_id;
</select>
</mapper>