{ "tasks": { "task-1773164482180-yqy5i7": { "taskId": "task-1773164482180-yqy5i7", "type": "feature", "description": "Add PkgID field to OrderRemark struct and parse pkg_id:XX in remark.Parse()", "priority": "high", "status": "completed", "progress": 100, "assignedTo": [], "tags": [ "remark", "parsing", "ichiban" ], "createdAt": "2026-03-10T17:41:22.180Z", "startedAt": null, "completedAt": "2026-03-10T17:41:55.018Z", "result": { "reason": "Added PkgID field to OrderRemark struct and pkg_id: parsing branch in Parse()" } }, "task-1773164482201-s9jemx": { "taskId": "task-1773164482201-s9jemx", "type": "feature", "description": "Extend calcPaidByPriceDraw with three-way classification: Case1 ActivityID>0 (lottery), Case2 IssueID>0 (matching game via activity_issues), Case3 PkgID>0 (ichiban via game_pass_packages)", "priority": "high", "status": "completed", "progress": 100, "assignedTo": [], "tags": [ "channel-stats", "matching-game", "ichiban", "calcPaidByPriceDraw" ], "createdAt": "2026-03-10T17:41:22.201Z", "startedAt": null, "completedAt": "2026-03-10T17:42:34.567Z", "result": { "reason": "Extended calcPaidByPriceDraw with three-way classification: lottery (ActivityID), matching game (IssueID→activity_issues→activities), ichiban (PkgID→game_pass_packages)" } }, "task-1773164482206-mhmqsb": { "taskId": "task-1773164482206-mhmqsb", "type": "feature", "description": "Build verification: run make build-mac to ensure compilation passes after changes", "priority": "normal", "status": "completed", "progress": 100, "assignedTo": [], "tags": [ "build", "verification" ], "createdAt": "2026-03-10T17:41:22.206Z", "startedAt": null, "completedAt": "2026-03-10T17:43:27.419Z", "result": { "reason": "Build passed successfully on macOS" } }, "task-1773166041411-fmshox": { "taskId": "task-1773166041411-fmshox", "type": "feature", "description": "Extend StatsOverview and StatsDailyItem structs with cost_cents, profit_cents, total_cost, total_profit fields", "priority": "high", "status": "completed", "progress": 100, "assignedTo": [], "tags": [ "channel-stats", "profit-loss", "structs" ], "createdAt": "2026-03-10T18:07:21.411Z", "startedAt": null, "completedAt": "2026-03-10T18:07:47.297Z", "result": { "reason": "Extended StatsOverview with TotalCostCents/TotalProfitCents/TotalCost/TotalProfit and StatsDailyItem with CostCents/ProfitCents" } }, "task-1773166041417-di6rsd": { "taskId": "task-1773166041417-di6rsd", "type": "feature", "description": "Implement calcCostByInventory helper function: query user_inventory with item card multiplier, grouped by date", "priority": "high", "status": "completed", "progress": 100, "assignedTo": [], "tags": [ "channel-stats", "profit-loss", "cost-calculation" ], "createdAt": "2026-03-10T18:07:21.417Z", "startedAt": null, "completedAt": "2026-03-10T18:08:23.196Z", "result": { "reason": "Implemented calcCostByInventory with 6-table JOIN chain, item card multiplier, COALESCE fallback, and optional date range" } }, "task-1773166041422-efwp8w": { "taskId": "task-1773166041422-efwp8w", "type": "feature", "description": "Integrate calcCostByInventory into GetStats: Overview all-time cost + daily trend cost/profit", "priority": "high", "status": "completed", "progress": 100, "assignedTo": [], "tags": [ "channel-stats", "profit-loss", "integration" ], "createdAt": "2026-03-10T18:07:21.422Z", "startedAt": null, "completedAt": "2026-03-10T18:09:08.231Z", "result": { "reason": "Integrated calcCostByInventory into GetStats: Overview all-time cost/profit + daily trend cost/profit" } }, "task-1773166041428-fwp50t": { "taskId": "task-1773166041428-fwp50t", "type": "feature", "description": "Build verification and integration test against dev_game database", "priority": "normal", "status": "completed", "progress": 100, "assignedTo": [], "tags": [ "build", "verification" ], "createdAt": "2026-03-10T18:07:21.428Z", "startedAt": null, "completedAt": "2026-03-10T18:10:06.759Z", "result": { "reason": "Build passed. Integration test shows: 754 inventory records, 2 with double card (双倍快乐水 ×2.0), cost=5100.50元, revenue(actual_amount)=545.00元" } } }, "version": "3.0.0" }