作者 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()
... ...