添加功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user