|
@@ -43,49 +43,16 @@ public class HomePageCtrl {
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO<Map<String,Integer>> queryAllNum() {
|
|
|
|
|
|
- Map<String,Integer> map = algorithmService.selectDetailsBySy();
|
|
|
- map.put("ConfigTotal", configService.getConfigTotal());
|
|
|
- map.put("SceneNum", sceneNaturalService.querySceneNumBySy());
|
|
|
- map.put("maxConcurrency", clusterService.getLicenseNum());
|
|
|
- map.put("currentConcurrency", 1);
|
|
|
+ Map<String,Integer> map = algorithmService.selectDetailsBySy();//算法文件数量
|
|
|
+ map.put("ConfigTotal", configService.getConfigTotal());//车辆配置数量
|
|
|
+ map.put("SceneNum", sceneNaturalService.querySceneNumBySy());//场景数量
|
|
|
+ map.put("maxConcurrency", clusterService.getLicenseNum());//最大并发数量
|
|
|
+ map.put("currentConcurrency", homePageService.getRuningTask());//当前并发数量
|
|
|
return new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS, map);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- /*//首页查询场景数量
|
|
|
- @PostMapping("/querySceneNumBySy")
|
|
|
- @ResponseBody
|
|
|
- public ResponseBodyVO<Integer> querySceneNumBySy() {
|
|
|
- Integer SceneNum = sceneNaturalService.querySceneNumBySy();
|
|
|
- return new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS, SceneNum);
|
|
|
- }
|
|
|
-
|
|
|
- //首页车辆配置数量
|
|
|
- @PostMapping("/queryCarDisposeNumBySy")
|
|
|
- @ResponseBody
|
|
|
- public ResponseBodyVO<Integer> queryCarDisposeNumBySy() {
|
|
|
- Integer ConfigTotal = configService.getConfigTotal();
|
|
|
- return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS, ConfigTotal);
|
|
|
- }
|
|
|
-
|
|
|
- *//**
|
|
|
- * 首页算法文件数量
|
|
|
- *
|
|
|
- * @param
|
|
|
- * @return
|
|
|
- *//*
|
|
|
- @RequestMapping("selectDetailsBySy")
|
|
|
- @ResponseBody
|
|
|
- public ResponseBodyVO selectDetailsBySy() {
|
|
|
-
|
|
|
- return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS, algorithmService.selectDetailsBySy());
|
|
|
- }*/
|
|
|
-
|
|
|
/**
|
|
|
* 近一周运行运行项目数量
|
|
|
- *
|
|
|
- * @param
|
|
|
- * @return
|
|
|
*/
|
|
|
@RequestMapping("selectRunProjectBySy")
|
|
|
@ResponseBody
|
|
@@ -96,9 +63,6 @@ public class HomePageCtrl {
|
|
|
|
|
|
/**
|
|
|
* 近一周运行任务数量
|
|
|
- *
|
|
|
- * @param
|
|
|
- * @return
|
|
|
*/
|
|
|
@RequestMapping("selectRunTaskBySy")
|
|
|
@ResponseBody
|
|
@@ -109,9 +73,6 @@ public class HomePageCtrl {
|
|
|
|
|
|
/**
|
|
|
* 任务运行状态统计-饼图
|
|
|
- *
|
|
|
- * @param
|
|
|
- * @return
|
|
|
*/
|
|
|
@RequestMapping("selectRunTaskByState")
|
|
|
@ResponseBody
|