feat(dispatch): Shopee 플랫폼 추가 + 받는 사람 정보 저장/출고 엑셀
- 플랫폼 TikTok/Shopee 분리: 업로드 화면이 선택에 따라 파일 안내 변경 (TikTok=Order Export xlsx, Shopee=Packing List xlsx / 라벨 PDF 선택) - TikTok Picking List.pdf 업로드 제거(피킹 요약은 데이터 엑셀로 생성) - 파서 공용화 + 헤더 행 자동탐지(Shopee 제목행 대응), 두 포맷 헤더 별칭 통합 - 받는 사람 이름/전화/주소를 박스 단위로 dispatch_db 에 저장(개인정보) · init SQL 갱신 + 기존 DB용 멱등 마이그레이션 dispatch_add_recipient_columns.sql - 출고 작업 카드: Package 제거, 받는 사람 이름(크게)+주소(여러 줄)+전화 표시 - 배치 다운로드 zip 에 취합 출고 엑셀 포함 파일명 YYYY.MM.DD(Ddd)_tictoc.xlsx / _shopee.xlsx (export.py) - 문서(CLAUDE.md, DISPATCH_MODULE.md) PII 보관·Shopee 반영 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -89,8 +89,9 @@ class DispatchStore:
|
||||
"""
|
||||
INSERT INTO dispatch_parcels
|
||||
(batch_id, seq, order_id, package_id,
|
||||
tracking_id, shipping_provider)
|
||||
VALUES (%s,%s,%s,%s,%s,%s)
|
||||
tracking_id, shipping_provider,
|
||||
recipient_name, recipient_phone, recipient_address)
|
||||
VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s)
|
||||
RETURNING id
|
||||
""",
|
||||
(
|
||||
@@ -100,6 +101,9 @@ class DispatchStore:
|
||||
(p.get("package_id") or "").strip(),
|
||||
(p.get("tracking_id") or "").strip(),
|
||||
(p.get("shipping_provider") or "").strip(),
|
||||
(p.get("recipient_name") or "").strip(),
|
||||
(p.get("recipient_phone") or "").strip(),
|
||||
(p.get("recipient_address") or "").strip(),
|
||||
),
|
||||
).fetchone()
|
||||
parcel_id = parcel_row["id"]
|
||||
|
||||
Reference in New Issue
Block a user