Zuncle ddd66bf4e9 fix(dashboard): 修复盈亏分析商品产出只统计待发货库存的bug
问题:
  盈亏分析(GetUserProfitLossTrend)和用户画像(GetUserProfile)中的
  "商品产出"查询条件为 `ui.status = 1`,只统计了待发货/库存中的商品,
  已发货/已兑换(status=3)的商品被完全排除。

  示例:用户9110实际累计获得874件商品(价值¥16,279.40),但因为大部分
  已发货(status=3),盈亏分析只显示商品产出¥12.50,全资产产出严重偏低。

  而 dashboard_user_spending.go 中的同类查询正确使用了
  `status IN (1, 3)`,说明此处是遗漏。

修复:
  - users_profit_loss.go: 当前资产快照查询改为 `status IN (1, 3)`
  - users_profile.go: 库存统计查询改为 `status IN (1, 3)`
  - 与 dashboard_user_spending.go 的计算口径对齐
2026-03-20 20:39:50 +08:00
2026-03-05 12:50:06 +08:00
2026-02-27 17:51:38 +08:00
2026-03-20 00:57:17 +08:00
2026-03-05 12:50:06 +08:00
2026-02-27 00:08:02 +08:00
2026-03-17 16:00:23 +08:00
2026-03-05 12:50:06 +08:00
2026-02-18 23:23:34 +08:00
2026-02-27 16:07:12 +08:00
2026-02-27 16:07:12 +08:00

mini-chat

接口文档

服务地址

打包命令

MAC

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -tags timetzdata -trimpath -o build/bindbox.exe .

export DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t zfc931912343/bindbox-game:v1.10 . docker push zfc931912343/bindbox-game:v1.10

docker pull zfc931912343/bindbox-game:v1.10 &&docker rm -f bindbox-game && docker run -d --name bindbox-game -p 9991:9991 zfc931912343/bindbox-game:v1.10

Description
No description provided
Readme 563 MiB
Languages
Go 97.8%
HTML 1.1%
JavaScript 0.6%
Makefile 0.2%
Shell 0.2%