5 年 前
コミット
2d22b1f5f1

+ 1 - 1
center-data/src/main/java/com/hssx/centerdata/controller/TDataSizeInfoWarehouseUnitsController.java

@@ -67,7 +67,7 @@ public class TDataSizeInfoWarehouseUnitsController {
     @RequestMapping("/cloudPlatform")
     @ResponseBody
     public HttpRespMsg cloudPlatform() {
-        return tDataSizeInfoWarehouseUnitsService.dataExchange();
+        return tDataSizeInfoWarehouseUnitsService.cloudPlatform();
     }
 
 

+ 2 - 0
center-data/src/main/java/com/hssx/centerdata/service/TDataSizeInfoWarehouseUnitsService.java

@@ -19,4 +19,6 @@ public interface TDataSizeInfoWarehouseUnitsService extends IService<TDataSizeIn
     HttpRespMsg dataExchange();
 
     HttpRespMsg fiveMainStorehouses();
+
+    HttpRespMsg cloudPlatform();
 }

+ 20 - 0
center-data/src/main/java/com/hssx/centerdata/service/impl/TDataSizeInfoWarehouseUnitsServiceImpl.java

@@ -48,6 +48,14 @@ public class TDataSizeInfoWarehouseUnitsServiceImpl extends ServiceImpl<TDataSiz
     private TDataSourceMapper tDataSourceMapper;
     @Resource
     private TPhotoDatabaseDataMapper tPhotoDatabaseDataMapper;
+    @Resource
+    private TApplyVirtualSizeMapper tApplyVirtualSizeMapper;
+    @Resource
+    private TMemoryMapper tMemoryMapper;
+    @Resource
+    private TSystemWarningInfoMapper tSystemWarningInfoMapper;
+    @Resource
+    private TCpuUseRatioMapper tCpuUseRatioMapper;
 
     @Override
     public HttpRespMsg getCenterData() {
@@ -85,5 +93,17 @@ public class TDataSizeInfoWarehouseUnitsServiceImpl extends ServiceImpl<TDataSiz
         return msg;
     }
 
+    @Override
+    public HttpRespMsg cloudPlatform() {
+        HttpRespMsg msg = new HttpRespMsg();
+        Map<String,Object> map = new HashMap<>();
+        map.put("applyVirtualSize",tApplyVirtualSizeMapper.selectList(new QueryWrapper<TApplyVirtualSize>()));
+        map.put("memory",tMemoryMapper.selectList(new QueryWrapper<TMemory>()));
+        map.put("systemWarningInfo",tSystemWarningInfoMapper.selectList(new QueryWrapper<TSystemWarningInfo>()));
+        map.put("cpuUseRatio",tCpuUseRatioMapper.selectList(new QueryWrapper<TCpuUseRatio>()));
+        msg.data = map;
+        return msg;
+    }
+
 
 }