import json import sys from pathlib import Path sys.stdout.reconfigure(encoding='utf-8') # 1. Load work_item_master to see current master values with open('resources/data_work_item_master/work_item_master_2026-01-01.json', 'r', encoding='utf-8') as f: master = json.load(f) tables = {} for wi in master['work_items']: for t in wi.get('tables', []): tid = t.get('pum_table_id') if tid: tables[tid] = (wi, t) target_ids = ['F0046', 'F0068', 'F0076', 'F0077'] print("=== 마스터 현재 상태 ===") for tid in target_ids: if tid in tables: wi, t = tables[tid] print(f"[{tid}] {wi.get('work_item_code')} - {wi.get('name')}") print(f" section: {t.get('section')}") print(f" pum_form: {t.get('pum_form')} | form_basis: {t.get('form_basis')}") print(f" basis: {t.get('basis_quantity')} {t.get('basis_unit')} | basis_source: {t.get('basis_source')}") print(f" source_line: {t.get('source_line')}") else: print(f"[{tid}] NOT FOUND in work_items")