Skip to content

Commit

Permalink
EPMRPP-91776 implement organization users dao
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx committed Jul 4, 2024
1 parent 4686f29 commit ab85c66
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,8 @@ public QuerySupplier getQuery() {
@Override
protected Collection<? extends SelectField> selectFields() {
return Lists.newArrayList(
DSL.countDistinct(PROJECT_USER.PROJECT_ID).as(PROJECTS_QUANTITY),
DSL.countDistinct(choose().when(ORGANIZATION_USER.ORGANIZATION_ID.eq(PROJECT_USER.PROJECT_ID),
PROJECT_USER.PROJECT_ID)).as(PROJECTS_QUANTITY),
ORGANIZATION_USER.USER_ID,
USERS.METADATA,
USERS.EMAIL,
Expand Down

0 comments on commit ab85c66

Please sign in to comment.