From cfd0118ef446a66f91999afc7b1e46ca607adf50 Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期四, 13 七月 2023 20:32:35 +0800 Subject: [PATCH] 定时任务 统计 --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtActivityController.java | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtActivityController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtActivityController.java index 1e35cf5..92eb3db 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtActivityController.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtActivityController.java @@ -10,6 +10,7 @@ import com.ruoyi.goods.domain.dto.MgtActivityPageDto; import com.ruoyi.goods.domain.dto.MgtActivityRecordPageDto; import com.ruoyi.goods.domain.vo.MgtActivityGetVo; +import com.ruoyi.goods.domain.vo.MgtActivityListVo; import com.ruoyi.goods.domain.vo.MgtActivityPageVo; import com.ruoyi.goods.domain.vo.MgtActivityRecordPageVo; import com.ruoyi.goods.service.activity.ActivityService; @@ -33,7 +34,7 @@ * @Date 2023/6/14 10:17 * @Version 1.0 */ -@Api(value = "平台端活动相关接口", tags = "平台端活动相关接口", description = "平台端活动相关接口") +@Api(value = "管理后台活动相关接口", tags = "管理后台活动相关接口", description = "管理后台活动相关接口") @RestController @RequestMapping("/mgt/activity") public class MgtActivityController { @@ -92,7 +93,7 @@ @RequestMapping(value = "/exportPageMgtActivityRecord", method = RequestMethod.POST) @ApiOperation(value = "导出活动参与记录列表") - public void exportPageMgtActivityRecord(@RequestBody MgtActivityRecordPageDto mgtActivityRecordPageDto, HttpServletResponse response) { + public void exportPageMgtActivityRecord( MgtActivityRecordPageDto mgtActivityRecordPageDto, HttpServletResponse response) { Page<MgtActivityRecordPageVo> page = new Page<>(); page.setSize(2000); page.setCurrent(1); @@ -100,4 +101,12 @@ ExcelUtil<MgtActivityRecordPageVo> util = new ExcelUtil<MgtActivityRecordPageVo>(MgtActivityRecordPageVo.class); util.exportExcel(response, activityRecordPageVoList, "商品列表"); } + + @RequestMapping(value = "/listMgtActivity", method = RequestMethod.POST) + @ApiOperation(value = "获取活动列表") + public R<List<MgtActivityListVo>> listMgtActivity() { + + List<MgtActivityListVo> activityListVoList = activityService.listMgtActivity(); + return R.ok(activityListVoList); + } } -- Gitblit v1.7.1