2026-07-26 세션 — 배차 「화물앱 접수」 연동 (테스트 서버 전용) — 기록: [코디]
후속(같은 배포 세션에서 버튼이 다시 잠김) =
session-2026-07-29-deploy-ab-freight-monthlyclose.md「후속 QA(같은 날)」 참조 —FREIGHT_ENABLED=false게이트로 운영은 '준비중입니다' 상태.
논의·대안 / 결정
- 배차 모달 = 화물앱 접수 폼으로 확장: 차량 19종(앱 톤수 15 기준)·차량종류(톤수 종속)·상/하차 방법·일시, 화물중량은 규칙 자동(다마스·라보·1T=0.2, 그 외 톤수×50%). 등록·수정 같은 모달이라 양식 통일. 목록에 화물앱 진행상태 배지.
- 스키마 =
dispatch멱등 ALTER 8컬럼(car_type·load_method·load_time·unload_method·unload_time·freight_status·freight_msg·freight_at). API =GET /api/dispatch/freight-queue,PATCH /api/dispatch/<no>/freight(상태 화이트리스트). - 근본수정 2건: ①
insert_dispatch가 늘dispatch_no=0반환(SELECT LAST_INSERT_ID()는 커넥션이 달라 0) →MySQLUtil.execute_id(cursor.lastrowid) 신설·사용 ②flask_restplus에서return jsonify(...), 400은 500으로 터진다 → dict 반환. (같은 패턴이DispatchList.post등에도 남아 있음 — 건드리지 않음.)
산출물·커밋
검증 = scripts/test_freight_api.py 6항목 PASS(테스트서버 실 API) + scripts/test_freight_vehicle_map.js(차량/톤수 매핑·중량식). 실기기 E2E는 poin-agent handoff 참조. 운영(deploy-live) 미반영 — 페페 지시 대기(이후 후속 QA 로 버튼 자체가 게이트로 잠김, 위 참조).
관계
- 주제 그룹: pfs-dispatch
- 관련:
session-2026-07-29-deploy-ab-freight-monthlyclose.md,session-2026-08-27-dispatch-rate-history-watch.md