diff --git a/alibabacloud_sample/dataservice.py b/alibabacloud_sample/dataservice.py index 54911d8..ecc7a5e 100644 --- a/alibabacloud_sample/dataservice.py +++ b/alibabacloud_sample/dataservice.py @@ -203,8 +203,10 @@ class DataService: """ if time_out != 'all': sql += " date('now', '-"+time_out+" day') >= date(verify_time) and verify_status == 'success' " - else: + elif verify_status != 'all': sql += " verify_status = '" + verify_status+"'" + else: + sql += " 1 = 1 " if start_date is not None: sql += " and verify_time >= '" + start_date + "'" if end_date is not None: