更改:根据pm_project_id查询issue无法正常展示数据
This commit is contained in:
parent
a0e34c9ddd
commit
fe4d563d6b
|
@ -11,7 +11,7 @@ class Api::Pm::ProjectsController < Api::Pm::BaseController
|
|||
|
||||
def issues_count
|
||||
return tip_exception '参数错误' unless params[:pm_project_id].present?
|
||||
@issues = Issue.where(id: params[:pm_project_id])
|
||||
@issues = Issue.where(pm_project_id: params[:pm_project_id])
|
||||
data = {}
|
||||
@issues_count = @issues.group(:pm_project_id).count
|
||||
# requirement 1 task 2 bug 3
|
||||
|
|
Loading…
Reference in New Issue