# -*- coding: utf-8 -*- import requests print("=== 어제 베이슨 주문 (지오영 + 수인) ===\n") # 지오영 geo = requests.get('http://localhost:7001/api/geoyoung/orders/summary-by-kd?start_date=2026-03-06&end_date=2026-03-06', timeout=120).json() print("【지오영】") found = False for kd, info in geo.get('by_kd_code', {}).items(): if '베이슨' in info['product_name']: print(f" KD: {kd}") print(f" 제품명: {info['product_name']}") print(f" spec: {info['spec']}") print(f" boxes: {info['boxes']}") print(f" units: {info['units']}") found = True if not found: print(" (없음)") print() # 수인 sooin = requests.get('http://localhost:7001/api/sooin/orders/summary-by-kd?start_date=2026-03-06&end_date=2026-03-06', timeout=120).json() print("【수인약품】") found = False for kd, info in sooin.get('by_kd_code', {}).items(): if '베이슨' in info['product_name']: print(f" KD: {kd}") print(f" 제품명: {info['product_name']}") print(f" spec: {info['spec']}") print(f" boxes: {info['boxes']}") print(f" units: {info['units']}") found = True if not found: print(" (없음)")