Support 1 pickup to N logistics orders with create/pay/schedule APIs, parcel inboundMethod auto-attach, plus allocation-trace and inbound-billing updates already in tree.
Co-authored-by: Cursor <cursoragent@cursor.com>
Move provider/chat APIs from /xhs/ai to /ai, rename t_ai_provider, and require adopted AI analysis on price publish.
Co-authored-by: Cursor <cursoragent@cursor.com>
Re-run forecast billing on draft pre-declare, and expose draftSaved/orderId/serviceNo via ErrorCode/Data/details for clearer place-order failure UX.
Co-authored-by: Cursor <cursoragent@cursor.com>
When rules require postal codes, still quote by same-country snapshot zones as estimated; keep blocking countries not configured at all.
Co-authored-by: Cursor <cursoragent@cursor.com>
Treat itfx body code/msg as business result, store full request/response, and write Data.serviceNo/trackNo back to the order.
Co-authored-by: Cursor <cursoragent@cursor.com>
When destination country has no matching zone, stop using all price zones as fallback; also hide sales products in the domestic pickup group from price-check results and shipping options.
Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce t_employee linked to RBAC users, switch employee numbers to IDE001+, and keep invite bind/newcomer coupon backend changes. Drop retired sql/migrate and seed scripts in favor of db.sql.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add Chinese XML summaries for OMS-Marketing endpoints, and mark OrderService batch worker methods internal to stop OMS-Order swagger generation conflicts.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add referrer-list aggregation, customer-code filters, and idempotent marketing seed data with customer 9 as referrer and 8 as referee.
Co-authored-by: Cursor <cursoragent@cursor.com>
Implement referral, points, coupons, commission, member levels, and order integration with migration SQL and background jobs.
Co-authored-by: Cursor <cursoragent@cursor.com>
Persist group/app/API provider display names in sales product and service channel rules publish snapshots, and resolve trajectory ApiCode from the service channel API provider code instead of forecast code.
Fix UpsertSmallBag ApiCode/TrackNo assembly and MQ-disabled direct fallback; append lifecycle tracks on parcel create, inbound, and outbound. Redact channel fields for customer order list.
Co-authored-by: Cursor <cursoragent@cursor.com>
Restore InvalidOperationException on system failures after EventBus refactor; use OrderTaskStatusCodes when syncing import tasks.
Co-authored-by: Cursor <cursoragent@cursor.com>
Reserve 0 as None for byte enums and align customer group labels with dict codes; add OrderTaskStatusCodes for import task status strings.
Co-authored-by: Cursor <cursoragent@cursor.com>