From caa0c602db704141aae507611a8ca1a4b982541d Mon Sep 17 00:00:00 2001 From: zhanhuasheng Date: Wed, 24 Jul 2024 18:41:15 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20-=20channel=E4=B8=AD=E7=9A=84memberCou?= =?UTF-8?q?nt=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TestFile/inbox/channel_select.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TestFile/inbox/channel_select.py b/TestFile/inbox/channel_select.py index eb57eef..b5aa95e 100644 --- a/TestFile/inbox/channel_select.py +++ b/TestFile/inbox/channel_select.py @@ -18,16 +18,16 @@ channel_open_room_select_result = test_env_conn.select_many_value(sql=channel_op setattr(channelData, 'channel_open_room_num', len(channel_open_room_select_result)) setattr(channelData, 'channel_open_room_num_add', len(channel_open_room_select_result) + 1) -customer_service_select_sql = f'select * from `rel_customerservice_brand` where brand_id = {channelData.brandId} and is_delete = 0' +customer_service_select_sql = f'select * from `rel_customerservice_brand` where brand_id = {channelData.brandId} and is_delete = 0 and is_activation = 1' customer_service_select_result = test_env_conn.select_many_value(sql=customer_service_select_sql) customer_service_id_list = set([i['customer_service_id'] for i in customer_service_select_result]) -customer_service_list_select_sql = f'select * from `customer_service` where id in {tuple(customer_service_id_list)} and customer_type = 0' +customer_service_list_select_sql = f'select * from `customer_service` where id in {tuple(customer_service_id_list)}' customer_service_list_select_result = test_env_conn.select_many_value(sql=customer_service_list_select_sql) end = 0 for cs in customer_service_list_select_result: for customer in customer_service_select_result: - if customer['customer_service_id'] == cs['id'] and customer['is_activation']: + if customer['customer_service_id'] == cs['id'] and cs['customer_type'] == 0: customer_service_id = customer['customer_service_id'] setattr(channelData, 'customer_service_name', cs['name']) setattr(channelData, 'customer_service_image', cs['profile']) -- GitLab