Commit b1436872 by 林冲

去掉指定测试商户

1 parent 1f7a724e
......@@ -71,7 +71,7 @@ class SceneSplitProcessor:
updated_by = '{DATA_MIGRATION_USER}',
updated_date = NOW()
WHERE
scene_type = {scene_type} and merchant_id = 44210895
scene_type = {scene_type}
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
if self.db.execute_update(update_sql):
......@@ -99,7 +99,7 @@ class SceneSplitProcessor:
SELECT id, source, merchant_id, scene_type, enable_flag, submit_flag,
created_by, created_date, updated_by, updated_date, deleted_flag
FROM {table_name}
WHERE scene_type = 0 AND (base_scene_code IS NULL OR base_scene_code = '') and merchant_id = 44210895;
WHERE scene_type = 0 AND (base_scene_code IS NULL OR base_scene_code = '');
"""
records = self.db.execute_query(query_sql)
self.logger.info(f" 找到 {len(records)} 条需要拆分的记录")
......@@ -124,7 +124,7 @@ class SceneSplitProcessor:
updated_by = '{DATA_MIGRATION_USER}',
updated_date = NOW()
WHERE
scene_type = 0 and merchant_id = 44210895
scene_type = 0
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
self.logger.info(f" 执行更新SQL: {update_sql.strip()}")
......@@ -259,7 +259,7 @@ class SceneSplitProcessor:
SET base_scene_code = '{base_scene_code}',
updated_by = '{DATA_MIGRATION_USER}',
updated_date = NOW()
WHERE scene_type = {scene_type} and merchant_id = 44210895
WHERE scene_type = {scene_type}
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
if self.db.execute_update(update_sql):
......@@ -293,7 +293,7 @@ class SceneSplitProcessor:
reality_shop_merchant_id, reality_shop_merchant_name, reality_shop_user_type, reality_shop_level,
rule_audit_id, created_by, created_date, updated_by, updated_date, deleted_flag
FROM {table_name}
WHERE scene_type = 0 and merchant_id = 44210895
WHERE scene_type = 0
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
records = self.db.execute_query(query_sql)
......@@ -318,7 +318,7 @@ class SceneSplitProcessor:
SET base_scene_code = '{first_code}',
updated_by = '{DATA_MIGRATION_USER}',
updated_date = NOW()
WHERE scene_type = 0 and merchant_id = 44210895
WHERE scene_type = 0
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
if self.db.execute_update(update_sql):
......@@ -1533,7 +1533,7 @@ class SceneSplitProcessor:
SET base_scene_code = '{base_scene_code}',
updated_by = '{DATA_MIGRATION_USER}',
updated_date = NOW()
WHERE scene_type = {scene_type} and merchant_id = 44210895
WHERE scene_type = {scene_type}
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
if self.db.execute_update(update_sql):
......@@ -1565,7 +1565,7 @@ class SceneSplitProcessor:
partner_merchant_total_fee_calculate_type, partner_merchant_expense_category_value,
enable_flag, submit_flag, created_by, created_date, updated_by, updated_date, deleted_flag
FROM {table_name}
WHERE scene_type = 0 and merchant_id = 44210895
WHERE scene_type = 0
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
records = self.db.execute_query(query_sql)
......@@ -1590,7 +1590,7 @@ class SceneSplitProcessor:
SET base_scene_code = '{first_code}',
updated_by = '{DATA_MIGRATION_USER}',
updated_date = NOW()
WHERE scene_type = 0 and merchant_id = 44210895
WHERE scene_type = 0
AND (base_scene_code IS NULL OR base_scene_code = '');
"""
if self.db.execute_update(update_sql):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!