Prechádzať zdrojové kódy

Springcloud消费者

shilin 3 rokov pred
rodič
commit
1e0e58ef34

+ 151 - 0
web/consumer-hb/pom.xml

@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>web</artifactId>
+        <groupId>com.gyee</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>consumer-hb</artifactId>
+
+    <properties>
+        <java.version>1.8</java.version>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+        <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
+        <spring-cloud-alibaba.version>2.2.5.RELEASE</spring-cloud-alibaba.version>
+    </properties>
+
+    <dependencies>
+
+        <!--spring boot web依赖-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <!-- springboot官方依赖: spring-boot-starter-xxx-->
+        <!-- springboot非官方依赖:xxx-spring-boot-starter-->
+
+        <!--springcloud依赖:spring-cloud-starter-xxx -->
+        <!--spring-cloud-alibaba 服务注册发现-->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+        </dependency>
+        <!--spring-boot-starter-actuator-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
+
+        <!--spring-cloud-alibaba nacos 配置中心的依赖-->
+        <!--
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+        </dependency>
+        -->
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.gyee</groupId>
+            <artifactId>common</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+
+          <dependency>
+               <groupId>org.springframework.cloud</groupId>
+               <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
+           </dependency>
+
+        <!--spring-cloud-starter-openfeign-->
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+        <!--引入Spring Boot内嵌的Tomcat对JSP的解析包-->
+        <dependency>
+            <groupId>org.apache.tomcat.embed</groupId>
+            <artifactId>tomcat-embed-jasper</artifactId>
+        </dependency>
+        <!--spring-cloud-starter-netflix-ribbon-->
+        <!--
+        <dependency>
+             <groupId>org.springframework.cloud</groupId>
+             <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
+         </dependency>
+         -->
+
+        <!--spring-cloud-starter-openfeign-->
+        <!--<dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>-->
+
+
+
+    </dependencies>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>com.alibaba.cloud</groupId>
+                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
+                <version>${spring-cloud-alibaba.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-dependencies</artifactId>
+                <version>${spring-boot.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <!-- spring-cloud-dependencies -->
+            <dependency>
+                <groupId>org.springframework.cloud</groupId>
+                <artifactId>spring-cloud-dependencies</artifactId>
+                <version>Hoxton.SR5</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.8</source>
+                    <target>1.8</target>
+                    <encoding>UTF-8</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 17 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/ConsumerMain.java

@@ -0,0 +1,17 @@
+package com.gyee.consumer;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+
+@EnableFeignClients //开启feign
+@EnableDiscoveryClient //开启nacos服务注册与发现
+@SpringBootApplication
+public class ConsumerMain {
+
+
+    public static void main(String[] args) {
+        SpringApplication.run(ConsumerMain.class,args);
+    }
+}

+ 26 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/config/CorsConfig.java

@@ -0,0 +1,26 @@
+package com.gyee.consumer.config;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.CorsRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+/**
+ * @ClassName : CorsConfig
+ * @Author : xieshengjie
+ * @Date: 2021/6/28 20:00
+ * @Description :
+ */
+@Configuration
+public class CorsConfig implements WebMvcConfigurer {
+
+    static final String[] ORIGINS = new String[]{"GET", "POST", "PUT", "DELETE"};  //请求方式
+
+    @Override
+    public void addCorsMappings(CorsRegistry registry) {
+        registry.addMapping("/**") //所有的当前站点的请求地址,都支持跨域访问
+                .allowedOrigins("*")// 所有的外部域都可跨域访问,这里注意2.4.0以后是allowedOriginPatterns,以前是allowedOrigins
+                .allowCredentials(true)  //是否支持跨域用户凭证
+                .allowedMethods(ORIGINS) //当前站点支持的跨域请求类型是什么
+                .maxAge(3600);  //超是时长,单位为秒。
+    }
+}

+ 14 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/config/FeignConfiguration.java

@@ -0,0 +1,14 @@
+package com.gyee.consumer.config;
+
+
+import com.gyee.consumer.fallback.GenreSetPushServiceFallbackFactory;
+import org.springframework.context.annotation.Bean;
+
+public class FeignConfiguration {
+
+    @Bean
+    public GenreSetPushServiceFallbackFactory eenreSetPushServiceFallbackFactory() {
+        return new GenreSetPushServiceFallbackFactory();
+    }
+
+}

+ 19 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/config/RestTemplateConfig.java

@@ -0,0 +1,19 @@
+package com.gyee.consumer.config;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.client.RestTemplate;
+
+/**
+ * @ClassName : RestTemplateConfig
+ * @Author : xieshengjie
+ * @Date: 2021/8/29 23:34
+ * @Description :
+ */
+@Configuration
+public class RestTemplateConfig {
+    @Bean
+    public RestTemplate getRestTemplate(){
+        return new RestTemplate();
+    }
+}

+ 33 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/controller/AlgorithmController.java

@@ -0,0 +1,33 @@
+package com.gyee.consumer.controller;
+
+import com.gyee.common.config.R;
+import com.gyee.common.vo.algorithm.LineParameters;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.client.RestTemplate;
+
+import javax.annotation.Resource;
+
+
+@RestController
+public class AlgorithmController {
+
+    public static  final String  ALGORITHM_URL = "http://10.155.32.4:8021";
+
+    @Resource
+    private RestTemplate restTemplate;
+
+    @PostMapping(value = "/consumer/algorithm/line")
+    public R buildline(@RequestBody LineParameters lineParameters){
+        return restTemplate.postForObject(ALGORITHM_URL+"/line/buildline",lineParameters,R.class);
+    }
+
+    @PostMapping(value = "/consumer/algorithm/gdjtline")
+    public R buildgdjtline(@RequestBody LineParameters lineParameters){
+        return restTemplate.postForObject(ALGORITHM_URL+"/line/buildgdjtline",lineParameters,R.class);
+
+    }
+}

+ 102 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/controller/analysis/AnalysisController.java

@@ -0,0 +1,102 @@
+package com.gyee.consumer.controller.analysis;
+
+import com.gyee.common.config.R;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.vo.analysis.AnalysisMainVo;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.client.RestTemplate;
+
+import javax.annotation.Resource;
+import java.beans.IntrospectionException;
+import java.lang.reflect.InvocationTargetException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @ClassName : BenchmarkingController
+ * @Author : xieshengjie
+ * @Date: 2021/11/17 14:28
+ * @Description : 对标管理消费
+ */
+@RestController
+public class AnalysisController {
+
+    @Value("${url.analysis}")
+    private String  ANALYSIS_URL;
+
+    @Resource
+    private RestTemplate restTemplate;
+
+    /**
+     * 首页list
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping(value = "/consumer/analysisplus/list")
+    public R list(@RequestParam(value = "beginDate",required = true)String beginDate,
+                    @RequestParam(value = "endDate",required = true)String endDate){
+        return restTemplate.getForObject(ANALYSIS_URL+"/analysisplus/list?beginDate="+beginDate+"&endDate="+endDate,R.class);
+    }
+
+    /**
+     * 首页确认
+     * @param vo
+     */
+    @PostMapping(value = "/consumer/analysisplus/commit")
+    public R commit(@RequestBody AnalysisMainVo vo){
+        return restTemplate.postForObject(ANALYSIS_URL+"/analysisplus/commit",vo,R.class);
+    }
+
+
+    /**
+     * 表底查询
+     * @param theday
+     * @param wpid
+     * @return
+     */
+    @GetMapping("/consumer/analysisplus/bdzlist")
+    public R bdzlist(
+            @RequestParam(value = "theday",required = true)String theday,
+            @RequestParam(value = "wpid",required = true)String wpid)  {
+        return restTemplate.getForObject(ANALYSIS_URL+"/analysisplus/bdzlist?theday="+theday+"&wpid="+wpid,R.class);
+    }
+
+
+    /**
+     * 统计分析查询
+     * @param theday
+     * @param wpid
+     * @param identity
+     * @return
+     */
+    @GetMapping("/consumer/analysisplus/tjfxlist")
+    public R  tjfxlist(
+            @RequestParam(value = "theday",required = true)String theday,
+            @RequestParam(value = "wpid",required = true)String wpid,
+            @RequestParam(value = "identity",required = true) Integer identity) {
+        return restTemplate.getForObject(ANALYSIS_URL+"/analysisplus/tjfxlist?theday="+theday+"&wpid="+wpid+"&identity="+identity,R.class);
+
+
+    }
+
+    /**
+     * 表底值修改
+     * @param bdzVo
+     */
+    @PostMapping("/consumer/analysisplus/bdzupdate")
+    public void   bdzupdate(@RequestBody Map<String,Object> bdzVo) {
+        restTemplate.postForObject(ANALYSIS_URL+"/analysisplus/commit",bdzVo,null);
+    }
+
+    /**
+     * 统计分析修改
+     * @param tjfxVo
+     */
+    @PostMapping("/consumer/analysisplus/tjfxupdate")
+    public void   tjfxupdate(@RequestBody List<Map<String,Object>> tjfxVo) {
+        restTemplate.postForObject(ANALYSIS_URL+"/analysisplus/tjfxupdate",tjfxVo,null);
+    }
+
+}

+ 388 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/controller/benching/BenchmarkingController.java

@@ -0,0 +1,388 @@
+package com.gyee.consumer.controller.benching;
+
+import com.gyee.common.config.R;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.util.RandomUtil;
+import com.gyee.common.util.SortUtils;
+import com.gyee.common.vo.algorithm.LineParameters;
+import com.gyee.common.vo.benchmark.Operation;
+import com.gyee.common.vo.benchmark.WxsslVo;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.client.RestTemplate;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @ClassName : BenchmarkingController
+ * @Author : xieshengjie
+ * @Date: 2021/11/17 14:28
+ * @Description : 对标管理消费
+ */
+@RestController
+public class BenchmarkingController {
+
+    @Value("${url.benchmaring}")
+    private String  BENCHMARKING_URL;
+
+    @Resource
+    private RestTemplate restTemplate;
+
+    /**
+     * 场站列表
+     * @return
+     */
+    @GetMapping(value = "/consumer/benchmarking/wplist")
+    public R wplist(){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/wplist",R.class);
+    }
+
+    /**
+     * 光伏场站列表
+     * @return
+     */
+    @GetMapping(value = "/consumer/benchmarking/wpgflist")
+    public R wpGFlist(){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/wpgflist",R.class);
+    }
+
+    /**
+     * 根据场站查询期次
+     * @param wpids
+     * @return
+     */
+    @GetMapping(value = "/consumer/benchmarking/projectList")
+    public R projectList(@RequestParam(value = "wpids",required = true) String wpids){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/projectList?wpids="+wpids,R.class);
+    }
+
+    /**
+     * 根据期次查询线路
+     * @param projects
+     * @return
+     */
+    @GetMapping(value = "/consumer/benchmarking/lineList")
+    public R lineList(@RequestParam(value = "projects",required = true) String projects){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/lineList?projects="+projects,R.class);
+    }
+
+    /**
+     * 根据场站查询风机
+     * @param wpid
+     * @return
+     */
+    @GetMapping(value = "/consumer/benchmarking/wtList")
+    public R wtList(@RequestParam(value = "wpid",required = true) String wpid){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/wtList?wpid="+wpid,R.class);
+    }
+
+    /**
+     * 风机绩效榜
+     * @param wpids
+     * @param projectids
+     * @param lineids
+     * @param beginDate
+     * @param endDate
+     * @param type
+     * @param target
+     * @param sort
+     * @return
+     */
+    @GetMapping(value = "/consumer/benchmarking/fjjxb")
+    public R fjjxb(@RequestParam(value = "wpids",required = true) String wpids,
+                   @RequestParam(value = "projectids",required = true) String projectids,
+                   @RequestParam(value = "lineids",required = true) String lineids,
+                   @RequestParam(value = "beginDate",required = true) String beginDate,
+                   @RequestParam(value = "endDate",required = true) String endDate,
+                   @RequestParam(value = "type",required = true) String type,
+                   @RequestParam(value = "target",required = true) String target,
+                   @RequestParam(value = "sort",required = true) String sort){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/fjjxb?wpids="+wpids+"&projectids="+projectids+"&lineids="+lineids+"&beginDate="+beginDate+"&endDate="+endDate+"&type="+type+"&target="+target+"&sort="+sort,R.class);
+    }
+
+    /**
+     * 风机绩效榜明细
+     * @param wpids
+     * @param projectids
+     * @param lineids
+     * @param beginDate
+     * @param endDate
+     * @param type
+     * @param target
+     * @param sort
+     * @return
+     */
+    @GetMapping(value = "/consumer/benchmarking/fjjxbmx")
+    public R fjjxbmx(@RequestParam(value = "wpids",required = true) String wpids,
+                   @RequestParam(value = "projectids",required = true) String projectids,
+                   @RequestParam(value = "lineids",required = true) String lineids,
+                   @RequestParam(value = "beginDate",required = true) String beginDate,
+                   @RequestParam(value = "endDate",required = true) String endDate,
+                   @RequestParam(value = "type",required = true) String type,
+                   @RequestParam(value = "target",required = true) String target,
+                   @RequestParam(value = "sort",required = true) String sort){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/fjjxbmx?wpids="+wpids+"&projectids="+projectids+"&lineids="+lineids+"&beginDate="+beginDate+"&endDate="+endDate+"&type="+type+"&target="+target+"&sort="+sort,R.class);
+    }
+
+    /**
+     * 五项损失率
+     * @param wpids
+     * @param projectids
+     * @param lineids
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/wxssl")
+    public R wxssl(@RequestParam(value = "wpids",required = true) String wpids,
+                   @RequestParam(value = "projectids",required = true) String projectids,
+                   @RequestParam(value = "lineids",required = true) String lineids,
+                   @RequestParam(value = "beginDate",required = true) String beginDate,
+                   @RequestParam(value = "endDate",required = true) String endDate,
+                   @RequestParam(value = "target",required = true) String target,
+                   @RequestParam(value = "sort",required = true) String sort
+    ){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/wxssl?wpids="+wpids+"&projectids="+projectids+"&lineids="+lineids+"&beginDate="+beginDate+"&endDate="+endDate+"&target="+target+"&sort="+sort,R.class);
+    }
+
+    /**
+     * 场内对标
+     * @param wpid
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/cndb")
+    public R cndb(@RequestParam(value = "wpid",required = true) String wpid,
+                  @RequestParam(value = "beginDate",required = true) String beginDate,
+                  @RequestParam(value = "endDate",required = true) String endDate,
+                  @RequestParam(value = "target",required = true) String target,
+                  @RequestParam(value = "sort",required = true) String sort
+    ){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/cndb?wpid="+wpid+"&beginDate="+beginDate+"&endDate="+endDate+"&target="+target+"&sort="+sort,R.class);
+
+
+    }
+
+    /**
+     * 场际对标
+     * @param wpids
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/cjdb")
+    public R cjdb(@RequestParam(value = "wpids",required = true) String wpids,
+                  @RequestParam(value = "beginDate",required = true) String beginDate,
+                  @RequestParam(value = "endDate",required = true) String endDate,
+                  @RequestParam(value = "target",required = true) String target,
+                  @RequestParam(value = "sort",required = true) String sort
+    ){
+
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/cjdb?wpids="+wpids+"&beginDate="+beginDate+"&endDate="+endDate+"&target="+target+"&sort="+sort,R.class);
+
+
+    }
+
+
+    /**
+     * 项目对标
+     * @param wpids
+     * @param projectids
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/xmdb")
+    public R xmdb(@RequestParam(value = "wpids",required = true) String wpids,
+                  @RequestParam(value = "projectids",required = true) String projectids,
+                  @RequestParam(value = "beginDate",required = true) String beginDate,
+                  @RequestParam(value = "endDate",required = true) String endDate,
+                  @RequestParam(value = "target",required = true) String target,
+                  @RequestParam(value = "sort",required = true) String sort
+    ){
+
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/xmdb?wpids="+wpids+"&projectids="+projectids+"&beginDate="+beginDate+"&endDate="+endDate+"&target="+target+"&sort="+sort,R.class);
+
+    }
+
+    /**
+     * 线路对标
+     * @param wpids
+     * @param projectids
+     * @param lineids
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/xldb")
+    @ResponseBody
+    @CrossOrigin(origins = "*", maxAge = 3600)
+    public R xldb(@RequestParam(value = "wpids",required = true) String wpids,
+                  @RequestParam(value = "projectids",required = true) String projectids,
+                  @RequestParam(value = "lineids",required = true) String lineids,
+                  @RequestParam(value = "beginDate",required = true) String beginDate,
+                  @RequestParam(value = "endDate",required = true) String endDate,
+                  @RequestParam(value = "target",required = true) String target,
+                  @RequestParam(value = "sort",required = true) String sort
+    ){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/xldb?wpids="+wpids+"&projectids="+projectids+"&lineids"+lineids+"&beginDate="+beginDate+"&endDate="+endDate+"&target="+target+"&sort="+sort,R.class);
+
+    }
+
+
+    /**
+     * 值际操作指令list
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/zjlist")
+    public R listplus(@RequestParam(value = "beginDate",required = true)String beginDate,
+                      @RequestParam(value = "endDate",required = true)String endDate){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/zjlist?beginDate="+beginDate+"&endDate="+endDate,R.class);
+
+    }
+
+    /**
+     * 值际点击钻取
+     * @param beginDate
+     * @param endDate
+     * @param dutyname
+     * @param direct
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/zjdrill")
+    public R zjdrill(@RequestParam(value = "beginDate",required = true)String beginDate,
+                     @RequestParam(value = "endDate",required = true)String endDate,
+                     @RequestParam(value = "dutyname",required = true)String dutyname,
+                     @RequestParam(value = "direct",required = true)String direct){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/zjdrill?beginDate="+beginDate+"&endDate="+endDate+"&dutyname="+dutyname+"&direct="+direct,R.class);
+
+    }
+
+    /**
+     * 值际损失电量
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/zjwxssl")
+    public R zjwxssl(@RequestParam(value = "beginDate",required = true)String beginDate,
+                     @RequestParam(value = "endDate",required = true)String endDate){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/zjwxssl?beginDate="+beginDate+"&endDate="+endDate,R.class);
+
+    }
+
+    /**
+     * 对标页面详情
+     * @param beginDate
+     * @param endDate
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/details")
+    public R details(@RequestParam(value = "id",required = true)String id,
+                     @RequestParam(value = "beginDate",required = true)String beginDate,
+                     @RequestParam(value = "endDate",required = true)String endDate,
+                     @RequestParam(value = "target",required = true) String target,
+                     @RequestParam(value = "sort",required = true) String sort
+    ){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/details?id="+id+"&beginDate="+beginDate+"&endDate="+endDate+"&target="+target+"&sort="+sort,R.class);
+
+    }
+
+    /**
+     * 日单机横向对比列表
+     * @param wpid
+     * @param wtids
+     * @param date
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/daydjhxdbtop")
+    public R daydjhxdbtop(@RequestParam(value = "wpid",required = true)String wpid,
+                          @RequestParam(value = "wtids",required = true)String wtids,
+                          @RequestParam(value = "date",required = true)String date){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/daydjhxdbtop?wpid="+wpid+"&wtids="+wtids+"&date="+date,R.class);
+
+    }
+
+
+    /**
+     * 月单机横向对比列表
+     * @param wpid
+     * @param wtids
+     * @param date
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/monthdjhxdbtop")
+    public R monthdjhxdbtop(@RequestParam(value = "wpid",required = true)String wpid,
+                            @RequestParam(value = "wtids",required = true)String wtids,
+                            @RequestParam(value = "date",required = true)String date){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/monthdjhxdbtop?wpid="+wpid+"&wtids="+wtids+"&date="+date,R.class);
+
+    }
+
+    /**
+     * 年单机横向对比列表
+     * @param wpid
+     * @param wtids
+     * @param date
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/yeardjhxdbtop")
+    public R yeardjhxdbtop(@RequestParam(value = "wpid",required = true)String wpid,
+                           @RequestParam(value = "wtids",required = true)String wtids,
+                           @RequestParam(value = "date",required = true)String date){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/yeardjhxdbtop?wpid="+wpid+"&wtids="+wtids+"&date="+date,R.class);
+
+    }
+
+
+    /**
+     * 日单机横向对比图
+     * @param wpid
+     * @param wtids
+     * @param date
+     * @return
+     */
+    @GetMapping("/consumer/benchmarking/djhxdbbottom")
+    public R djhxdbbottom(@RequestParam(value = "wpid",required = true)String wpid,
+                          @RequestParam(value = "wtids",required = true)String wtids,
+                          @RequestParam(value = "date",required = true)String date){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/djhxdbbottom?wpid="+wpid+"&wtids="+wtids+"&date="+date,R.class);
+
+    }
+
+
+    /**
+     * 对标首页下面部分
+     * @param timetype
+     * @param foreigntype
+     * @return
+     * @throws Exception
+     */
+    @GetMapping("/consumer/benchmarking/dbmainbottom")
+    @ResponseBody
+    @CrossOrigin(origins = "*", maxAge = 3600)
+    public R dbmainbottom(@RequestParam(value = "timetype",required = true)String timetype,
+                          @RequestParam(value = "foreigntype",required = true)String foreigntype) throws Exception {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/djhxdbbottom?timetype="+timetype+"&foreigntype="+foreigntype,R.class);
+    }
+
+
+    /**
+     * 对标首页上面部分
+     * @param timetype
+     * @param foreigntype
+     * @return
+     * @throws Exception
+     */
+    @GetMapping("/consumer/benchmarking/dbmaintop")
+    public R dbmaintop(@RequestParam(value = "timetype",required = true)String timetype,
+                       @RequestParam(value = "foreigntype",required = true)String foreigntype) throws Exception {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/benchmarking/dbmaintop?timetype="+timetype+"&foreigntype="+foreigntype,R.class);
+    }
+
+}

+ 110 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/controller/monitor/GenreSetPushController.java

@@ -0,0 +1,110 @@
+package com.gyee.consumer.controller.monitor;
+
+import com.gyee.common.domain.AjaxResult;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.vo.benchmark.DataVo;
+import com.gyee.consumer.service.GenreSetPushService;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Slf4j
+@RestController
+@RequestMapping("/commandmodule")
+@Api(value = "驾驶舱" ,tags =  "驾驶舱")
+public class GenreSetPushController {
+
+    @Resource
+    private GenreSetPushService genreSetPushService;
+
+    @GetMapping("/queryAgcValues")
+    public AjaxResult queryAgcValuesNew() throws Exception {
+
+        AjaxResult ajax=genreSetPushService.getAgcValues();
+
+        return ajax;
+    }
+    @GetMapping("/queryPowerInfo")
+    public AjaxResult queryPowerInfo(@RequestParam("id") String id){
+
+        AjaxResult ajax=genreSetPushService.findPowerInfo(id);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryBasicDataInfo")
+    public AjaxResult queryBasicDataInfo(@RequestParam("id") String id){
+
+        AjaxResult ajax=genreSetPushService.findBasicDataInfo(id);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryDayInfo")
+    public AjaxResult  queryDayInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+
+        AjaxResult ajax=genreSetPushService.findDayInfo(id,targetName);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryMonthInfo")
+    public AjaxResult  queryMonthInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+
+        AjaxResult ajax=genreSetPushService.findMonthInfo(id,targetName);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryYearInfo")
+    public AjaxResult  queryYearInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+
+        AjaxResult ajax=genreSetPushService.findYearInfo(id,targetName);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryProjectPlanPower")
+    public AjaxResult findProjectPlanPower(@RequestParam("id") String id){
+
+        AjaxResult ajax=genreSetPushService.findProjectPlanPower(id);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryGLDetail")
+    public AjaxResult  queryGLDetail(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+
+        AjaxResult ajax=genreSetPushService.findGLDetail(id,targetName);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryWeatherRealDay5Info")
+    public AjaxResult  queryWeatherRealDay5Info(@RequestParam("wpId")String wpId){
+
+        AjaxResult ajax=genreSetPushService.getWeatherRealDay5Info(wpId);
+
+        return ajax;
+    }
+
+    @GetMapping("/queryForecastwindspeedInfo")
+    public AjaxResult  queryForecastwindspeedInfo(@RequestParam("wpId")String wpId){
+
+        AjaxResult ajax=genreSetPushService.getForecastwindspeedInfo(wpId);
+
+        return ajax;
+    }
+
+}

+ 169 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/controller/specific/SpecificController.java

@@ -0,0 +1,169 @@
+package com.gyee.consumer.controller.specific;
+
+import com.gyee.common.config.R;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.vo.specific.SpecificCenterVo;
+import com.gyee.common.vo.specific.SpecificTargetVo;
+import com.gyee.common.vo.specific.SpecificTopVo;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.client.RestTemplate;
+
+import javax.annotation.Resource;
+import java.text.ParseException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @ClassName : ThreerateController
+ * @Author : xieshengjie
+ * @Date: 2021/12/27 10:14
+ * @Description : 三率
+ */
+@RestController
+public class SpecificController {
+    @Value("${url.benchmaring}")
+    private String  BENCHMARKING_URL;
+
+    @Resource
+    private RestTemplate restTemplate;
+
+    /**
+     * 查询专题分析列表上
+     * @return
+     */
+    @GetMapping(value = "/consumer/specific/maintoplist")
+    public R maintoplist(@RequestParam(value = "month",required = true) String month) {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/maintoplist?month="+month,R.class);
+    }
+
+    /**
+     * 查询专题分析列表下
+     * @return
+     */
+    @GetMapping("/consumer/specific/maincenterlist")
+    public R maincenterlist(@RequestParam(value = "month",required = true) String month) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/maincenterlist?month="+month,R.class);
+
+    }
+
+    /**
+     * 查询风能利用率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/fnlylList")
+    public R fnlylList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/fnlylList?year="+year,R.class);
+    }
+
+    /**
+     * 查询发电量
+     * @return
+     */
+    @GetMapping("/consumer/specific/fdlList")
+    public R fdlList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/fdlList?year="+year,R.class);
+    }
+
+    /**
+     * 综合场用电量
+     * @return
+     */
+    @GetMapping("/consumer/specific/zhcydlList")
+    public R zhcydlList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/zhcydlList?year="+year,R.class);
+    }
+
+    /**
+     * 查询维护损失率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/whsslList")
+    public R whsslList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/whsslList?year="+year,R.class);
+    }
+
+    /**
+     * 查询故障损失率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/gzsslList")
+    public R gzsslList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/gzsslList?year="+year,R.class);
+    }
+
+    /**
+     * 查询限电损失率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/xdsslList")
+    public R xdsslList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/xdsslList?year="+year,R.class);
+    }
+
+    /**
+     * 查询性能损失率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/xnsslList")
+    public R xnsslList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/xnsslList?year="+year,R.class);
+    }
+
+    /**
+     * 查询受累损失率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/slsslList")
+    public R slsslList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/slsslList?year="+year,R.class);
+    }
+
+    /**
+     * 查询MTBF功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/mtbfList")
+    public R mtbfList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/mtbfList?year="+year,R.class);
+    }
+
+    /**
+     * 查询MTTR功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/mttrList")
+    public R mttrList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/mttrList?year="+year,R.class);
+    }
+
+    /**
+     * 查询复位及时率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/fwjslList")
+    public R fwjslList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/fwjslList?year="+year,R.class);
+    }
+
+    /**
+     * 查询状态转换率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/ztzhlList")
+    public R ztzhlList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/ztzhlList?year="+year,R.class);
+
+    }
+
+    /**
+     * 查询消缺及时率功能
+     * @return
+     */
+    @GetMapping("/consumer/specific/xqjslList")
+    public R xqjslList(@RequestParam(value = "year",required = true) String year) throws ParseException {
+
+        return restTemplate.getForObject(BENCHMARKING_URL+"/specific/xqjslList?year="+year,R.class);
+    }
+
+}

+ 57 - 0
web/consumer-hb/src/main/java/com/gyee/consumer/controller/threerate/ThreerateController.java

@@ -0,0 +1,57 @@
+package com.gyee.consumer.controller.threerate;
+
+import com.gyee.common.config.R;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.client.RestTemplate;
+
+import javax.annotation.Resource;
+
+/**
+ * @ClassName : ThreerateController
+ * @Author : xieshengjie
+ * @Date: 2021/12/27 10:14
+ * @Description : 三率
+ */
+@RestController
+public class ThreerateController {
+    @Value("${url.benchmaring}")
+    private String  BENCHMARKING_URL;
+
+    @Resource
+    private RestTemplate restTemplate;
+
+    /**
+     * 复位及时率
+     * @return
+     */
+    @GetMapping(value = "/consumer/threerate/fwjsl")
+    public R fwjsl(@RequestParam(value = "beginDate",required = true) String beginDate,
+                   @RequestParam(value = "endDate",required = true) String endDate){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/threerate/fwjsl?beginDate="+beginDate+"&endDate="+endDate,R.class);
+    }
+
+    /**
+     * 状态转换率
+     * @return
+     */
+    @GetMapping(value = "/consumer/threerate/ztzhl")
+    public R ztzhl(@RequestParam(value = "beginDate",required = true) String beginDate,
+                      @RequestParam(value = "endDate",required = true) String endDate){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/threerate/ztzhl?beginDate="+beginDate+"&endDate="+endDate,R.class);
+    }
+
+    /**
+     * 消缺及时率
+     * @param
+     * @return
+     */
+    @GetMapping(value = "/consumer/threerate/xqjsl")
+    public R xqjsl(@RequestParam(value = "beginDate",required = true) String beginDate,
+                         @RequestParam(value = "endDate",required = true) String endDate){
+        return restTemplate.getForObject(BENCHMARKING_URL+"/threerate/xqjsl?beginDate="+beginDate+"&endDate="+endDate,R.class);
+    }
+
+}

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

@@ -0,0 +1,68 @@
+package com.gyee.consumer.fallback;
+
+import com.gyee.common.domain.AjaxResult;
+import com.gyee.consumer.service.GenreSetPushService;
+import feign.hystrix.FallbackFactory;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestParam;
+
+public class GenreSetPushServiceFallbackFactory implements FallbackFactory<GenreSetPushService> {
+
+    @Override
+    public GenreSetPushService create(Throwable throwable) {
+        return new GenreSetPushService() {
+
+
+            @Override
+            public AjaxResult getAgcValues(){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public AjaxResult findPowerInfo(@RequestParam("id") String id){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public AjaxResult findBasicDataInfo(@RequestParam("id") String id){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public  AjaxResult  findDayInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public AjaxResult  findMonthInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public  AjaxResult  findYearInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public  AjaxResult findProjectPlanPower(@RequestParam("id") String id){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public  AjaxResult  findGLDetail(@RequestParam("id")String id,@RequestParam("targetName")String targetName){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public  AjaxResult  getWeatherRealDay5Info(@RequestParam("wpId")String wpId){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+
+            @Override
+            public  AjaxResult  getForecastwindspeedInfo(@RequestParam("wpId")String wpId){
+                return  AjaxResult.error(throwable.getMessage());
+            }
+        };
+    }
+}

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

@@ -0,0 +1,46 @@
+package com.gyee.consumer.service;
+
+
+import com.gyee.common.domain.AjaxResult;
+import com.gyee.consumer.config.FeignConfiguration;
+import com.gyee.consumer.fallback.GenreSetPushServiceFallbackFactory;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestParam;
+
+@FeignClient(name = "monitor-web-hb-provider",
+        fallbackFactory = GenreSetPushServiceFallbackFactory.class,
+        configuration = FeignConfiguration.class)
+public interface GenreSetPushService {
+
+    @GetMapping("/genreset/getAgcValues")
+    AjaxResult getAgcValues();
+
+    @GetMapping("/genreset/findPowerInfo")
+    AjaxResult findPowerInfo(@RequestParam("id") String id);
+
+    @GetMapping("/genreset/findBasicDataInfo")
+    AjaxResult findBasicDataInfo(@RequestParam("id") String id);
+
+    @GetMapping("/genreset/findDayInfo")
+    AjaxResult  findDayInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName);
+
+    @GetMapping("/genreset/findMonthInfo")
+    AjaxResult  findMonthInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName);
+
+    @GetMapping("/genreset/findYearInfo")
+    AjaxResult  findYearInfo(@RequestParam("id")String id,@RequestParam("targetName")String targetName);
+
+    @GetMapping("/genreset/findProjectPlanPower")
+    AjaxResult findProjectPlanPower(@RequestParam("id") String id);
+
+    @GetMapping("/genreset/getWeatherRealDay5Info")
+    AjaxResult  findGLDetail(@RequestParam("id")String id,@RequestParam("targetName")String targetName);
+
+    @GetMapping("/genreset/getWeatherRealDay5Info")
+    AjaxResult  getWeatherRealDay5Info(@RequestParam("wpId")String wpId);
+
+    @GetMapping("/genreset/getForecastwindspeedInfo")
+    AjaxResult  getForecastwindspeedInfo(@RequestParam("wpId")String wpId);
+}

+ 111 - 0
web/consumer-hb/src/main/resources/application.yml

@@ -0,0 +1,111 @@
+server:
+  port: 8020
+
+spring:
+  application:
+    name: monitor-web-hb-consumer
+    cloud:
+      nacos:
+        discovery:
+          server-addr: 10.0.118.99:8848
+          #指定yaml格式的配置
+          file-extension: yaml
+          cluster-name: master
+        username: nacos
+        password: nacos
+  #redis集群
+  redis:
+#    host: 10.83.68.94
+    host: 123.60.213.70
+    #   host: 10.155.32.4
+    password: gdnxfd123
+    port: 6379
+    timeout: 100000
+    #    集群环境打开下面注释,单机不需要打开
+    #    cluster:
+    #      集群信息
+    #      nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
+    #      #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
+    #      maxRedirects: 3
+    application:
+      name: test
+    jedis:
+      pool:
+        max-active: 8
+        min-idle: 0
+        max-idle: 8
+        max-wait: -1
+    database: 1
+  autoconfigure:
+    exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    driver-class-name: oracle.jdbc.OracleDriver
+    #外网
+    url: jdbc:oracle:thin:@10.0.118.71:1521:gdsj
+#    url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
+    username: gdprod
+    password: gd123
+    oracle-schema=:
+    druid:
+      max-active: 20
+      initial-size: 1
+      min-idle: 3
+      max-wait: 60000
+      time-between-eviction-runs-millis: 60000
+      min-evictable-idle-time-millis: 300000
+      test-while-idle: true
+      test-on-borrow: false
+      test-on-return: false
+  servlet:
+    multipart:
+      # 开启 multipart 上传功能
+      enabled: true
+      # 文件写入磁盘的阈值
+      file-size-threshold: 2KB
+      # 最大文件大小
+      max-file-size: 200MB
+      # 最大请求大小
+      max-request-size: 215MB
+
+mybatis-plus:
+  configuration:
+    map-underscore-to-camel-case: true
+    auto-mapping-behavior: full
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+  mapper-locations: classpath*:mapper/**/*Mapper.xml
+  global-config:
+    # 逻辑删除配置
+    db-config:
+      id-type: auto
+      # 删除前
+      logic-not-delete-value: 1
+      # 删除后
+      logic-delete-value: 0
+logging:
+  level:
+    root: info
+    com.example: debug
+
+url:
+  benchmaring: http://192.168.2.216:8081
+  analysis: http://192.168.2.216:8082
+
+feign:
+  client:
+    config:
+      monitor-web-hb-provider:
+        read-timeout: 60000
+        connect-timeout: 60000
+management:
+  endpoints:
+    jmx:
+      exposure:
+        include: "*"
+    web:
+      exposure:
+        include: "*"
+  endpoint:
+    health:
+      show-details: always
+