diff --git a/TestFile/customer/customer_select.py b/TestFile/customer/customer_select.py index d0cbbb8def45ccc812b78a20270041c3b0e078e3..8673d57d6fffc8a1bd9786aa020039371e28c439 100644 --- a/TestFile/customer/customer_select.py +++ b/TestFile/customer/customer_select.py @@ -1,7 +1,7 @@ from Utils.sql_handler import test_env_conn from TestData.customer.customer_test_data import customerData -customer_select_sql = f'select * from `customer` where brand_id = {customerData.brandId} and email != "" and email not like "%@willdeskvisitor.com%" order by create_at desc' +customer_select_sql = f'select * from `customer` where brand_id = {customerData.brandId} and (email != '' or phone != '') and email not like "%@willdeskvisitor.com%" order by create_at desc' customer_select_result = test_env_conn.select_many_value(sql=customer_select_sql) customer_num = len(customer_select_result)