作者 陈志颖

fix:修复截止时间筛选活动问题

@@ -277,7 +277,7 @@ func (cashPoolService *CashPoolService) CreateExchangeCashActivity(createExchang @@ -277,7 +277,7 @@ func (cashPoolService *CashPoolService) CreateExchangeCashActivity(createExchang
277 var timeNow = time.Now() 277 var timeNow = time.Now()
278 var deadline = createExchangeCashActivityCommand.Deadline 278 var deadline = createExchangeCashActivityCommand.Deadline
279 var t1 = time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 0, 0, 0, 0, time.Local) 279 var t1 = time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 0, 0, 0, 0, time.Local)
280 - var t2 = time.Date(deadline.Year(), deadline.Month(), deadline.Day(), 23, 59, 59, 0, time.Local) 280 + var t2 = time.Date(deadline.Year(), deadline.Month(), deadline.Day(), 23, 59, 59, 999999, time.Local)
281 281
282 newActivity := &domain.ExchangeCashActivity{ 282 newActivity := &domain.ExchangeCashActivity{
283 ExchangeActivityName: createExchangeCashActivityCommand.ExchangeActivityName, 283 ExchangeActivityName: createExchangeCashActivityCommand.ExchangeActivityName,
@@ -97,7 +97,7 @@ func (repository *ExchangeCashActivityRepository) Find(queryOptions map[string]i @@ -97,7 +97,7 @@ func (repository *ExchangeCashActivityRepository) Find(queryOptions map[string]i
97 //fmt.Print(deadline, "\n") 97 //fmt.Print(deadline, "\n")
98 //var t = time.Date(deadline.Year(), deadline.Month(), deadline.Day(), 0, 0, 0, 0, time.Local) 98 //var t = time.Date(deadline.Year(), deadline.Month(), deadline.Day(), 0, 0, 0, 0, time.Local)
99 //fmt.Print(t, "\n") 99 //fmt.Print(t, "\n")
100 - query = query.Where(`exchange_cash_activity.deadline > ?`, deadline) 100 + query = query.Where(`exchange_cash_activity.deadline >= ?`, deadline)
101 } 101 }
102 if offset, ok := queryOptions["offset"]; ok { 102 if offset, ok := queryOptions["offset"]; ok {
103 offset := offset.(int) 103 offset := offset.(int)