Browse Source

修复:筛选时间不在范围内

pull/348/head^2^2
yystopf 1 year ago
parent
commit
c57482042d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/api/v1/issues/list_service.rb

+ 1
- 1
app/services/api/v1/issues/list_service.rb View File

@@ -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…
Cancel
Save