作者 tangxvhui

调整时间范围

... ... @@ -54,11 +54,11 @@ func (repo *LogSmsRepository) Find(queryOptions map[string]interface{}) (int, []
}
if v, ok := queryOptions["executeAtBegin"]; ok {
query.Where("execute_at<=?", v)
query.Where("execute_at>=?", v)
}
if v, ok := queryOptions["executeAtEnd"]; ok {
query.Where("execute_at>=?", v)
query.Where("execute_at<=?", v)
}
count, err := query.SelectAndCount()
... ...