作者 陈志颖

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

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