Commit 2b9f5c00 by 林冲

第一个脚本修改 rule_audit_id IS NULL

1 parent 8a3e8e60
...@@ -168,7 +168,7 @@ def main(): ...@@ -168,7 +168,7 @@ def main():
9: ('处理自动分账配置表(表13)', processor.step9_process_division_rule_auto), 9: ('处理自动分账配置表(表13)', processor.step9_process_division_rule_auto),
10: ('处理对账规则主表(表9)', processor.step10_process_reconciliation_rule), 10: ('处理对账规则主表(表9)', processor.step10_process_reconciliation_rule),
11: ('处理对账分组规则表(表10)及级联', processor.step11_process_reconciliation_rule_group), 11: ('处理对账分组规则表(表10)及级联', processor.step11_process_reconciliation_rule_group),
12: ('处理审核记录表(表12)', processor.step12_process_rule_audit), # 12: ('处理审核记录表(表12)', processor.step12_process_rule_audit),
13: ('处理生效记录表(表11)', processor.step13_process_effect_record), 13: ('处理生效记录表(表11)', processor.step13_process_effect_record),
} }
......
...@@ -2309,7 +2309,7 @@ class SceneSplitProcessor: ...@@ -2309,7 +2309,7 @@ class SceneSplitProcessor:
self.step13_1_update_existing_base_scene_code() self.step13_1_update_existing_base_scene_code()
# 子步骤 13.2:从审核表补全生效记录(现有逻辑) # 子步骤 13.2:从审核表补全生效记录(现有逻辑)
self.step13_2_sync_from_audit() # self.step13_2_sync_from_audit()
# 子步骤 13.3:从规则表补全未经审核的记录 # 子步骤 13.3:从规则表补全未经审核的记录
self.step13_3_sync_from_rule_tables() self.step13_3_sync_from_rule_tables()
...@@ -2421,7 +2421,6 @@ class SceneSplitProcessor: ...@@ -2421,7 +2421,6 @@ class SceneSplitProcessor:
FROM {table_name} FROM {table_name}
WHERE rule_id = {old_settle_rule_id} WHERE rule_id = {old_settle_rule_id}
AND rule_type = 1 AND rule_type = 1
AND rule_audit_id IS NULL
ORDER BY updated_date DESC, created_date DESC ORDER BY updated_date DESC, created_date DESC
LIMIT 1; LIMIT 1;
""" """
...@@ -2573,7 +2572,6 @@ class SceneSplitProcessor: ...@@ -2573,7 +2572,6 @@ class SceneSplitProcessor:
FROM {table_name} FROM {table_name}
WHERE rule_id = {old_reconciliation_rule_id} WHERE rule_id = {old_reconciliation_rule_id}
AND rule_type = 3 AND rule_type = 3
AND rule_audit_id IS NULL
ORDER BY updated_date DESC, created_date DESC ORDER BY updated_date DESC, created_date DESC
LIMIT 1; LIMIT 1;
""" """
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!