32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
import requests
|
|
|
|
# 지오영 확인
|
|
geo = requests.get('http://localhost:7001/api/geoyoung/orders/summary-by-kd?start_date=2026-03-07&end_date=2026-03-07', timeout=120).json()
|
|
print("=== 지오영 ===")
|
|
for kd, info in geo.get('by_kd_code', {}).items():
|
|
if '라니넥스' in info['product_name'] or '나잘' in info['product_name']:
|
|
print(f" KD: {kd}")
|
|
print(f" product_name: {info['product_name']}")
|
|
print(f" spec: {info['spec']}")
|
|
print(f" boxes: {info['boxes']}")
|
|
print(f" units: {info['units']}")
|
|
print()
|
|
|
|
# 수인 확인
|
|
sooin = requests.get('http://localhost:7001/api/sooin/orders/summary-by-kd?start_date=2026-03-07&end_date=2026-03-07', timeout=120).json()
|
|
print("=== 수인약품 ===")
|
|
found = False
|
|
for kd, info in sooin.get('by_kd_code', {}).items():
|
|
if '라니넥스' in info['product_name'] or '나잘' in info['product_name']:
|
|
print(f" KD: {kd}")
|
|
print(f" product_name: {info['product_name']}")
|
|
print(f" spec: {info['spec']}")
|
|
print(f" boxes: {info['boxes']}")
|
|
print(f" units: {info['units']}")
|
|
found = True
|
|
print()
|
|
|
|
if not found:
|
|
print(" (없음)")
|