|
@@ -7,6 +7,7 @@ import com.css.simulation.resource.algorithm.service.AlgorithmService;
|
|
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.HomePageService;
|
|
import com.css.simulation.resource.scene.service.SceneNaturalService;
|
|
import com.css.simulation.resource.scene.service.SceneNaturalService;
|
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
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.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -14,7 +15,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
//首页系统概览
|
|
//首页系统概览
|
|
@@ -22,22 +22,24 @@ import java.util.Map;
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/homePage")
|
|
@RequestMapping("/homePage")
|
|
public class HomePageController {
|
|
public class HomePageController {
|
|
- @Resource
|
|
|
|
|
|
+ @Autowired
|
|
SceneNaturalService sceneNaturalService;
|
|
SceneNaturalService sceneNaturalService;
|
|
- @Resource
|
|
|
|
- private AlgorithmService algorithmService;
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private SimulationProjectService simulationProjectService;
|
|
|
|
|
|
+ AlgorithmService algorithmService;
|
|
|
|
+ @Autowired
|
|
|
|
+ SimulationProjectService simulationProjectService;
|
|
|
|
+ @Autowired
|
|
|
|
+ com.css.simulation.resource.model.service.ConfigService ConfigService;
|
|
@Autowired
|
|
@Autowired
|
|
- private com.css.simulation.resource.model.service.ConfigService ConfigService;
|
|
|
|
|
|
+ HomePageService homePageService;
|
|
|
|
|
|
//首页概况汇总方法
|
|
//首页概况汇总方法
|
|
@PostMapping("/queryAllNum")
|
|
@PostMapping("/queryAllNum")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public ResponseBodyVO<Integer> queryAllNum() {
|
|
public ResponseBodyVO<Integer> queryAllNum() {
|
|
|
|
|
|
- Map map=algorithmService.selectDetailsBySy();
|
|
|
|
- map.put("ConfigTotal",ConfigService.getConfigTotal());
|
|
|
|
|
|
+ Map map = algorithmService.selectDetailsBySy();
|
|
|
|
+ map.put("ConfigTotal", ConfigService.getConfigTotal());
|
|
map.put("SceneNum", sceneNaturalService.querySceneNumBySy());
|
|
map.put("SceneNum", sceneNaturalService.querySceneNumBySy());
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS, map);
|
|
return new ResponseBodyVO(ResponseBodyVO.Response.SUCCESS, map);
|
|
}
|
|
}
|
|
@@ -132,7 +134,7 @@ public class HomePageController {
|
|
*/
|
|
*/
|
|
@PostMapping("selectServerList")
|
|
@PostMapping("selectServerList")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- public ResponseBodyVO<SystemServerVO> selectServerList(PageVO pageVO) {
|
|
|
|
- return HomePageService.selectServerList(pageVO);
|
|
|
|
|
|
+ public ResponseBodyVO<PageInfo<SystemServerVO>> selectServerList(PageVO pageVO) {
|
|
|
|
+ return homePageService.selectServerList(pageVO);
|
|
}
|
|
}
|
|
}
|
|
}
|