|
@@ -1,4 +1,4 @@
|
|
|
-package com.css.simulation.resource.scene.ctrl;
|
|
|
+package com.css.simulation.resource.home.ctrl;
|
|
|
|
|
|
import api.common.pojo.common.PageVO;
|
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
@@ -7,8 +7,9 @@ import api.common.pojo.vo.home.HardwareVO;
|
|
|
import api.common.pojo.vo.home.ServiceVO;
|
|
|
import api.common.pojo.vo.home.SystemServerVO;
|
|
|
import com.css.simulation.resource.algorithm.service.AlgorithmService;
|
|
|
+import com.css.simulation.resource.home.service.HomePageService;
|
|
|
+import com.css.simulation.resource.model.service.ConfigService;
|
|
|
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.github.pagehelper.PageInfo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -33,7 +34,7 @@ public class HomePageController {
|
|
|
@Autowired
|
|
|
SimulationProjectService simulationProjectService;
|
|
|
@Autowired
|
|
|
- com.css.simulation.resource.model.service.ConfigService ConfigService;
|
|
|
+ ConfigService configService;
|
|
|
@Autowired
|
|
|
HomePageService homePageService;
|
|
|
|
|
@@ -43,7 +44,7 @@ public class HomePageController {
|
|
|
public ResponseBodyVO<Map<String,Integer>> queryAllNum() {
|
|
|
|
|
|
Map<String,Integer> map = algorithmService.selectDetailsBySy();
|
|
|
- map.put("ConfigTotal", ConfigService.getConfigTotal());
|
|
|
+ map.put("ConfigTotal", configService.getConfigTotal());
|
|
|
map.put("SceneNum", sceneNaturalService.querySceneNumBySy());
|
|
|
map.put("maxConcurrency", 1);
|
|
|
map.put("currentConcurrency", 1);
|
|
@@ -63,12 +64,12 @@ public class HomePageController {
|
|
|
@PostMapping("/queryCarDisposeNumBySy")
|
|
|
@ResponseBody
|
|
|
public ResponseBodyVO<Integer> queryCarDisposeNumBySy() {
|
|
|
- Integer ConfigTotal = ConfigService.getConfigTotal();
|
|
|
+ Integer ConfigTotal = configService.getConfigTotal();
|
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS, ConfigTotal);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 首页文件数量
|
|
|
+ * 首页算法文件数量
|
|
|
*
|
|
|
* @param
|
|
|
* @return
|