feat: add user/document/discussion event (#59)

This commit is contained in:
vran
2022-03-22 15:00:44 +08:00
committed by GitHub
parent 890414deb1
commit 4deebab2cb
25 changed files with 428 additions and 40 deletions

View File

@@ -78,6 +78,13 @@ public class UserDao extends BaseDao<UserPojo> {
.fetchOptionalInto(UserPojo.class);
}
public List<UserPojo> selectEnabledGroupMembers(Integer groupId) {
return dslContext.select(USER.fields()).from(USER)
.innerJoin(USER_ROLE).on(USER.ID.eq(USER_ROLE.USER_ID))
.where(USER_ROLE.GROUP_ID.eq(groupId).and(USER.ENABLED.eq(true)))
.fetchInto(UserPojo.class);
}
public Page<GroupMemberDetailPojo> selectGroupMembers(Integer groupId, Pageable request, Condition condition) {
// total
Integer count = dslContext