issue按id集合查询,选择关联issue时排除已选id集合

This commit is contained in:
2023-12-04 09:59:25 +08:00
parent fea7c52227
commit 1bdb6dad98
2 changed files with 7 additions and 6 deletions

View File

@@ -29,8 +29,6 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
@issue.pm_links.pluck(:be_linkable_id)
end
not_join_id = params[:exclude_ids].to_s.split(",") if params[:exclude_ids].present?
not_join_id << @issue.id
object_issues = Issue.where(
pm_project_id: params[:pm_project_id],