mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
FIX 优化项目列表数据查询
This commit is contained in:
@@ -36,7 +36,7 @@ class ProjectsController < ApplicationController
|
||||
end
|
||||
|
||||
def group_type_list
|
||||
@project_group_list = Project.visible.group(:project_type).select('project_type, count(*) AS projects_count')
|
||||
@project_group_list = Project.visible.group(:project_type).select('project_type, count(project_type) AS projects_count').having("count(project_type) > ?", 0)
|
||||
end
|
||||
|
||||
def update
|
||||
|
||||
Reference in New Issue
Block a user