From 229ee55dbc396d8dd5c70caf4e38ececea74447b Mon Sep 17 00:00:00 2001 From: yystopf Date: Mon, 25 Aug 2025 15:01:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E5=B7=B2=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=B8=8D=E7=AE=97=E5=B7=B2=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/api/v1/issues/list_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/api/v1/issues/list_service.rb b/app/services/api/v1/issues/list_service.rb index 352054cea..41124d5a2 100644 --- a/app/services/api/v1/issues/list_service.rb +++ b/app/services/api/v1/issues/list_service.rb @@ -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?