添加功能

This commit is contained in:
马宝龙
2026-06-27 12:30:33 +08:00
parent f86e29a554
commit 18e90dacbf
8 changed files with 931 additions and 0 deletions

View File

@@ -1,12 +1,18 @@
package com.ruoyi.cms.controller;
import com.ruoyi.cms.domain.dto.QueryParamDto;
import com.ruoyi.cms.service.AnalysisCommonService;
import com.ruoyi.cms.service.AnalysisExportService;
import com.ruoyi.common.core.domain.AjaxResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
/**
* 分析通用
*
@@ -19,6 +25,7 @@ import org.springframework.web.bind.annotation.RestController;
public class AnalysisCommonController {
private final AnalysisCommonService analysisCommonService;
private final AnalysisExportService analysisExportService;
/**
* 查询团场列表
@@ -74,4 +81,16 @@ public class AnalysisCommonController {
public AjaxResult sectorList() {
return AjaxResult.success(analysisCommonService.sectorList());
}
/**
* 数据导出
*
* @param response 响应
* @param dto 查询参数
*/
@PostMapping("/exportData")
// @Log(title = "导出", businessType = BusinessType.EXPORT)
public void exportData(HttpServletResponse response, @RequestBody QueryParamDto dto) {
analysisExportService.exportData(response, dto);
}
}