108 lines
3.1 KiB
Java
108 lines
3.1 KiB
Java
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;
|
|
|
|
/**
|
|
* 分析通用
|
|
*
|
|
* @author 马宝龙
|
|
* @date 2026/6/25
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/analysis/common")
|
|
@RequiredArgsConstructor
|
|
public class AnalysisCommonController {
|
|
|
|
private final AnalysisCommonService analysisCommonService;
|
|
private final AnalysisExportService analysisExportService;
|
|
|
|
|
|
/**
|
|
* 查询门户信息
|
|
*
|
|
* @return 门户信息
|
|
*/
|
|
@GetMapping("/portal")
|
|
public AjaxResult portal() {
|
|
return AjaxResult.success(analysisCommonService.portal());
|
|
}
|
|
|
|
/**
|
|
* 查询团场列表
|
|
*
|
|
* @return 团场列表
|
|
*/
|
|
@GetMapping("/areaList")
|
|
// @Log(title = "根据枚举名称查询枚举的所有值", businessType = BusinessType.QUERY)
|
|
public AjaxResult areaList() {
|
|
return AjaxResult.success(analysisCommonService.areaList());
|
|
}
|
|
|
|
/**
|
|
* 查询行业列表
|
|
*
|
|
* @return 行业列表
|
|
*/
|
|
@GetMapping("/industryList")
|
|
// @Log(title = "根据枚举名称查询枚举的所有值", businessType = BusinessType.QUERY)
|
|
public AjaxResult industryList() {
|
|
return AjaxResult.success(analysisCommonService.industryList());
|
|
}
|
|
|
|
/**
|
|
* 查询高校类型列表
|
|
*
|
|
* @return 高校类型列表
|
|
*/
|
|
@GetMapping("/universityTypeList")
|
|
// @Log(title = "根据枚举名称查询枚举的所有值", businessType = BusinessType.QUERY)
|
|
public AjaxResult universityTypeList() {
|
|
return AjaxResult.success(analysisCommonService.universityTypeList());
|
|
}
|
|
|
|
/**
|
|
* 查询重点行业列表
|
|
*
|
|
* @return 重点行业列表
|
|
*/
|
|
@GetMapping("/majorIndustryList")
|
|
// @Log(title = "根据枚举名称查询枚举的所有值", businessType = BusinessType.QUERY)
|
|
public AjaxResult majorIndustryList() {
|
|
return AjaxResult.success(analysisCommonService.majorIndustryList());
|
|
}
|
|
|
|
/**
|
|
* 查询产业列表
|
|
*
|
|
* @return 产业列表
|
|
*/
|
|
@GetMapping("/sectorList")
|
|
// @Log(title = "根据枚举名称查询枚举的所有值", businessType = BusinessType.QUERY)
|
|
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);
|
|
}
|
|
}
|