Skip to content

feat(errand): add packaging_fee_share_cents to buyer order detail - #97

Merged
876908 merged 1 commit into
devfrom
feat/buyer-order-packaging-fee
Aug 3, 2026
Merged

feat(errand): add packaging_fee_share_cents to buyer order detail#97
876908 merged 1 commit into
devfrom
feat/buyer-order-packaging-fee

Conversation

@876908

@876908 876908 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor
  • proto: BuyerErrandOrderProductItem 新增 packaging_fee_share_cents (field 10)
  • repo: 新增 CountDistinctPurchasers 统计任务下唯一付款人数
  • service: BuyerOrderProductItem 加字段,calcPackagingFeeShare 按人头分摊
  • handler: 映射到 proto

Summary

Type of Change

  • feat: new feature
  • fix: bug fix
  • refactor: code refactor (no functional change)
  • proto: proto definition change
  • ci: CI/CD configuration
  • chore: dependency update, config change

Affected Services

  • internal/pkg
  • userservice
  • catalogservice
  • paymentservice
  • spotservice
  • errandservice

Proto Changes (if any)

  • Confirmed backward compatible (buf breaking check passed)
  • Contains breaking change — reason and migration plan described above

Checklist

  • make lint passes locally
  • New error paths are handled explicitly
  • .env.example updated if new config vars are added

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedAug 3, 2026, 11:39 AM

- proto: BuyerErrandOrderProductItem 新增 packaging_fee_share_cents (field 10)
- repo: 新增 CountDistinctPurchasers 统计任务下唯一付款人数
- service: BuyerOrderProductItem 加字段,calcPackagingFeeShare 按人头分摊
- handler: 映射到 proto
@876908
876908 force-pushed the feat/buyer-order-packaging-fee branch from eb1057b to f76cda2 Compare August 3, 2026 11:39
@876908
876908 merged commit f9c9fba into dev Aug 3, 2026
2 checks passed
876908 added a commit that referenced this pull request Aug 3, 2026
* fix(errand): GetDistributingTaskDetail 透传 purchased_quantity

DistributingItem 已新增 purchased_quantity 字段(proto + SQL + Row),
但 service 组装处漏了透传,前端收到 nil 导致实购量显示 0、
未采购判断失效。补齐组装透传。

* 列表响应批量补 productTemplate;详情/创建响应用已有内部 catalog/user client 补 productTemplate 和 seller

* 汇总时间截断

* fix errand payment totals and cancel rollback

* fix(payment): prevent PayBill timestamp conflicts (#92)

Co-authored-by: yulian-art <1119253058@qq.com>

* fix lint

* fix lint

* fix:time

* Spot 下单前直接拒绝“买家就是卖家”,避免先扣库存/写订单再跨服务失败;把支付端创建账单的参数校验拆成明确错误,避免所有非法参数都显示成 invalid bill status 和 unknown message

* feat(errand): add packaging_fee_share_cents to buyer order detail

- proto: BuyerErrandOrderProductItem 新增 packaging_fee_share_cents (field 10)
- repo: 新增 CountDistinctPurchasers 统计任务下唯一付款人数
- service: BuyerOrderProductItem 加字段,calcPackagingFeeShare 按人头分摊
- handler: 映射到 proto

* feat(errand): add packaging_fee_share_cents to buyer order detail (#97)

- proto: BuyerErrandOrderProductItem 新增 packaging_fee_share_cents (field 10)
- repo: 新增 CountDistinctPurchasers 统计任务下唯一付款人数
- service: BuyerOrderProductItem 加字段,calcPackagingFeeShare 按人头分摊
- handler: 映射到 proto

* fix: add PackagingFeeShareCents field to BuyerOrderProductItem struct

* fix: remove local replace directive committed by accident

* fix: golines formatting in spotservice

* fix: remove packaging fee from totalActualAmountCents calculation

---------

Co-authored-by: Hunger <3287426755@qq.com>
Co-authored-by: yulian-art <1119253058@qq.com>
Co-authored-by: Whisper985 <243932443+Whisper985@users.noreply.github.com>
Co-authored-by: Spring <2922562941@qq.com>
@876908 876908 mentioned this pull request Aug 3, 2026
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant