mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
部门列表api返回部门的学员数量
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user