casdoor/controllers
Blackcbears 0de4e7da38
feat: fix organization pagination count error (#3215)
* fix(organization): ensure count includes shared organizations

Adjust the `GetOrganizationCount` function to account for shared organizations by adding
an additional parameter and modifying the count query accordingly. This change ensures that
the organization count correctly reflects shared organizations within the system.

* ```fix(organization): optimize GetOrganizationCount query

Refactor the GetOrganizationCount function to use a more efficient search
method by leveraging the 'is_shared' field directly in the query condition.
This change improves the performance for counting organizations by avoiding
unnecessary iteration over potentially large result sets.
```

---------

Co-authored-by: CuiJing <cuijing@tul.com.cn>
2024-09-20 23:58:46 +08:00
..
2024-04-24 01:10:38 +08:00
2024-02-16 01:13:34 +08:00
2024-07-18 18:40:55 +08:00
2024-01-15 23:35:40 +08:00
2022-08-09 16:50:49 +08:00
2024-01-15 23:35:40 +08:00
2024-03-16 20:49:17 +08:00
2023-08-24 22:03:36 +08:00
2023-10-12 00:13:16 +08:00
2023-08-24 22:03:36 +08:00
2024-08-23 22:19:17 +08:00