作者 tangxvhui

调整时间范围

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