forked from Trustie/forgeplus
更改:已完成不算已结束
This commit is contained in:
parent
40e6ba12e4
commit
229ee55dbc
|
|
@ -195,11 +195,11 @@ class Api::V1::Issues::ListService < ApplicationService
|
|||
case category
|
||||
when 'closed'
|
||||
issues_1 = issues.where(pm_issue_type:1, status_id: [2,7,8]).to_sql
|
||||
issues_2 = issues.where(pm_issue_type:[2,3], status_id: [3,5,6]).to_sql
|
||||
issues_2 = issues.where(pm_issue_type:[2,3], status_id: [5,6]).to_sql
|
||||
issues = Issue.from("( #{issues_1} union #{issues_2}) as issues")
|
||||
when 'opened'
|
||||
issues_1 = issues.where(pm_issue_type:1).where.not(status_id: [2,7,8]).to_sql
|
||||
issues_2 = issues.where(pm_issue_type:[2,3]).where.not(status_id: [3,5,6]).to_sql
|
||||
issues_2 = issues.where(pm_issue_type:[2,3]).where.not(status_id: [5,6]).to_sql
|
||||
issues = Issue.from("( #{issues_1} union #{issues_2}) as issues")
|
||||
end
|
||||
if only_name.present?
|
||||
|
|
|
|||
Loading…
Reference in New Issue