Commit Graph

184 Commits

Author SHA1 Message Date
zzh
8376e03aa9 feat: 创建代发必绑,解绑回退直发并补事务
All checks were successful
Build and Deploy / deploy (push) Successful in 1m21s
绑定保存/清空/扣减与删单走事务;工作台与 status-counts 不再统计 pendingBind。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 11:23:23 +08:00
zzh
80830e310f fix: harden warehouse rent with lot backfill, billing lock, and unpaid inbound block
All checks were successful
Build and Deploy / deploy (push) Successful in 1m17s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 15:26:55 +08:00
zzh
52df7307f6 feat: 仓租费率与日结扣费接入账户流水,并补充待支付微信通知
All checks were successful
Build and Deploy / deploy (push) Successful in 1m20s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 14:56:54 +08:00
zzh
2014ec3065 feat: 接入微信公众号订单状态模板通知
All checks were successful
Build and Deploy / deploy (push) Successful in 1m21s
支持入库/出库/签收/派送失败/问题件推送,客户默认可选订阅,运营可配模板并试发。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 14:10:01 +08:00
zzh
79ebe77666 feat: 落地数据权限审计与公告一键已读
All checks were successful
Build and Deploy / deploy (push) Successful in 1m23s
补齐访问审计与订单/财务侧数据权限接入,并增加公告批量确认已读接口。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 00:07:57 +08:00
zzh
d8f6a5c2b9 feat: 数据权限增加模块接入标记与订单可见量预览
All checks were successful
Build and Deploy / deploy (push) Successful in 1m19s
便于运营在配置页识别未落地模块,并按目标用户抽样验收订单范围。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-14 22:45:54 +08:00
zzh
13997ae5d0 feat: 单号规则支持截取模式,扫描条码按规则解析后再查单
All checks were successful
Build and Deploy / deploy (push) Successful in 1m17s
新增 Generate/Extract 模式、匹配预览与运营扫描链路接入,并补充迁移种子与解析单测。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-14 19:28:10 +08:00
zzh
0e68f7a87e feat: 单号规则可配置生成(运单/客户单号/揽收/大包/主单)
All checks were successful
Build and Deploy / deploy (push) Successful in 1m18s
支持按产品、渠道、国家匹配占位符公式,未命中沿用内置规则。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-14 18:12:52 +08:00
zzh
3dfb587143 fix: 定价工作台预览分区显示可读名而非明细 Id
All checks were successful
Build and Deploy / deploy (push) Successful in 1m17s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 12:58:50 +08:00
zzh
d1beefb2be feat: 定价工作台买价反推卖价预览与草稿回写
All checks were successful
Build and Deploy / deploy (push) Successful in 1m16s
支持多渠道最低买价对齐合成、毛利率硬计算预览,以及回写销售产品草稿卖价(不自动发布)。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 11:19:36 +08:00
zzh
8a4a0787cd feat: 客户余额人工调整写入账户流水
All checks were successful
Build and Deploy / deploy (push) Successful in 1m17s
新增 /customer/adjust-balance;更新接口忽略直接改余额,避免无痕调整。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 17:34:45 +08:00
zzh
f453661e46 feat: AI 对话支持 ops 受众,运营端不挂客户 MCP 工具
All checks were successful
Build and Deploy / deploy (push) Successful in 1m20s
Audience=ops 时强制空工具并切换运营排障系统提示,避免误调查价/轨迹/对客说明。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 14:33:28 +08:00
zzh
9e45e7f185 feat: 营销分析增加积分健康度汇总接口
All checks were successful
Build and Deploy / deploy (push) Successful in 2m4s
按流水时间统计发放/扣回/调账与环比趋势,并返回账户可用积分时点沉淀。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-11 08:59:14 +08:00
zzh
6b00451914 feat: 营销/代理分析汇总 API,并补应收应付代理字段
All checks were successful
Build and Deploy / deploy (push) Successful in 1m18s
为老板看板提供服务端区间汇总(总览、排行/漏斗与导出),应收应付列表带上 AgentId 供财务分析代理维使用。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-10 18:32:39 +08:00
zzh
c847fadd06 feat: sync-status 返回价格发布是否需审批
All checks were successful
Build and Deploy / deploy (push) Successful in 1m15s
供前端发布弹窗按 ApprovalRequired 切换提交文案。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-09 09:40:27 +08:00
zzh
6e061323e9 fix: 审批 Handler 注入与价格失败态重提支持
All checks were successful
Build and Deploy / deploy (push) Successful in 1m18s
显式注册 IApprovalOperationHandler,稳定 sync 哈希,并回填驳回/执行失败供重提。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-09 09:35:48 +08:00
zzh
2ca7d0c1d6 feat: 价格发布审批态通知与充值入账接入审批
All checks were successful
Build and Deploy / deploy (push) Successful in 1m22s
补齐价格 sync-status 在途审批字段与站内信通知;充值提交走审批门面,终审入账/驳回同步记录。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-09 08:57:43 +08:00
zzh
c3283f110f feat: 销售产品价格发布接入审批门面
All checks were successful
Build and Deploy / deploy (push) Successful in 1m16s
启用 Channel.SalesProduct.PublishPrice 后冻结快照建单,终审通过再落发布记录;未配置则 Bypass 直发。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 18:43:06 +08:00
zzh
649b84c1b0 feat: 新增单级可配置审批引擎与配置/待办 API
All checks were successful
Build and Deploy / deploy (push) Successful in 1m18s
一期落地定义、实例、任务、事件及模拟提交通路,业务接入后续再挂 Operation Adapter。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 18:27:41 +08:00
zzh
2984b9c885 feat: 大包/主单面单打印与标签类型 shipBag、shipMaster
All checks were successful
Build and Deploy / deploy (push) Successful in 1m16s
支持按模板批量出签,并补齐件重尺等字段与设计器预览字段。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 17:55:51 +08:00
zzh
8f43684217 feat: 出库大包/内部主单 API,并固化 DDL 审计字段规范
All checks were successful
Build and Deploy / deploy (push) Successful in 1m15s
支持可选装袋与打板(可绑外部 MAWB),订单冗余归属字段;README/sql 约定对齐 t_outbound_record 审计列写法。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 16:53:46 +08:00
zzh
c4eb12c3ee feat: 支持可配置充值收款码,并补客户监控下钻筛选
All checks were successful
Build and Deploy / deploy (push) Successful in 5m14s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-07 12:33:53 +08:00
zzh
9bbdd73690 feat: 批量邮件记录关键词查询与近30天查重预检
All checks were successful
Build and Deploy / deploy (push) Successful in 1m56s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 14:59:12 +08:00
zzh
07f589d57b feat: 代理返佣下单预计与 Outbox 异步落库
All checks were successful
Build and Deploy / deploy (push) Successful in 1m12s
下单写 estimated、终态锁定 pending、取消/退款 void;打款仅认 pending,写入走集成事件异步消费。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 11:06:51 +08:00
zzh
b6831bad1d feat: 代理门户能力与客户绑定代理改绑
All checks were successful
Build and Deploy / deploy (push) Successful in 1m14s
补齐工作台/名下客户订单返佣、注册校验与运营端客户 AgentId 改绑,订单列表按代理快照过滤。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 10:18:32 +08:00
zzh
1d987cde6e feat: 新增渠道代理注册归因与返佣明细
All checks were successful
Build and Deploy / deploy (push) Successful in 1m13s
独立 Agent 主体与 loginType=2,注册绑定/下单快照,派送成功失败计提明细,不含提现入账。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-29 17:18:07 +08:00
zzh
221a2c8a66 feat: KPI分区明细列表支持起始/截止邮编排序
All checks were successful
Build and Deploy / deploy (push) Successful in 1m13s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-29 16:37:33 +08:00
zzh
8a4848644f feat: KPI分区明细列表支持表头字段后端筛选
All checks were successful
Build and Deploy / deploy (push) Successful in 1m22s
EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-29 16:04:02 +08:00
zzh
efbb18c7c3 feat: AI 提供商列表明文回传默认模型,并按类型回落模型名
All checks were successful
Build and Deploy / deploy (push) Successful in 1m17s
ApiSecret 实际承载文字主模型,列表不再脱敏;未配置时 Chat 按厂商默认模型回落。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-28 10:32:59 +08:00
zzh
3c85b7325f feat: 运单发货后状态变更接口
Some checks failed
Build and Deploy / deploy (push) Failing after 45s
新增 ChangePostShipStatus,限制发货后四态白名单,妥投成功仅可进入不可改出。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-26 11:46:33 +08:00
zzh
a69e69d5b6 feat: 查价表单下拉支持匿名加载,供 H5 访客先选仓/国家/属性
All checks were successful
Build and Deploy / deploy (push) Successful in 1m44s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-26 10:04:09 +08:00
zzh
ca95e19186 feat: SKU/预报下游申报明细带产品标识编码三字段
All checks were successful
Build and Deploy / deploy (push) Successful in 1m0s
库内 SKU 与 createOrderOne items 对齐 productId/nonStdProductId/stdProductId;无值时仍序列化为 null。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 11:19:12 +08:00
zzh
6021562fea feat: 入库预报支持预报/待入库编辑,唛头选填
All checks were successful
Build and Deploy / deploy (push) Successful in 1m5s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-22 18:54:33 +08:00
zzh
8a1649ea66 feat: 入库箱唛/SKU 标签打印与订单改销售产品
All checks were successful
Build and Deploy / deploy (push) Successful in 1m13s
支持按 box/sku 模板生成 PDF;待支付前可改产品并自动重排货重算费。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-22 18:39:07 +08:00
zzh
7ed8fd8e8a feat: 店铺创建运单支持基本信息覆盖,无事务时同步执行创单副作用
All checks were successful
Build and Deploy / deploy (push) Successful in 1m0s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-20 11:23:15 +08:00
zzh
e931606a75 feat: 9610 支持从已有运单批量创建汇总申报单
All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s
- 新增 POST /order/customs-9610/create-from-orders:运单设为 9610Summary 并绑定出口资质备案(空则客户默认),按申报明细生成待申报单
- 逐单返回结果:已删除、已有 9610 单、无申报明细、无可用备案记为失败,不影响其它运单
2026-10-19 16:24:02 +08:00
zzh
314c5ac02f feat: 申报明细新增产品标识编码/非标产品标识编码/标准产品标识编码
All checks were successful
Build and Deploy / deploy (push) Successful in 1m3s
- t_order_declaration 新增 ProductId、NonStdProductId、StdProductId(迁移 migrate_order_declaration_product_ids_20261019.sql)
- 下单/改单/开放接口/Excel 模板入参、订单详情出参、下游 createOrderOne 报文同步字段
- 自动触发公式目录增加三个字段
2026-10-19 15:48:16 +08:00
zzh
d38963055b feat: 支付用券/会员折扣写入负数应收行,订单应收与实付一致
- 支付成功后写入 coupon_discount / member_discount 负数应收(币种、阶段跟随运费行,记录券码/会员等级)
- 营销重算的折前应收排除抵扣行,避免重复扣减;规则公式忽略抵扣行
- 预报/入库计费任务跳过已付款订单,防止重复投递冲掉应收
- 手工新增费用禁止抵扣费用项;费用输出给出抵扣行显示名
- 订单详情返回折前小计、会员折扣、优惠券抵扣、客户实付
- 新增 fee_item 字典迁移 migrate_fee_item_marketing_discount_20261019.sql
2026-10-19 15:48:15 +08:00
zzh
223d32f62a feat: 订单支付时选券,新增支付预览接口并按所选券扣款核销
All checks were successful
Build and Deploy / deploy (push) Successful in 1m3s
- 新增 GET /order/pay-preview:返回会员折/券互斥后的应付拆解与本单可选券
- POST /order/pay 支持 couponInstanceId(null 沿用已绑定券,0 不用券,>0 指定券),按试算应付扣款并核销券、释放被替换券的锁定
- 被当前订单锁定的券视为可用,修复入库/编辑重算营销金额时误报券被占用

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-19 14:01:00 +08:00
zzh
983dff12c5 feat: 店铺订单落库物流商与履约类型,并规范迁移脚本日期命名
All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 18:01:46 +08:00
zzh
8f64bbf02d feat: 国家地区支持增删改与导入,列表返回创建和更新时间
All checks were successful
Build and Deploy / deploy (push) Successful in 1m0s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 15:54:22 +08:00
zzh
c6e765e6e2 fix: 公告列表用 mapId 解析当前用户,管理端可查全部
All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s
同步监控 overview 支持日周月经营指标与积压队列。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 09:48:42 +08:00
zzh
8258ae746e feat: 客户更新接口支持局部字段,并补充开发/SQL 规范说明
All checks were successful
Build and Deploy / deploy (push) Successful in 1m7s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-15 19:53:24 +08:00
zzh
b7be742046 feat: 店铺订单支持仓储代发(wms)建单,放宽创建状态限制
All checks were successful
Build and Deploy / deploy (push) Successful in 4m34s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-14 15:39:31 +08:00
zzh
e85dfb80b5 feat: 仓配开放 API 与后台用户启停
All checks were successful
Build and Deploy / deploy (push) Successful in 1m1s
新增 warehouseOpenApi(Token/入库/件重尺/红外图),并在 fk_user 支持 IsEnabled 禁用登录。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-13 17:53:00 +08:00
zzh
d5d6305f9c feat: 自动触发规则支持 Excel 导入与模板下载
All checks were successful
Build and Deploy / deploy (push) Successful in 1m2s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-12 15:31:19 +08:00
zzh
6c3a094126 feat: 下游 getFile 转存 COS,并修复集成事件 Outbox 事务
All checks were successful
Build and Deploy / deploy (push) Successful in 1m1s
新增获取下游文件接口;事件发布统一走事务性 UoW,避免批量预报等按钮报 Outbox 错误。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 18:45:40 +08:00
zzh
8df0f37165 feat: 订单编辑支持服务商单号并完善操作日志快照
All checks were successful
Build and Deploy / deploy (push) Successful in 1m0s
开放 DownstreamServiceNo 更新,补充包裹计费相关操作码与字段快照,便于运单详情编辑留痕。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 16:27:49 +08:00
zzh
64737284f3 feat: 运单操作日志改为列表摘要,补齐费用/支付/预报/打印埋点
All checks were successful
Build and Deploy / deploy (push) Successful in 1m3s
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 11:46:33 +08:00
zzh
dcd985bca4 feat: 创单/出入库后置副作用接入 Fake.EventBus,预报计费排货走 MQ
将轨迹、面单、9610、揽收、自动触发与 ForecastBilling 异步化,缩短扫码与下单 RT;队列未启用时同步回落。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 10:54:24 +08:00