Merge branch 'pre_trustie_server' into trustie_server
This commit is contained in:
commit
62a1e6730c
|
@ -27,9 +27,9 @@ class Issues::ListQueryService < ApplicationService
|
||||||
issues = issues.joins(:pull_request).where(pull_requests: {status: 1})
|
issues = issues.joins(:pull_request).where(pull_requests: {status: 1})
|
||||||
end
|
end
|
||||||
|
|
||||||
# if search_name.present?
|
if search_name.present?
|
||||||
# issues = issues.where("issues.subject LIKE ? OR issues.description LIKE ? ", "%#{search_name}%", "%#{search_name}%")
|
issues = issues.where("issues.subject LIKE ? OR issues.description LIKE ? ", "%#{search_name}%", "%#{search_name}%")
|
||||||
# end
|
end
|
||||||
|
|
||||||
if start_time&.present? || end_time&.present?
|
if start_time&.present? || end_time&.present?
|
||||||
issues = issues.where("issues.start_date between ? and ?",start_time&.present? ? start_time.to_date : Time.now.to_date, end_time&.present? ? end_time.to_date : Time.now.to_date)
|
issues = issues.where("issues.start_date between ? and ?",start_time&.present? ? start_time.to_date : Time.now.to_date, end_time&.present? ? end_time.to_date : Time.now.to_date)
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
# 单表存储的信息可以放里面
|
# 单表存储的信息可以放里面
|
||||||
json.array! users do |user|
|
json.array! users do |user|
|
||||||
json.username user.full_name
|
json.username user.full_name
|
||||||
json.login user.login
|
json.login user.login
|
||||||
json.user_id user.id
|
json.user_id user.id
|
||||||
json.image_url url_to_avatar(user)
|
json.mail user.mail
|
||||||
json.profile_completed user.profile_completed
|
json.custom_department user.custom_department
|
||||||
end
|
json.image_url url_to_avatar(user)
|
||||||
|
json.profile_completed user.profile_completed
|
||||||
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue