修复:筛选时间不在范围内
This commit is contained in:
parent
a3f3d3ec18
commit
c57482042d
|
@ -151,7 +151,7 @@ class Api::V1::Issues::ListService < ApplicationService
|
|||
end
|
||||
|
||||
if update_begin_date&.present? || update_end_date&.present?
|
||||
issues = issues.where('issues.updated_on between ? and ?', update_begin_date&.present? ? update_begin_date.to_time : Time.now.beginning_of_day, update_end_date&.present? ? update_end_date.to_time.end_of_day : Time.now.end_of_day)
|
||||
issues = issues.where('issues.updated_on between ? and ?', update_begin_date&.present? ? update_begin_date.to_time.beginning_of_week : Time.now.beginning_of_week, update_end_date&.present? ? update_end_date.to_time.end_of_week : Time.now.end_of_week)
|
||||
end
|
||||
|
||||
# keyword
|
||||
|
|
Loading…
Reference in New Issue