|
@@ -118,4 +118,37 @@ public class CommissionController {
|
|
|
: 3;
|
|
: 3;
|
|
|
return Result.success(commissionService.getTeamTree(userId, maxLevel));
|
|
return Result.success(commissionService.getTeamTree(userId, maxLevel));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取团队成长曲线数据(按月份统计注册人数)
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/team/growth-curve")
|
|
|
|
|
+ public Result<Map<String, Object>> teamGrowthCurve(@RequestAttribute("userId") Long userId,
|
|
|
|
|
+ @RequestBody Map<String, Object> params) {
|
|
|
|
|
+ Integer months = params.get("months") != null ? (Integer) params.get("months") : null;
|
|
|
|
|
+ Map<String, Object> result = commissionService.getTeamGrowthCurve(userId, months);
|
|
|
|
|
+ return Result.success(result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取团队所有成员消费曲线数据(按月份统计成员消费总额)
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/team/consumption-curve")
|
|
|
|
|
+ public Result<Map<String, Object>> teamAllMembersConsumptionCurve(@RequestAttribute("userId") Long userId,
|
|
|
|
|
+ @RequestBody Map<String, Object> params) {
|
|
|
|
|
+ Integer months = params.get("months") != null ? (Integer) params.get("months") : null;
|
|
|
|
|
+ Map<String, Object> result = commissionService.getTeamAllMembersConsumptionCurve(userId, months);
|
|
|
|
|
+ return Result.success(result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取直推团队(L1)消费曲线数据(按月份统计L1成员消费总额)
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/team/l1-consumption-curve")
|
|
|
|
|
+ public Result<Map<String, Object>> teamL1ConsumptionCurve(@RequestAttribute("userId") Long userId,
|
|
|
|
|
+ @RequestBody Map<String, Object> params) {
|
|
|
|
|
+ Integer months = params.get("months") != null ? (Integer) params.get("months") : null;
|
|
|
|
|
+ Map<String, Object> result = commissionService.getTeamL1ConsumptionCurve(userId, months);
|
|
|
|
|
+ return Result.success(result);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|