添加功能

This commit is contained in:
马宝龙
2026-06-29 11:43:02 +08:00
parent 4b244922e6
commit dd57a43aac
3 changed files with 116 additions and 0 deletions

View File

@@ -27,6 +27,17 @@ public class AnalysisCommonController {
private final AnalysisCommonService analysisCommonService;
private final AnalysisExportService analysisExportService;
/**
* 查询门户信息
*
* @return 门户信息
*/
@GetMapping("/portal")
public AjaxResult portal() {
return AjaxResult.success(analysisCommonService.portal());
}
/**
* 查询团场列表
*

View File

@@ -3,6 +3,7 @@ package com.ruoyi.cms.service;
import com.ruoyi.cms.domain.vo.DictVo;
import java.util.List;
import java.util.Map;
/**
* 分析通用
@@ -13,6 +14,14 @@ import java.util.List;
public interface AnalysisCommonService {
/**
* 查询门户信息
*
* @return 门户信息
*/
Map<String, Object> portal();
/**
* 查询团场列表
*

View File

@@ -9,7 +9,10 @@ import org.springframework.validation.annotation.Validated;
import reactor.util.function.Tuple2;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 分析通用
@@ -22,6 +25,99 @@ import java.util.List;
@Slf4j
public class AnalysisCommonServiceImpl implements AnalysisCommonService {
@Override
public Map<String, Object> portal() {
Map<String, Object> data = new HashMap<>();
/* ========= system ========= */
Map<String, Object> system = new HashMap<>();
system.put("title", "劳动力大数据分析系统");
system.put("titleEn", "LABOR DATA SYSTEM");
system.put("subtitle", "通过先进的数据分析技术,为劳动力市场提供全面、深入的洞察与决策支持");
Map<String, Object> status = new HashMap<>();
status.put("text", "系统运行正常");
status.put("level", "ok");
system.put("status", status);
data.put("system", system);
/* ========= heroChart ========= */
Map<String, Object> heroChart = new HashMap<>();
heroChart.put("bars", Arrays.asList(
38, 52, 45, 68, 58, 72, 48, 65, 55, 78, 62, 50, 70, 44, 60
));
data.put("heroChart", heroChart);
/* ========= modules ========= */
List<Map<String, Object>> modules = new ArrayList<>();
/* module - monitor */
Map<String, Object> monitor = new HashMap<>();
monitor.put("id", "monitor");
monitor.put("title", "劳动力动态监测系统");
monitor.put("description", "劳动力动态监测系统集成市场实时监测、供需预测模型及职业技能图谱,通过追踪市场变化与趋势预测,为劳动力供需双方提供精准的发展与招聘指引。");
monitor.put("route", "/monitor");
monitor.put("theme", "blue");
monitor.put("metrics", Arrays.asList(
new HashMap<String, Object>() {{
put("label", "覆盖地市");
put("value", "31");
put("unit", "");
}},
new HashMap<String, Object>() {{
put("label", "今日监测量");
put("value", "12.6");
put("unit", "万条");
}}
));
modules.add(monitor);
/* module - employment */
Map<String, Object> employment = new HashMap<>();
employment.put("id", "employment");
employment.put("title", "就业大数据专题分析平台");
employment.put("description", "就业大数据专题分析平台集成行业、高校、供需关系及重点人群等多维数据,通过深度分析岗位趋势与技能需求,为政策制定与业务执行提供精准的决策支持。");
employment.put("route", "/employment");
employment.put("theme", "cyan");
employment.put("metrics", Arrays.asList(
new HashMap<String, Object>() {{
put("label", "专题报告");
put("value", "186");
put("unit", "");
}},
new HashMap<String, Object>() {{
put("label", "本月新增岗位");
put("value", "4.2");
put("unit", "万个");
}}
));
modules.add(employment);
/* module - display */
Map<String, Object> display = new HashMap<>();
display.put("id", "display");
display.put("title", "智慧就业大数据分析展示系统");
display.put("description", "智慧就业大数据分析展示系统利用可视化及交互技术,集成就业大数据专题分析与劳动力就业事业数据,辅助决策者高效捕捉市场关键信息。");
display.put("route", "/display");
display.put("theme", "purple");
display.put("metrics", Arrays.asList(
new HashMap<String, Object>() {{
put("label", "可视化大屏");
put("value", "24");
put("unit", "");
}},
new HashMap<String, Object>() {{
put("label", "数据更新频率");
put("value", "15");
put("unit", "分钟");
}}
));
modules.add(display);
data.put("modules", modules);
return data;
}
@Override
public List<DictVo> areaList() {