...
|
...
|
@@ -408,7 +408,6 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivityDeadline(listExc |
|
|
// 提取兑换现金活动截止时间
|
|
|
var deadlines []interface{}
|
|
|
for _, activity := range activities {
|
|
|
//tmpTime := activity.Deadline.UTC().Format("2006-01-02")
|
|
|
tmpTime := activity.Deadline.Local().Format("2006-01-02")
|
|
|
if !utils.IsContain(deadlines, tmpTime) {
|
|
|
deadlines = append(deadlines, tmpTime)
|
...
|
...
|
@@ -546,7 +545,13 @@ func (cashPoolService *CashPoolService) ListExchangeCashActivity(listExchangeCas |
|
|
}
|
|
|
|
|
|
// 查找兑换现金活动
|
|
|
if count, activities, err := exchangeActivityRepository.Find(tool_funs.SimpleStructToMap(listExchangeCashActivityQuery)); err != nil {
|
|
|
if count, activities, err := exchangeActivityRepository.Find(map[string]interface{}{
|
|
|
"companyId": listExchangeCashActivityQuery.CompanyId,
|
|
|
"activityNameMatch": listExchangeCashActivityQuery.ActivityNameMatch,
|
|
|
"offset": listExchangeCashActivityQuery.Offset,
|
|
|
"limit": listExchangeCashActivityQuery.Limit,
|
|
|
"countDown": 0,
|
|
|
}); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
} else {
|
|
|
for _, activity := range activities {
|
...
|
...
|
|