diff --git a/backend/check_megace_code.py b/backend/check_megace_code.py new file mode 100644 index 0000000..aa5c79f --- /dev/null +++ b/backend/check_megace_code.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +import requests + +# 메게이스 검색 +res = requests.get('http://localhost:7001/api/geoyoung/stock?keyword=메게이스', timeout=30).json() + +print("=== 지오영 메게이스 검색 결과 ===") +for item in res.get('items', []): + internal = item.get('internal_code', '') + spec = item.get('specification', '') + name = item.get('product_name', '')[:35] + kd = item.get('insurance_code', '') + print(f" 내부코드: {internal:8} | KD: {kd} | spec: {spec:6} | {name}") + +print() +print("찾는 내부코드: 043735") diff --git a/backend/check_megace_fixed.py b/backend/check_megace_fixed.py new file mode 100644 index 0000000..c3cd7ac --- /dev/null +++ b/backend/check_megace_fixed.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +import requests + +res = 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 res.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']}") + print() diff --git a/backend/templates/admin_rx_usage.html b/backend/templates/admin_rx_usage.html index 3812d86..59484c2 100644 --- a/backend/templates/admin_rx_usage.html +++ b/backend/templates/admin_rx_usage.html @@ -778,7 +778,7 @@ - +