|
@@ -1,13 +1,18 @@
|
|
package com.css.simulation.resource.scene.ctrl;
|
|
package com.css.simulation.resource.scene.ctrl;
|
|
|
|
|
|
|
|
+import api.common.pojo.common.PageVO;
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
|
|
+import api.common.pojo.vo.system.SystemServerVO;
|
|
import com.css.simulation.resource.algorithm.service.AlgorithmService;
|
|
import com.css.simulation.resource.algorithm.service.AlgorithmService;
|
|
-import com.css.simulation.resource.model.service.ConfigService;
|
|
|
|
import com.css.simulation.resource.project.service.SimulationProjectService;
|
|
import com.css.simulation.resource.project.service.SimulationProjectService;
|
|
|
|
+import com.css.simulation.resource.scene.service.HomePageService;
|
|
import com.css.simulation.resource.scene.service.SceneNaturalService;
|
|
import com.css.simulation.resource.scene.service.SceneNaturalService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -105,9 +110,6 @@ public class HomePageController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 项目运行状态统计-饼图
|
|
* 项目运行状态统计-饼图
|
|
- *
|
|
|
|
- * @param
|
|
|
|
- * @return
|
|
|
|
*/
|
|
*/
|
|
@RequestMapping("selectRunProjectByState")
|
|
@RequestMapping("selectRunProjectByState")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -117,13 +119,20 @@ public class HomePageController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 评测等级分布-饼图
|
|
* 评测等级分布-饼图
|
|
- *
|
|
|
|
- * @param
|
|
|
|
- * @return
|
|
|
|
*/
|
|
*/
|
|
@RequestMapping("selectEvaluationLevel")
|
|
@RequestMapping("selectEvaluationLevel")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public ResponseBodyVO selectEvaluationLevel() {
|
|
public ResponseBodyVO selectEvaluationLevel() {
|
|
return simulationProjectService.selectEvaluationLevel();
|
|
return simulationProjectService.selectEvaluationLevel();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 评测等级分布-饼图
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("selectServerList")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public ResponseBodyVO<SystemServerVO> selectServerList(PageVO pageVO) {
|
|
|
|
+ return HomePageService.selectServerList(pageVO);
|
|
|
|
+ }
|
|
}
|
|
}
|