瀏覽代碼

修改配置信息和多适配器切换

shilin 2 年之前
父節點
當前提交
c17c1b01bf

+ 88 - 1
web/consumer-hb/src/main/java/com/gyee/consumer/controller/monitor/GenreSetPushController.java

@@ -2,7 +2,6 @@ package com.gyee.consumer.controller.monitor;
 
 import com.gyee.common.domain.AjaxResult;
 import com.gyee.consumer.service.monitor.GenreSetPushService;
-
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiImplicitParams;
@@ -11,6 +10,8 @@ import lombok.extern.slf4j.Slf4j;
 import org.springframework.web.bind.annotation.*;
 
 import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.Map;
 
 @Slf4j
 @RestController
@@ -50,6 +51,92 @@ public class GenreSetPushController {
         return ajax;
     }
 
+    @GetMapping("/findBasicDataInfo_fcmap")
+    @ResponseBody
+    @ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
+    @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
+    public AjaxResult findBasicDataInfo_fcmap(@RequestParam("id") String id) throws Exception {
+
+        Map<String, Object> map = new HashMap<String, Object>();
+
+
+        AjaxResult ajax=genreSetPushService.findBasicDataInfo_fcmap(id);
+
+
+        return ajax;
+
+    }
+
+
+    @GetMapping("/findBasicDataInfo_mxztmap")
+    @ResponseBody
+    @ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
+    @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
+    public AjaxResult findBasicDataInfo_mxztmap(@RequestParam("id") String id) throws Exception {
+
+
+            AjaxResult ajax=genreSetPushService.findBasicDataInfo_mxztmap(id);
+
+
+        return ajax;
+
+    }
+
+
+    @GetMapping("/findBasicDataInfo_jczbmap")
+    @ResponseBody
+    @ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
+    @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
+    public AjaxResult findBasicDataInfo_jczbmap(@RequestParam("id") String id) throws Exception {
+
+            AjaxResult ajax=genreSetPushService.findBasicDataInfo_jczbmap(id);
+
+
+        return ajax;
+
+    }
+
+
+    @GetMapping("/findBasicDataInfo_tqmap_xtmap")
+    @ResponseBody
+    @ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
+    @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
+    public AjaxResult findBasicDataInfo_tqmap_xtmap(@RequestParam("id") String id) throws Exception {
+
+
+            AjaxResult ajax=genreSetPushService.findBasicDataInfo_tqmap_xtmap(id);
+
+
+        return ajax;
+
+    }
+
+
+    @GetMapping("/findBasicDataInfo_wxssmap")
+    @ResponseBody
+    @ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
+    @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
+    public AjaxResult findBasicDataInfo_wxssmap(@RequestParam("id") String id) throws Exception {
+
+            AjaxResult ajax=genreSetPushService.findBasicDataInfo_wxssmap(id);
+
+        return ajax;
+
+    }
+
+    @GetMapping("/findBasicDataInfo_gxkmap")
+    @ResponseBody
+    @ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
+    @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
+    public AjaxResult findBasicDataInfo_gxkmap(@RequestParam("id") String id) throws Exception {
+
+
+            AjaxResult ajax=genreSetPushService.findBasicDataInfo_gxkmap(id);
+
+
+        return ajax;
+
+    }
     @GetMapping("/findDayInfo")
     @ApiOperation(value = "获取钻取指标日信息", notes = "获取钻取指标日信息")
     @ApiImplicitParams({

+ 41 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/fallback/monitor/GenreSetPushServiceFallbackFactory.java

@@ -3,6 +3,7 @@ package com.gyee.consumer.fallback.monitor;
 import com.gyee.common.domain.AjaxResult;
 import com.gyee.consumer.service.monitor.GenreSetPushService;
 import feign.hystrix.FallbackFactory;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestParam;
 
 public class GenreSetPushServiceFallbackFactory implements FallbackFactory<GenreSetPushService> {
@@ -61,6 +62,46 @@ public class GenreSetPushServiceFallbackFactory implements FallbackFactory<Genre
             public  AjaxResult  getForecastwindspeedInfo(@RequestParam("wpId")String wpId){
                 return  AjaxResult.error(throwable.getMessage());
             }
+
+            @Override
+            public AjaxResult findBasicDataInfo_fcmap(@RequestParam("id") String id) throws Exception{
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+
+
+            @Override
+            public AjaxResult findBasicDataInfo_mxztmap(@RequestParam("id") String id) throws Exception{
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+
+
+            @Override
+            public AjaxResult findBasicDataInfo_jczbmap(@RequestParam("id") String id) throws Exception{
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+
+
+            @Override
+            public AjaxResult findBasicDataInfo_tqmap_xtmap(@RequestParam("id") String id) throws Exception{
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+
+
+            @Override
+            public AjaxResult findBasicDataInfo_wxssmap(@RequestParam("id") String id) throws Exception{
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+
+            @Override
+            public AjaxResult findBasicDataInfo_gxkmap(@RequestParam("id") String id) throws Exception{
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
         };
     }
 }

+ 20 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/service/monitor/GenreSetPushService.java

@@ -21,7 +21,27 @@ public interface GenreSetPushService {
 
     @GetMapping("/genreset/findBasicDataInfo")
     public AjaxResult findBasicDataInfo(@RequestParam("id") String id);
+    @GetMapping("/genreset/findBasicDataInfo_fcmap")
+    public AjaxResult findBasicDataInfo_fcmap(@RequestParam("id") String id) throws Exception ;
 
+
+    @GetMapping("/genreset/findBasicDataInfo_mxztmap")
+    public AjaxResult findBasicDataInfo_mxztmap(@RequestParam("id") String id) throws Exception;
+
+
+    @GetMapping("/genreset/findBasicDataInfo_jczbmap")
+    public AjaxResult findBasicDataInfo_jczbmap(@RequestParam("id") String id) throws Exception ;
+
+
+    @GetMapping("/genreset/findBasicDataInfo_tqmap_xtmap")
+    public AjaxResult findBasicDataInfo_tqmap_xtmap(@RequestParam("id") String id) throws Exception;
+
+
+    @GetMapping("/genreset/findBasicDataInfo_wxssmap")
+    public AjaxResult findBasicDataInfo_wxssmap(@RequestParam("id") String id) throws Exception;
+
+    @GetMapping("/genreset/findBasicDataInfo_gxkmap")
+    public AjaxResult findBasicDataInfo_gxkmap(@RequestParam("id") String id) throws Exception;
     @GetMapping("/genreset/findDayInfo")
     public AjaxResult  findDayInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName);