|
@@ -89,9 +89,9 @@ func (repository *ExchangeCashActivityRepository) Find(queryOptions map[string]i |
|
@@ -89,9 +89,9 @@ func (repository *ExchangeCashActivityRepository) Find(queryOptions map[string]i |
89
|
query = query.Where(`exchange_cash_activity.activity_name LIKE ?`, fmt.Sprintf("%%%s%%", activityNameMatch.(string)))
|
89
|
query = query.Where(`exchange_cash_activity.activity_name LIKE ?`, fmt.Sprintf("%%%s%%", activityNameMatch.(string)))
|
90
|
}
|
90
|
}
|
91
|
if deadline, ok := queryOptions["deadline"]; ok && deadline != "" {
|
91
|
if deadline, ok := queryOptions["deadline"]; ok && deadline != "" {
|
92
|
- t, _ := time.ParseInLocation("2006-01-02", deadline.(string), time.UTC)
|
|
|
93
|
- newDeadlineStart := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, time.UTC)
|
|
|
94
|
- newDeadlineEnd := time.Date(t.Year(), t.Month(), t.Day() + 1, 0, 0, 0, 0 - 1, time.UTC)
|
92
|
+ t, _ := time.ParseInLocation("2006-01-02", deadline.(string), time.Local)
|
|
|
93
|
+ newDeadlineStart := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, time.Local)
|
|
|
94
|
+ newDeadlineEnd := time.Date(t.Year(), t.Month(), t.Day(), 23, 59, 59, 0, time.Local)
|
95
|
query = query.Where(`exchange_cash_activity.deadline >= ?`, newDeadlineStart)
|
95
|
query = query.Where(`exchange_cash_activity.deadline >= ?`, newDeadlineStart)
|
96
|
query = query.Where(`exchange_cash_activity.deadline <= ?`, newDeadlineEnd)
|
96
|
query = query.Where(`exchange_cash_activity.deadline <= ?`, newDeadlineEnd)
|
97
|
}
|
97
|
}
|