From 8d03e856488e5c6ff420556701c27084bf50b5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8B=9C=EA=B3=A8=EC=95=BD=EC=82=AC?= Date: Sun, 15 Feb 2026 18:34:39 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A1=B0=EC=A0=9C=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?=20=EC=A0=9C=ED=92=88=20=EC=84=A0=ED=83=9D=20=EB=93=9C=EB=A1=AD?= =?UTF-8?q?=EB=8B=A4=EC=9A=B4=20'=EA=B8=B0=ED=83=80'=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /api/herbs/by-ingredient 엔드포인트에서 specification이 '기타'로 표시되는 문제 수정 - specification 값이 없을 때 '일반'으로 표시 - '세화' 제조사 추가 인식 - 실제 specification 값을 그대로 표시하도록 개선 - 칼럼 헤더 '원산지 선택' → '제품/로트 선택'으로 변경 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app.py | 4 +++- templates/index.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 76f9118..2abe95c 100644 --- a/app.py +++ b/app.py @@ -269,8 +269,10 @@ def get_herbs_by_ingredient(ingredient_code): h.specification, CASE WHEN h.specification LIKE '%신흥%' THEN '신흥' + WHEN h.specification LIKE '%세화%' THEN '세화' WHEN h.specification LIKE '%한동%' THEN '한동' - ELSE COALESCE(h.specification, '기타') + WHEN h.specification IS NULL OR h.specification = '' THEN '일반' + ELSE h.specification END as company_name, COALESCE(SUM(il.quantity_onhand), 0) as stock_quantity, COUNT(DISTINCT il.lot_id) as lot_count, diff --git a/templates/index.html b/templates/index.html index 5a7da18..96b4bb6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -383,7 +383,7 @@ 약재명 1첩당 용량(g) 총 용량(g) - 원산지 선택 + 제품/로트 선택 재고 작업