ADD issue pull 支持内容搜索

This commit is contained in:
jasder 2021-05-21 16:42:53 +08:00
parent 8a47761afb
commit 00f5a7f916
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class Issues::ListQueryService < ApplicationService
end
if search_name.present?
issues = issues.where("subject like ?", "%#{search_name}%")
issues = issues.where("subject LIKE ? OR description LIKE ? ", "%#{search_name}%", "%#{search_name}%")
end
if start_time&.present? || end_time&.present?