From cd0deccf2831aad337705fc107ee123fcea7d971 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 20 Sep 2022 10:13:29 +0800 Subject: [PATCH] 20220902 --- src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java | 29 +++++++++++++++++++++++++++-- 1 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java index 04528ff..3354f45 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallTeamLeaderController.java @@ -35,16 +35,29 @@ return iApiMallTeamLeaderService.applyLeader(apiApplayLeaderDto); } + /** * 团长列表 */ - @ApiOperation(value = "团长列表", notes = "团长列表") + @ApiOperation(value = "团长列表(查询当前位置商品配送范围内的所有团长)", notes = "团长列表(查询当前位置商品配送范围内的所有团长)") @ApiResponses({ @ApiResponse(code = 200, message = "success", response = ApiLeaderListVo.class) }) @PostMapping(value = "/leaderList") public FebsResponse leaderList(@RequestBody @Valid ApiLeaderListDto apiLeaderListDto) { - return new FebsResponse().success().data(iApiMallTeamLeaderService.findLeaderListInPage(apiLeaderListDto)); + return iApiMallTeamLeaderService.findSomeLeaderListInPage(apiLeaderListDto); + } + + /** + * 团长列表 + */ + @ApiOperation(value = "团长列表(查询当前经纬度在团长配送范围内的团长)", notes = "团长列表(查询当前经纬度在团长配送范围内的团长)") + @ApiResponses({ + @ApiResponse(code = 200, message = "success", response = ApiLeaderListVo.class) + }) + @PostMapping(value = "/leaderListInFence") + public FebsResponse leaderListInFence(@RequestBody @Valid ApiLeaderListDto apiLeaderListDto) { + return iApiMallTeamLeaderService.findLeaderListInPage(apiLeaderListDto); } /** @@ -136,5 +149,17 @@ return iApiMallTeamLeaderService.leaderProfit(); } + /** + * 团长查看已提成收益 + */ + @ApiOperation(value = "团长查看已提成收益", notes = "团长查看已提成收益") + @ApiResponses({ + @ApiResponse(code = 200, message = "success", response = ApiOrderProfitVo.class) + }) + @PostMapping(value = "/leaderProfitList") + public FebsResponse leaderProfitList(@RequestBody ApiOrderProfitDto apiOrderProfitDto) { + return new FebsResponse().success().data(iApiMallTeamLeaderService.findLeaderProfitListInPage(apiOrderProfitDto)); + } + } -- Gitblit v1.9.1