rwadurian/backend/services/planting-service/src/infrastructure
hailin 46b68e8652 feat(planting-service): add global stats API for data verification
Add new endpoint GET /api/v1/planting/stats/global to query planting
statistics directly from the database, providing reliable data source
for verifying reporting-service statistics.

New features:
- GlobalPlantingStats: total tree count, order count, amount
- StatusDistribution: breakdown by order status (PAID to MINING_ENABLED)
- TodayStats: daily statistics with tree count, order count, amount

Implementation:
- Pure additive changes, no modifications to existing code
- Read-only aggregate queries using Prisma aggregate/groupBy
- No database schema changes required

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 06:55:08 -08:00
..
external fix(planting-service): 修复跨服务调用使用错误标识符导致的500错误 2025-12-26 01:48:22 -08:00
kafka fix(contract-signing): 修复合同签署流程的持仓更新时机 2025-12-25 06:50:03 -08:00
pdf fix(planting): center signature image on the signature field 2026-01-04 00:00:13 -08:00
persistence feat(planting-service): add global stats API for data verification 2026-01-04 06:55:08 -08:00
storage fix(planting-service): 签名后查看合同返回已签名的PDF 2025-12-26 05:48:22 -08:00
index.ts refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
infrastructure.module.ts feat(contract): 增强合同生成功能 2025-12-25 05:35:40 -08:00