|
|
@@ -10,9 +10,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -47,8 +45,8 @@ public class AnalysisController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation("门店活跃度排行")
|
|
|
@SaCheckPermission("clock:analysis:rank")
|
|
|
- @GetMapping("/shopActivityRank")
|
|
|
- public R<List<ShopActivityRankVo>> shopActivityRank(AnalysisQueryBo bo) {
|
|
|
+ @PostMapping("/shopActivityRank")
|
|
|
+ public R<List<ShopActivityRankVo>> shopActivityRank(@RequestBody AnalysisQueryBo bo) {
|
|
|
return R.ok(iClockRecordService.queryShopActivityRank(bo));
|
|
|
}
|
|
|
|
|
|
@@ -57,8 +55,8 @@ public class AnalysisController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation("参与人数与销量趋势")
|
|
|
@SaCheckPermission("clock:analysis:trend")
|
|
|
- @GetMapping("/trend")
|
|
|
- public R<List<TrendVo>> trend(AnalysisQueryBo bo) {
|
|
|
+ @PostMapping("/trend")
|
|
|
+ public R<List<TrendVo>> trend(@RequestBody AnalysisQueryBo bo) {
|
|
|
return R.ok(iClockRecordService.queryTrend(bo));
|
|
|
}
|
|
|
|
|
|
@@ -67,8 +65,8 @@ public class AnalysisController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation("月度参与人数与销量对比")
|
|
|
@SaCheckPermission("clock:analysis:monthly")
|
|
|
- @GetMapping("/monthlyComparison")
|
|
|
- public R<List<MonthlyComparisonVo>> monthlyComparison(AnalysisQueryBo bo) {
|
|
|
+ @PostMapping("/monthlyComparison")
|
|
|
+ public R<List<MonthlyComparisonVo>> monthlyComparison(@RequestBody AnalysisQueryBo bo) {
|
|
|
return R.ok(iClockRecordService.queryMonthlyComparison(bo));
|
|
|
}
|
|
|
|