9d813a5f89
feat: 代发订单 FulfillmentType 与进度筛选、绑定拣货后端
...
支持 direct/warehouse 分轨、代发进度与库位排序、国内单号检索及到仓关联订单;扩展 SKU/店铺代发与库存绑定扣减能力。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 10:27:37 +08:00
95940331ce
feat: sync workplace spend stats and consolidate schema scripts into db.sql
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 16:26:22 +08:00
9a33eb00a5
feat: add knowledge base M1 APIs and workplace spend trend
2026-08-04 13:54:10 +08:00
b2355104cf
feat: 完善揽收单与问题件处理能力
...
补齐揽收单字段/并发戳与问题件处理人配置,扩展异常工作流与下单同步揽收出参;移除已收货状态并补充相关 SQL 脚本。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 11:49:23 +08:00
c02cb21049
feat: add pickup-order model and door-pickup linking
...
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>
2026-08-03 12:22:30 +08:00
c8107cb565
feat: add additional-service billing, conditions, and fee lifecycle hardening
...
Support optional services and executable billing conditions on sell/buy prices, percent-of-value and percent-of-freight formulas, place-order/inbound payable on chargeable weight, outbound receivable freeze, channel remote areas, billing simulate, and insurance-aware claims.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 18:04:28 +08:00
592054f062
feat: extract global AI service and persist sales-product publish AI reports
...
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>
2026-08-01 15:56:40 +08:00
206dc3ef3c
feat: ??????????????????????????
...
?????????????????????????????????? SQL?
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 15:16:55 +08:00
e0216e9692
feat: 销售产品贸易条款与查价分组展示,并修复用户资料 SQL 空值写入
...
查价返回 DDP/DDU 与产品分组;用户更新微信二维码时避免 EF 使用 DBNull。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 11:48:36 +08:00
f2f4cbf35b
fix: 无邮箱注册改用占位邮箱,避免空串撞 uk_user_email
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-29 18:28:33 +08:00
7c410b1625
feat: 新增轻量 MCP 工具与 AI Agent,并限制 token 滥用
...
提供查价格/对客说明/查轨迹工具与管理接口;扩展 LLM function calling;按用户 Redis 限流并压缩上下文与工具结果。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-29 12:03:45 +08:00
53c986c746
fix: 修复智谱 AI 对话 URL,并合并自动触发预报时机
...
XhsLlmClient 对 /v4 基址不再错误拼接 /v1;自动触发「预报」归一为「下单」并补充迁移 SQL;下单失败支持存草稿相关入参与计费回滚调整。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 20:54:28 +08:00
41f4c58e99
Improve draft predeclare billing and structured create-fail payload.
...
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>
2026-07-28 19:30:27 +08:00
03f11a276f
Add order attachment files table and move system labels off Order.
...
Persist generated/printed/downstream labels in t_order_file, drop Order.LabelUrl generate-status fields, and expose file list/upload/delete APIs with customer read-only systemLabel access.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 16:32:55 +08:00
6f436f795f
Fix downstream forecast success detection and persist provider service no.
...
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>
2026-07-28 10:21:23 +08:00
69d234c705
feat: simplify WeChat register and require contact before order
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 13:07:29 +08:00
c5fb4c7e58
feat: add employee profile, IDE employee nos, and marketing invite/coupon fixes
...
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>
2026-07-26 23:18:57 +08:00
8f043599ec
feat: enrich marketing admin APIs and add seed for customer 9/8
...
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>
2026-07-24 10:44:26 +08:00
89233bc3da
feat: add customer marketing module (M1-M6 backend)
...
Implement referral, points, coupons, commission, member levels, and order integration with migration SQL and background jobs.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 16:42:08 +08:00
3d5eaa223a
feat: 小包全链路加固、待排货与运单号 IDE 前缀
...
查价/下单/入库/出库统一校验与计费上下文;待排货状态及可选入库排货;运单号改为 IDE+yyMMddHHmmss;补充迁移 SQL 与测试修复。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 19:00:55 +08:00
c2d854b83f
fix: 批量任务详情查询不再写库,修复 ConcurrencyStamp 冲突
...
- MapJobOutputAsync 改为只读聚合,GET /jobs/{id} 不再 UpdateJob
- /jobs/{id}/items 仅校验存在,避免并行查询双写
- 重写 migrate_rename_warehouse_C_to_c.sql,支持 Navicat 与大小写两步改名
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 16:51:13 +08:00
a1daea6b35
refactor: 仓储表 C_* 改为 c_*,优化专线小包批量模板
...
- 仓储实体与 db.sql 统一为小写 c_ 前缀,新增 migrate_rename_warehouse_C_to_c.sql
- 专线小包批量模板精简版/标准版双模板,Excel 必填标红与发件地址上传参数
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 16:18:59 +08:00
078e3387e6
chore: 触发重新发布,修复上传仍访问 t_order_task 的问题
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 12:50:16 +08:00
bb09a51f4a
refactor: 合并 OrderTask 至批量任务,移除 t_order_task 依赖
...
Excel 导入与任务进度统一走 t_order_batch_job;删除旧实体、仓储与 /order/task/* 接口,上传返回 jobId。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 12:36:57 +08:00
377cc525d6
feat: 增强批量任务子项反馈与客户单号持久化
...
统一成功/失败结果快照,补全客户单号与 Excel 行号;系统重试耗尽后标记失败避免子项长期停留在执行中;任务 API 返回 pending/running/cancelled 计数。
2026-07-22 12:00:53 +08:00
793085607a
refactor: 字节枚举整型落库并统一发布快照 Status
...
发布记录 Status 改为 EsSnapshotStatus(TINYINT),计费启用判断改用 EnableStatus;db.sql 与 migrate_enum_int_comments.sql 补全枚举字段注释及旧库迁移。
2026-07-22 10:22:54 +08:00
5a2d56986a
fix: 字典创建支持恢复软删项并完善类型迁移脚本
...
批量导入时若同类型编码曾被软删,改为恢复并更新而非插入,避免唯一键冲突 500;迁移脚本补全预置类型中文名并支持覆盖 Remark/TypeSort。
2026-07-21 18:49:59 +08:00
93cf065165
feat: 新增字典类型元数据表与类型备注 API
...
支持字典类型备注维护及左侧类型列表查询,创建字典项时自动补齐类型元数据。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-21 17:48:42 +08:00
188aed1ee6
feat: 店铺订单创建物流/代发,并补齐收件人字段与种子数据
...
- 新增 batch-create-logistics / batch-create-fulfill:按平台行建物流单并回写 LinkedOrderId,代发支持绑定冻结与失败回滚
- ParcelBuilder 支持无 SKU 映射的平台行申报;批量创建可指定 OrderSource=platform
- 库存绑定候选接口支持 orderId=0 草稿选仓
- 店铺订单增加结构化收件人字段(db.sql + 迁移脚本),拉单回填;补充 customer9 店铺/揽收种子与 ConcurrencyStamp 修复脚本
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-19 22:33:55 +08:00
b679151eb1
feat: Hiprint模板转QuestPDF异步出面单,并接通打印链路
...
支持模板预览/字段字典、产品绑定 LabelTemplateId、订单 Pending→Ready 生成 PDF,以及 order/print、批量与仓内 printUrl。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 14:52:39 +08:00
f4ddd993b9
feat: 管理端列表返回客户名称/编码,并加固绑定与客户会话
...
订单/包裹/库存/店铺授权/店铺订单列表补充 customerName、customerCode;库存绑定按会话客户解析并兼容可用量;修复客户 mapId 识别与 ConcurrencyStamp 迁移。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 11:10:53 +08:00
dc3071c90d
feat: 物流单绑定包裹/库存(冻结可用库存)
...
支持我的订单对已创建物流单绑定仓储资源:新增 t_order_stock_bind 与 stock-bind API,库存/包裹增加 FrozenQty、AvailableQty。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 10:32:44 +08:00
c2c03f63e3
feat: 店铺平台 OAuth 配置迁入其他配置页
...
运行时优先读 t_system_other_config,修正管理端客户提示文案,并提供配置种子 SQL。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 11:03:02 +08:00
674cbdd011
feat: 店铺真授权跳转与地址类型(发件/退件/收件)
...
对接 Lazada/Shopee/TikTok/Temu OAuth 与回调落库,移除手工店;地址管理支持按类型默认与揽收校验。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 10:25:13 +08:00
341a318f0b
feat: 客户发件地址与揽收订单,复用小包创建全链路。
...
新增地址簿 CRUD、pickup/create、订单 orderSource 筛选;附带包裹商品图片上传接口。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 18:58:48 +08:00
4b7c396d92
包裹明细增加商品图片 ImageUrl,支持采集落库与列表返回。
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 14:32:55 +08:00
f0d0659750
包裹明细增加 AttributeText 属性字段。
...
EOF
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 20:10:39 +08:00
d0df7e864c
新增快递到仓 API 与表结构,并支持 SKU 图片上传。
...
EOF
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 20:06:47 +08:00
600ab37594
统一 OMS DDL 到 db.sql,并新增采集插件草稿 API。
...
清理 sql/ 增量与种子脚本;E2E 不再依赖种子;PluginBrowserService 对接哪哪发「我的包裹」采集。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 19:44:09 +08:00
7e90112cbf
完善仓储客户上下文解析(未传客户查全部),并补充库位与确认收货权限种子。
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 11:12:41 +08:00
fb61fbb072
修复仓储/店铺列表 ConcurrencyStamp 缺失与可空客户ID的 SQL 翻译错误。
...
补迁移脚本为 C_* 与 t_sales_* 表增加 ConcurrencyStamp;列表查询改用 hasCustomerFilter 模式避免 ORM 生成非法 SQL。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 16:48:05 +08:00
a383ee6f32
feat: 实现仓储模块与平台店铺订单后端能力
...
新增仓储领域实体、仓储库、WarehouseService 全套接口及数据库迁移脚本;
实现店铺授权、店铺订单服务与库存匹配创建小包单;补充仓储模块 RBAC 权限种子数据。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 15:19:35 +08:00
43563b727f
feat: 自动触发公式引擎与查价运输方式分组接口
...
实现中文公式预报前拦截、规则测试 API 及按销售产品分组返回查价运输方式选项。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 18:36:17 +08:00
d3a95a6bad
chore: 移除指引页 RBAC 种子 SQL
...
菜单与轨迹一致,通过 generate-menu-excel 导入维护,不单独维护 seed 脚本。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 15:38:05 +08:00
1e88f08247
fix: 指引菜单 PermissionCode 与轨迹一致使用 Order/Channel
...
便于 RBAC 权限过滤与角色菜单展示。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 15:34:49 +08:00
ce53385590
feat: 订单与渠道新手指引 RBAC 菜单种子
...
补充 /order/guide、/channel/guide 菜单项,便于侧边栏展示与动态路由下发。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 15:28:55 +08:00
27e7ade388
feat: 销售产品对客说明字段与保存接口
...
支持 CustomerGuideMarkdown 存储、迁移脚本及 customer-guide/save API,完善销售产品详情输出。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 15:17:36 +08:00
3818ce7876
feat: RBAC用户扩展、专属顾问接口及仓库字段清理
...
接管用户 API 支持电话/工号/微信号/微信二维码,新增客户专属顾问查询,并移除仓库客服电话与微信相关字段。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 11:23:54 +08:00
d8752959e7
feat(order): 强化小包下单规则并暴露预报失败原因
...
客户单号必填且同客户唯一,运单号统一 NE 前缀自动生成;模板导入不再接受跟踪号/运单号;列表与导出返回预报失败原因字段。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 09:44:12 +08:00
9ab112a36e
feat(order): 下单模板映射与 Excel 批量导入小包创建
...
新增专线小包标准模板生成、自定义列映射 API,并将 /order/upload 改为按映射解析 Excel 后走 CreateParcelCoreAsync;列表查询时自动补齐标准模板种子数据。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 16:42:22 +08:00