xieshengjie 2 years ago
parent
commit
f63671d1b5
67 changed files with 2870 additions and 0 deletions
  1. 5 0
      common/pom.xml
  2. 96 0
      common/src/main/java/com/gyee/common/util/JwtUtil.java
  3. 1 0
      pom.xml
  4. 59 0
      web/configurationpoint/pom.xml
  5. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/ConfigurationMain.java
  6. 26 0
      web/configurationpoint/src/main/java/com/gyee/configuration/config/CorsConfig.java
  7. 151 0
      web/configurationpoint/src/main/java/com/gyee/configuration/config/GeneratorCodeConfig.java
  8. 43 0
      web/configurationpoint/src/main/java/com/gyee/configuration/config/JwtInterceptor.java
  9. 30 0
      web/configurationpoint/src/main/java/com/gyee/configuration/config/MvcConfig.java
  10. 23 0
      web/configurationpoint/src/main/java/com/gyee/configuration/config/MybatisPlusConfig.java
  11. 72 0
      web/configurationpoint/src/main/java/com/gyee/configuration/config/R.java
  12. 12 0
      web/configurationpoint/src/main/java/com/gyee/configuration/config/ResultCode.java
  13. 86 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/CompanysController.java
  14. 100 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/LineController.java
  15. 83 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/MeterpointController.java
  16. 96 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/ProjectController.java
  17. 86 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/RegionController.java
  18. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/UsersController.java
  19. 95 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindpowerstationController.java
  20. 119 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindpowerstationpointnewController.java
  21. 95 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindturbineController.java
  22. 123 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindturbinetestingpointnewController.java
  23. 56 0
      web/configurationpoint/src/main/java/com/gyee/configuration/controller/login/LoginController.java
  24. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/CompanysMapper.java
  25. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/LineMapper.java
  26. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/MeterpointMapper.java
  27. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/ProjectMapper.java
  28. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/RegionMapper.java
  29. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/UsersMapper.java
  30. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindpowerstationMapper.java
  31. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindpowerstationpointnewMapper.java
  32. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindturbineMapper.java
  33. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindturbinetestingpointnewMapper.java
  34. 36 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Companys.java
  35. 54 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Line.java
  36. 92 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Meterpoint.java
  37. 71 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Project.java
  38. 36 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Region.java
  39. 47 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Users.java
  40. 87 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windpowerstation.java
  41. 78 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windpowerstationpointnew.java
  42. 68 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windturbine.java
  43. 81 0
      web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windturbinetestingpointnew.java
  44. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/ICompanysService.java
  45. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/ILineService.java
  46. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IMeterpointService.java
  47. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IProjectService.java
  48. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IRegionService.java
  49. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IUsersService.java
  50. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindpowerstationService.java
  51. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindpowerstationpointnewService.java
  52. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindturbineService.java
  53. 16 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindturbinetestingpointnewService.java
  54. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/CompanysServiceImpl.java
  55. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/LineServiceImpl.java
  56. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/MeterpointServiceImpl.java
  57. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/ProjectServiceImpl.java
  58. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/RegionServiceImpl.java
  59. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/UsersServiceImpl.java
  60. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindpowerstationServiceImpl.java
  61. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindpowerstationpointnewServiceImpl.java
  62. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindturbineServiceImpl.java
  63. 20 0
      web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindturbinetestingpointnewServiceImpl.java
  64. 99 0
      web/configurationpoint/src/main/resources/application-dev.yml
  65. 99 0
      web/configurationpoint/src/main/resources/application-test.yml
  66. 4 0
      web/configurationpoint/src/main/resources/application.yml
  67. 1 0
      web/pom.xml

+ 5 - 0
common/pom.xml

@@ -108,6 +108,11 @@
             <version>3.1</version>
             <scope>compile</scope>
         </dependency>
+        <dependency>
+            <groupId>com.auth0</groupId>
+            <artifactId>java-jwt</artifactId>
+            <version>3.11.0</version>
+        </dependency>
     </dependencies>
 
 </project>

+ 96 - 0
common/src/main/java/com/gyee/common/util/JwtUtil.java

@@ -0,0 +1,96 @@
+package com.gyee.common.util;
+
+import com.auth0.jwt.JWT;
+import com.auth0.jwt.JWTVerifier;
+import com.auth0.jwt.algorithms.Algorithm;
+import com.auth0.jwt.exceptions.JWTDecodeException;
+import com.auth0.jwt.exceptions.JWTVerificationException;
+
+import java.util.Date;
+import java.util.Map;
+
+/**
+ * @ClassName : JwtUtil
+ * @Author : xieshengjie
+ * @Date: 2022/6/17 10:23
+ * @Description :
+ */
+public class JwtUtil {
+    /**
+     * 过期30分钟
+     */
+    private static final long EXPIRE_TIME = 30 * 60 * 1000;
+    /**
+     * jwt密钥
+     */
+    private static final String SECRET = "jwt_secret";
+
+    /**
+     * 生成jwt字符串,30分钟后过期  JWT(json web token)
+     * @param userId
+     * @param info
+     * @return
+     */
+    public static String sign(String userId, Map<String,Object> info) {
+        try {
+            Date date = new Date(System.currentTimeMillis() + EXPIRE_TIME);
+            Algorithm algorithm = Algorithm.HMAC256(SECRET);
+            return JWT.create()
+                    //将userId保存在token里面
+                    .withAudience(userId)
+                    //存放自定义数据
+                    .withClaim("info",info)
+                    //30分钟后token过期
+                    .withExpiresAt(date)
+                    //token的密钥
+                    .sign(algorithm);
+        }catch (Exception e){
+            e.printStackTrace();
+            return null;
+        }
+    }
+
+    /**
+     * 根据token获取userId
+     * @param token
+     * @return
+     */
+    public static String getUserId(String token) {
+        try {
+            String userId = JWT.decode(token).getAudience().get(0);
+            return userId;
+        }catch (JWTDecodeException e){
+            return null;
+        }
+    }
+
+    /**
+     * 根据token获取自定义数据info
+     * @param token
+     * @return
+     */
+    public static Map<String,Object> getInfo(String token){
+        try {
+            return JWT.decode(token).getClaim("info").asMap();
+        }catch (JWTDecodeException e){
+            return null;
+        }
+    }
+
+    /**
+     * 校验token
+     * @param token
+     * @return
+     */
+    public static boolean checkSign(String token){
+        try {
+            Algorithm algorithm = Algorithm.HMAC256(SECRET);
+            JWTVerifier verifier = JWT.require(algorithm).build();
+            verifier.verify(token);
+            return true;
+        }catch (JWTVerificationException e){
+            throw new RuntimeException("token 无效,请重新获取");
+        }
+
+    }
+}

+ 1 - 0
pom.xml

@@ -13,6 +13,7 @@
     <module>web</module>
     <module>common</module>
       <module>cache</module>
+      <module>configuration</module>
   </modules>
   <packaging>pom</packaging>
 

+ 59 - 0
web/configurationpoint/pom.xml

@@ -0,0 +1,59 @@
+<?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>configurationpoint</artifactId>
+<dependencies>
+    <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>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-test</artifactId>
+        <scope>test</scope>
+    </dependency>
+    <dependency>
+        <groupId>org.projectlombok</groupId>
+        <artifactId>lombok</artifactId>
+        <optional>true</optional>
+    </dependency>
+    <dependency>
+        <groupId>com.gyee</groupId>
+        <artifactId>common</artifactId>
+        <version>${project.version}</version>
+    </dependency>
+    <dependency>
+        <groupId>com.auth0</groupId>
+        <artifactId>java-jwt</artifactId>
+        <version>3.11.0</version>
+    </dependency>
+</dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/ConfigurationMain.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * @ClassName : ConfigurationMain
+ * @Author : xieshengjie
+ * @Date: 2022/6/17 10:09
+ * @Description :
+ */
+@SpringBootApplication
+@MapperScan("com.gyee.configuration.mapper")
+public class ConfigurationMain {
+
+    public static void main(String[] args) {
+        SpringApplication.run(ConfigurationMain.class,args);
+    }
+}

+ 26 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/config/CorsConfig.java

@@ -0,0 +1,26 @@
+package com.gyee.configuration.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);  //超是时长,单位为秒。
+    }
+}

+ 151 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/config/GeneratorCodeConfig.java

@@ -0,0 +1,151 @@
+package com.gyee.configuration.config;
+
+
+import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
+import com.baomidou.mybatisplus.generator.AutoGenerator;
+import com.baomidou.mybatisplus.generator.config.*;
+import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
+import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
+
+import java.util.Scanner;
+
+/**
+ *@ClassName GeneratorCodeConfig
+ *@Description 自动生成mybatisplus的相关代码
+ *@Author 谢生杰
+ *@Date 2020/9/25 18:26
+ *@Version 1.0
+ **/
+public class GeneratorCodeConfig {
+    public static String scanner(String tip) {
+        Scanner scanner = new Scanner(System.in);
+        StringBuilder help = new StringBuilder();
+        help.append("请输入" + tip + ":");
+        System.out.println(help.toString());
+        if (scanner.hasNext()) {
+            String ipt = scanner.next();
+            if (StringUtils.isNotEmpty(ipt)) {
+                return ipt;
+            }
+        }
+        throw new MybatisPlusException("请输入正确的" + tip + "!");
+    }
+
+    public static void main(String[] args) {
+        // 代码生成器
+        AutoGenerator mpg = new AutoGenerator();
+
+        // 全局配置
+        GlobalConfig gc = new GlobalConfig();
+        String projectPath = System.getProperty("user.dir");
+        gc.setOutputDir(projectPath + "/src/main/java");
+        gc.setAuthor("谢生杰");
+        gc.setOpen(false);
+        //实体属性 Swagger2 注解
+        gc.setSwagger2(false);
+        mpg.setGlobalConfig(gc);
+
+        // 数据源配置
+        DataSourceConfig dsc = new DataSourceConfig();
+
+//        dsc.setUrl("jdbc:mysql://127.0.0.1:3306/test?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true");
+//        dsc.setDriverName("com.mysql.jdbc.Driver");
+//        dsc.setUsername("root");
+//        dsc.setPassword("root");
+//        mpg.setDataSource(dsc);
+
+        dsc.setDriverName("oracle.jdbc.driver.OracleDriver");
+        dsc.setUsername("gdprod");
+        dsc.setPassword("gd123");
+//        dsc.setUrl("jdbc:oracle:thin:@49.4.50.80:1521:gdnxfd");
+        dsc.setUrl("jdbc:oracle:thin:@10.83.68.165:1521:gdsj");
+        mpg.setDataSource(dsc);
+
+//        dsc.setDriverName("com.cloudera.impala.jdbc41.Driver");
+//        dsc.setUrl("jdbc:impala://192.168.1.67:21050/gyee_test");
+//        mpg.setDataSource(dsc);
+
+
+
+        // 包配置
+        PackageConfig pc = new PackageConfig();
+//        pc.setModuleName(scanner("模块名"));
+        pc.setParent("com.gyee.configuration");
+        pc.setEntity("model.auto");
+        pc.setMapper("mapper.auto");
+        pc.setService("service.auto");
+        pc.setServiceImpl("service.auto.impl");
+        pc.setController("controller.auto");
+        mpg.setPackageInfo(pc);
+
+        // 自定义配置
+//        InjectionConfig cfg = new InjectionConfig() {
+//            @Override
+//            public void initMap() {
+//                // to do nothing
+//            }
+//        };
+
+        // 如果模板引擎是 freemarker
+//        String templatePath = "/templates/mapper.xml.ftl";
+        // 如果模板引擎是 velocity
+        // String templatePath = "/templates/mapper.xml.vm";
+
+        // 自定义输出配置
+//        List<FileOutConfig> focList = new ArrayList<>();
+        // 自定义配置会被优先输出
+//        focList.add(new FileOutConfig(templatePath) {
+//            @Override
+//            public String outputFile(TableInfo tableInfo) {
+//                // 自定义输出文件名 , 如果你 Entity 设置了前后缀、此处注意 xml 的名称会跟着发生变化!!
+//                return projectPath + "/src/main/resources/mapper/" + pc.getModuleName()
+//                        + "/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML;
+//            }
+//        });
+        /*
+        cfg.setFileCreate(new IFileCreate() {
+            @Override
+            public boolean isCreate(ConfigBuilder configBuilder, FileType fileType, String filePath) {
+                // 判断自定义文件夹是否需要创建
+                checkDir("调用默认方法创建的目录");
+                return false;
+            }
+        });
+        */
+//        cfg.setFileOutConfigList(focList);
+//        mpg.setCfg(cfg);
+
+        // 配置模板
+        TemplateConfig templateConfig = new TemplateConfig();
+
+        // 配置自定义输出模板
+        //指定自定义模板路径,注意不要带上.ftl/.vm, 会根据使用的模板引擎自动识别
+        // templateConfig.setEntity("templates/entity2.java");
+        // templateConfig.setService();
+        // templateConfig.setController();
+
+        templateConfig.setXml(null);
+        mpg.setTemplate(templateConfig);
+
+        // 策略配置
+        StrategyConfig strategy = new StrategyConfig();
+        strategy.setNaming(NamingStrategy.underline_to_camel);
+        strategy.setColumnNaming(NamingStrategy.underline_to_camel);
+        strategy.setSuperEntityClass("com.baomidou.mybatisplus.extension.activerecord.Model");
+        strategy.setEntityLombokModel(true);
+        strategy.setRestControllerStyle(true);
+
+        strategy.setEntityLombokModel(true);
+        // 公共父类
+//        strategy.setSuperControllerClass("com.baomidou.ant.common.BaseController");
+        // 写于父类中的公共字段
+//        strategy.setSuperEntityColumns("id");
+        strategy.setInclude(scanner("表名,多个英文逗号分割").split(","));
+        strategy.setControllerMappingHyphenStyle(true);
+        strategy.setTablePrefix(pc.getModuleName() + "_");
+        mpg.setStrategy(strategy);
+        mpg.setTemplateEngine(new FreemarkerTemplateEngine());
+        mpg.execute();
+    }
+}

+ 43 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/config/JwtInterceptor.java

@@ -0,0 +1,43 @@
+package com.gyee.configuration.config;
+
+import com.gyee.common.util.JwtUtil;
+import org.springframework.web.method.HandlerMethod;
+import org.springframework.web.servlet.HandlerInterceptor;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.Map;
+
+/**
+ * @ClassName : JwtInterceptor
+ * @Author : xieshengjie
+ * @Date: 2022/6/17 11:04
+ * @Description :
+ */
+public class JwtInterceptor implements HandlerInterceptor {
+    @Override
+    public boolean preHandle(HttpServletRequest request, HttpServletResponse response,Object handler) throws Exception{
+        //如果不是映射到方法直接通过
+        if (!(handler instanceof HandlerMethod)){
+            return true;
+        }
+        //从http请求头中取出token
+        String token = request.getHeader("token");
+        System.out.println("拿到的token:"+token);
+
+        if (token == null) {
+            throw new RuntimeException("无token,请重新登录");
+        }
+        //验证token
+        JwtUtil.checkSign(token);
+
+        //验证通过后,获取JWT中存放的数据
+        String userId = JwtUtil.getUserId(token);
+        System.out.println("id : "+userId);
+
+        //获取token中的其他数据
+        Map<String,Object> info = JwtUtil.getInfo(token);
+        info.forEach((k,v)->System.out.println(k + ":" + v));
+        return true;
+    }
+}

+ 30 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/config/MvcConfig.java

@@ -0,0 +1,30 @@
+package com.gyee.configuration.config;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+/**
+ * @ClassName : MvcConfig
+ * @Author : xieshengjie
+ * @Date: 2022/6/17 11:13
+ * @Description :
+ */
+@Configuration
+public class MvcConfig implements WebMvcConfigurer {
+    @Override
+    public void addInterceptors(InterceptorRegistry registry){
+        registry.addInterceptor(jwtInterceptor())
+                .addPathPatterns("/config/**");
+    }
+
+    /**
+     * JWT拦截器
+     * @return
+     */
+    @Bean
+    public JwtInterceptor jwtInterceptor() {
+        return new JwtInterceptor();
+    }
+}

+ 23 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/config/MybatisPlusConfig.java

@@ -0,0 +1,23 @@
+package com.gyee.configuration.config;
+
+import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ *@ClassName MybatisPlusConfig
+ *@Description 配置分页插件
+ *@Author 谢生杰
+ *@Date 2020/9/25 18:24
+ *@Version 1.0
+ **/
+@Configuration
+public class MybatisPlusConfig {
+    /**
+     * 分页插件
+     */
+    @Bean
+    public PaginationInterceptor paginationInterceptor() {
+        return new PaginationInterceptor();
+    }
+}

+ 72 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/config/R.java

@@ -0,0 +1,72 @@
+package com.gyee.configuration.config;
+
+import com.gyee.common.config.ResultCode;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @ClassName : R
+ * @Author : xieshengjie
+ * @Date: 2021/5/16 16:59
+ * @Description : 结果集
+ */
+@Data
+public class R {
+    @ApiModelProperty(value = "是否成功")
+    private Boolean success;
+    @ApiModelProperty(value = "返回码")
+    private Integer code;
+    @ApiModelProperty(value = "返回消息")
+    private String message;
+    @ApiModelProperty(value = "总数量")
+    private Integer count;
+    @ApiModelProperty(value = "返回数据")
+    private Object data = new Object();
+    private R(){}
+    public static R ok(){
+        R r = new R();
+        r.setSuccess(true);
+        r.setCode(com.gyee.common.config.ResultCode.SUCCESS);
+        r.setMessage("成功");
+        return r;
+    }
+    public static R ok(Integer count){
+        R r = new R();
+        r.setSuccess(true);
+        r.setCode(com.gyee.common.config.ResultCode.SUCCESS);
+        r.setMessage("成功");
+        r.setCount(count);
+        return r;
+    }
+    public static R error(){
+        R r = new R();
+        r.setSuccess(false);
+        r.setCode(ResultCode.ERROR);
+        r.setMessage("失败");
+        return r;
+    }
+    public R success(Boolean success){
+        this.setSuccess(success);
+        return this;
+    }
+    public R message(String message){
+        this.setMessage(message);
+        return this;
+    }
+    public R code(Integer code){
+        this.setCode(code);
+        return this;
+    }
+//    public R data(String key, Object value){
+//        this.data.put(key, value);
+//        return this;
+//    }
+//    public R data(Map<String, Object> map){
+//        this.setData(map);
+//        return this;
+//    }
+    public R data(Object value){
+        this.setData(value);
+        return this;
+    }
+}

+ 12 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/config/ResultCode.java

@@ -0,0 +1,12 @@
+package com.gyee.configuration.config;
+
+/**
+ * @ClassName : ResultCode
+ * @Author : xieshengjie
+ * @Date: 2021/5/16 17:01
+ * @Description : 结果状态
+ */
+public class ResultCode {
+    public static Integer SUCCESS = 200;
+    public static Integer ERROR = 500;
+}

+ 86 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/CompanysController.java

@@ -0,0 +1,86 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.util.CommonUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Companys;
+import com.gyee.configuration.service.auto.ICompanysService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class CompanysController {
+    @Resource
+    private ICompanysService companysService;
+
+    @GetMapping(value = "/companys")
+    public R findList(){
+        List<Companys> list = companysService.list();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/companys/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Companys> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Companys companys = companysService.getOne(qw);
+        if (StringUtils.isNotNull(companys)){
+            return R.ok().data(companys);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/companys")
+    public R addAll(@RequestBody List<Companys> list){
+        boolean b = companysService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/companys/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = companysService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/companys")
+    public R update(@RequestBody List<Companys> list){
+        boolean b = companysService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+
+
+
+}

+ 100 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/LineController.java

@@ -0,0 +1,100 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Line;
+import com.gyee.configuration.model.auto.Project;
+import com.gyee.configuration.service.auto.ILineService;
+import com.gyee.configuration.service.auto.IProjectService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class LineController {
+    @Resource
+    private ILineService lineService;
+    @Resource
+    private IProjectService projectService;
+
+    @GetMapping(value = "/line")
+    public R findList(){
+        List<Line> list = lineService.list();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/line/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Line> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Line line = lineService.getOne(qw);
+        if (StringUtils.isNotNull(line)){
+            return R.ok().data(line);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/line")
+    public R addAll(@RequestBody List<Line> list){
+        boolean b = lineService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/line/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = lineService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/line")
+    public R update(@RequestBody List<Line> list){
+        boolean b = lineService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+    @GetMapping(value = "/line/query/{wpid}")
+    public R findListByWpid(@PathVariable("wpid") String wpid){
+        QueryWrapper<Project> pqw = new QueryWrapper<>();
+        pqw.eq("windpowerstationid",wpid);
+        List<Project> projects = projectService.list(pqw);
+        QueryWrapper<Line> lqw = new QueryWrapper<>();
+        lqw.in("projectid",projects);
+        List<Line> resultlist = lineService.list(lqw);
+        if (StringUtils.isNotNull(resultlist)) {
+            return R.ok(resultlist.size()).data(resultlist);
+        }else{
+            return R.error().message("访问失败");
+        }
+    }
+}

+ 83 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/MeterpointController.java

@@ -0,0 +1,83 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Meterpoint;
+import com.gyee.configuration.service.auto.IMeterpointService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class MeterpointController {
+    @Resource
+    private IMeterpointService meterpointService;
+
+    @GetMapping(value = "/meterpoint")
+    public R findList(){
+        List<Meterpoint> list = meterpointService.list();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/meterpoint/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Meterpoint> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Meterpoint meterpoint = meterpointService.getOne(qw);
+        if (StringUtils.isNotNull(meterpoint)){
+            return R.ok().data(meterpoint);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/meterpoint")
+    public R addAll(@RequestBody List<Meterpoint> list){
+        boolean b = meterpointService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/meterpoint/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = meterpointService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/meterpoint")
+    public R update(@RequestBody List<Meterpoint> list){
+        boolean b = meterpointService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+
+}

+ 96 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/ProjectController.java

@@ -0,0 +1,96 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Project;
+import com.gyee.configuration.service.auto.IProjectService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class ProjectController {
+    @Resource
+    private IProjectService projectService;
+
+    @GetMapping(value = "/project")
+    public R findList(){
+        List<Project> list = projectService.list();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/project/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Project> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Project project = projectService.getOne(qw);
+        if (StringUtils.isNotNull(project)){
+            return R.ok().data(project);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/project")
+    public R addAll(@RequestBody List<Project> list){
+        boolean b = projectService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/project/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = projectService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/project")
+    public R update(@RequestBody List<Project> list){
+        boolean b = projectService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+
+    @GetMapping(value = "/project/query/{wpid}")
+    public R findListByWpid(@PathVariable("wpid") String wpid){
+        QueryWrapper<Project> qw = new QueryWrapper<>();
+        qw.eq("windpowerstationid",wpid);
+        List<Project> resultlist = projectService.list(qw);
+        if (StringUtils.isNotNull(resultlist)) {
+            return R.ok(resultlist.size()).data(resultlist);
+        }else{
+            return R.error().message("访问失败");
+        }
+    }
+
+
+}

+ 86 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/RegionController.java

@@ -0,0 +1,86 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Region;
+import com.gyee.configuration.service.auto.IRegionService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class RegionController {
+
+    @Resource
+    private IRegionService regionService;
+
+    @GetMapping(value = "/region")
+    public R findList(){
+        List<Region> list = regionService.list();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/region/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Region> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Region region = regionService.getOne(qw);
+        if (StringUtils.isNotNull(region)){
+            return R.ok().data(region);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/region")
+    public R addAll(@RequestBody List<Region> list){
+        boolean b = regionService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/region/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = regionService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/region")
+    public R update(@RequestBody List<Region> list){
+        boolean b = regionService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+
+
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/UsersController.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.controller.auto;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//users")
+public class UsersController {
+
+}

+ 95 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindpowerstationController.java

@@ -0,0 +1,95 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Windpowerstation;
+import com.gyee.configuration.service.auto.IWindpowerstationService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class WindpowerstationController {
+    @Resource
+    private IWindpowerstationService windpowerstationService;
+
+    @GetMapping(value = "/windpowerstation")
+    public R findList(){
+        List<Windpowerstation> list = windpowerstationService.list();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/windpowerstation/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Windpowerstation> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Windpowerstation windpowerstation = windpowerstationService.getOne(qw);
+        if (StringUtils.isNotNull(windpowerstation)){
+            return R.ok().data(windpowerstation);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/windpowerstation")
+    public R addAll(@RequestBody List<Windpowerstation> list){
+        boolean b = windpowerstationService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/windpowerstation/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = windpowerstationService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/windpowerstation")
+    public R update(@RequestBody List<Windpowerstation> list){
+        boolean b = windpowerstationService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+    @GetMapping(value = "/windpowerstation/query/{id}")
+    public R findListByCompany(@PathVariable("id") String id){
+        QueryWrapper<Windpowerstation> qw = new QueryWrapper<>();
+        qw.eq("companyid",id);
+        List<Windpowerstation> resultlist = windpowerstationService.list(qw);
+        if (StringUtils.isNotNull(resultlist)) {
+            return R.ok(resultlist.size()).data(resultlist);
+        }else{
+            return R.error().message("访问失败");
+        }
+    }
+
+
+}

+ 119 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindpowerstationpointnewController.java

@@ -0,0 +1,119 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.util.CommonUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Windpowerstationpointnew;
+import com.gyee.configuration.service.auto.IWindpowerstationpointnewService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class WindpowerstationpointnewController {
+    @Resource
+    private IWindpowerstationpointnewService windpowerstationpointnewService;
+
+    @GetMapping(value = "/windpowerstationpoint")
+    public R findList(@RequestParam(value = "pageNum",required = true) String pageNum,
+                      @RequestParam(value = "pageSize",required = true) String pageSize){
+        QueryWrapper<Windpowerstationpointnew> qw = new QueryWrapper<>();
+        Page<Windpowerstationpointnew> page = new Page<>(Integer.parseInt(pageNum),Integer.parseInt(pageSize));
+        Page<Windpowerstationpointnew> p3DeviceFaultPage = windpowerstationpointnewService.getBaseMapper().selectPage(page,qw);
+        List<Windpowerstationpointnew> list = p3DeviceFaultPage.getRecords();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/windpowerstationpoint/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Windpowerstationpointnew> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Windpowerstationpointnew windpowerstationpointnew = windpowerstationpointnewService.getOne(qw);
+        if (StringUtils.isNotNull(windpowerstationpointnew)){
+            return R.ok().data(windpowerstationpointnew);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/windpowerstationpoint")
+    public R addAll(@RequestBody List<Windpowerstationpointnew> list){
+        list.stream().forEach(i->i.setId(CommonUtils.getUUID()));
+        boolean b = windpowerstationpointnewService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/windpowerstationpoint/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = windpowerstationpointnewService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/windpowerstationpoint")
+    public R update(@RequestBody List<Windpowerstationpointnew> list){
+        boolean b = windpowerstationpointnewService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+    @GetMapping(value = "/windpowerstationpoint/query")
+    public R findListByParam(@RequestParam(value = "wpid",required = false) String wpid,
+                             @RequestParam(value = "uniformcode",required = false) String uniformcode,
+                             @RequestParam(value = "name",required = false) String name,
+                             @RequestParam(value = "code",required = false) String code,
+                             @RequestParam(value = "pageNum",required = false) String pageNum,
+                             @RequestParam(value = "pageSize",required = false) String pageSize){
+        QueryWrapper<Windpowerstationpointnew> qw = new QueryWrapper<>();
+
+        if (StringUtils.isNotEmpty(wpid)){
+            qw.eq("windpowerstationid",wpid);
+        }
+        if (StringUtils.isNotEmpty(uniformcode)){
+            qw.like("uniformcode",uniformcode);
+        }
+        if (StringUtils.isNotEmpty(name)){
+            qw.like("name",name);
+        }
+        if (StringUtils.isNotEmpty(code)){
+            qw.like("code",code);
+        }
+        Page<Windpowerstationpointnew> page = new Page<>(Integer.parseInt(pageNum),Integer.parseInt(pageSize));
+        Page<Windpowerstationpointnew> p3DeviceFaultPage = windpowerstationpointnewService.getBaseMapper().selectPage(page, qw);
+        List<Windpowerstationpointnew> resultlist = p3DeviceFaultPage.getRecords();
+        if (StringUtils.isNotNull(resultlist)) {
+            return R.ok(resultlist.size()).data(resultlist);
+        }else{
+            return R.error().message("访问失败");
+        }
+    }
+}

+ 95 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindturbineController.java

@@ -0,0 +1,95 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Windturbine;
+import com.gyee.configuration.service.auto.IWindturbineService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class WindturbineController {
+    @Resource
+    private IWindturbineService windturbineService;
+
+    @GetMapping(value = "/windturbine")
+    public R findList(){
+        List<Windturbine> list = windturbineService.list();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/windturbine/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Windturbine> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Windturbine windturbine = windturbineService.getOne(qw);
+        if (StringUtils.isNotNull(windturbine)){
+            return R.ok().data(windturbine);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/windturbine")
+    public R addAll(@RequestBody List<Windturbine> list){
+        boolean b = windturbineService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/windturbine/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = windturbineService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/windturbine")
+    public R update(@RequestBody List<Windturbine> list){
+        boolean b = windturbineService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+
+    @GetMapping(value = "/windturbine/query/{wpid}")
+    public R findListByWpid(@PathVariable("wpid") String wpid){
+        QueryWrapper<Windturbine> qw = new QueryWrapper<>();
+        qw.eq("windpowerstationid",wpid);
+        List<Windturbine> resultlist = windturbineService.list(qw);
+        if (StringUtils.isNotNull(resultlist)) {
+            return R.ok(resultlist.size()).data(resultlist);
+        }else{
+            return R.error().message("访问失败");
+        }
+    }
+
+}

+ 123 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/auto/WindturbinetestingpointnewController.java

@@ -0,0 +1,123 @@
+package com.gyee.configuration.controller.auto;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.util.CommonUtils;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Windturbinetestingpointnew;
+import com.gyee.configuration.service.auto.IWindturbinetestingpointnewService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@RestController
+@RequestMapping("//config")
+public class WindturbinetestingpointnewController {
+    @Resource
+    private IWindturbinetestingpointnewService windturbinetestingpointnewService;
+
+    @GetMapping(value = "/windturbinepoint")
+    public R findList(@RequestParam(value = "pageNum",required = true) String pageNum,
+                      @RequestParam(value = "pageSize",required = true) String pageSize){
+        QueryWrapper<Windturbinetestingpointnew> qw = new QueryWrapper<>();
+        Page<Windturbinetestingpointnew> page = new Page<>(Integer.parseInt(pageNum),Integer.parseInt(pageSize));
+        Page<Windturbinetestingpointnew> p3DeviceFaultPage = windturbinetestingpointnewService.getBaseMapper().selectPage(page,qw);
+        List<Windturbinetestingpointnew> list = p3DeviceFaultPage.getRecords();
+        if (StringUtils.isNotEmpty(list)){
+            return R.ok(list.size()).data(list);
+        }else {
+            return R.error().data("查询失败!");
+        }
+    }
+
+    @GetMapping(value = "/windturbinepoint/{id}")
+    public R findOne(@PathVariable("id") String id){
+        QueryWrapper<Windturbinetestingpointnew> qw = new QueryWrapper<>();
+        qw.eq("id",id);
+        Windturbinetestingpointnew windturbinetestingpointnew = windturbinetestingpointnewService.getOne(qw);
+        if (StringUtils.isNotNull(windturbinetestingpointnew)){
+            return R.ok().data(windturbinetestingpointnew);
+        }else {
+            return R.error().data("查询失败!");
+        }
+
+    }
+
+    @PostMapping(value = "/windturbinepoint")
+    public R addAll(@RequestBody List<Windturbinetestingpointnew> list){
+        list.stream().forEach(i->i.setId(CommonUtils.getUUID()));
+        boolean b = windturbinetestingpointnewService.saveBatch(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("保存失败!");
+        }
+    }
+
+    @DeleteMapping(value = "/meterpoint/{ids}")
+    public  R deleteAll(@PathVariable("ids") String ids){
+        String[] strings = ids.split(",");
+        boolean b = windturbinetestingpointnewService.removeByIds(Arrays.asList(strings));
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("删除失败!");
+        }
+    }
+
+    @PutMapping(value = "/meterpoint")
+    public R update(@RequestBody List<Windturbinetestingpointnew> list){
+        boolean b = windturbinetestingpointnewService.updateBatchById(list);
+        if (b){
+            return R.ok().data(b);
+        }else {
+            return R.error().data("更新失败!");
+        }
+    }
+    @GetMapping(value = "/windturbinepoint/query")
+    public R findListByParam(@RequestParam(value = "wpid",required = false) String wpid,
+                             @RequestParam(value = "wtid",required = false) String wtid,
+                             @RequestParam(value = "uniformcode",required = false) String uniformcode,
+                             @RequestParam(value = "name",required = false) String name,
+                             @RequestParam(value = "code",required = false) String code,
+                             @RequestParam(value = "pageNum",required = false) String pageNum,
+                             @RequestParam(value = "pageSize",required = false) String pageSize){
+        QueryWrapper<Windturbinetestingpointnew> qw = new QueryWrapper<>();
+
+        if (StringUtils.isNotEmpty(wpid)){
+            qw.eq("windpowerstationid",wpid);
+        }
+        if (StringUtils.isNotEmpty(wtid)){
+            qw.eq("windturbineid",wtid);
+        }
+        if (StringUtils.isNotEmpty(uniformcode)){
+            qw.like("uniformcode",uniformcode);
+        }
+        if (StringUtils.isNotEmpty(name)){
+            qw.like("name",name);
+        }
+        if (StringUtils.isNotEmpty(code)){
+            qw.like("code",code);
+        }
+        Page<Windturbinetestingpointnew> page = new Page<>(Integer.parseInt(pageNum),Integer.parseInt(pageSize));
+        Page<Windturbinetestingpointnew> p3DeviceFaultPage = windturbinetestingpointnewService.getBaseMapper().selectPage(page, qw);
+        List<Windturbinetestingpointnew> resultlist = p3DeviceFaultPage.getRecords();
+        if (StringUtils.isNotNull(resultlist)) {
+            return R.ok(resultlist.size()).data(resultlist);
+        }else{
+            return R.error().message("访问失败");
+        }
+    }
+}

+ 56 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/controller/login/LoginController.java

@@ -0,0 +1,56 @@
+package com.gyee.configuration.controller.login;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.StringUtils;
+import com.gyee.common.util.JwtUtil;
+import com.gyee.configuration.config.R;
+import com.gyee.configuration.model.auto.Users;
+import com.gyee.configuration.service.auto.IUsersService;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @ClassName : LoginController
+ * @Author : xieshengjie
+ * @Date: 2022/6/17 10:49
+ * @Description :
+ */
+@RestController
+public class LoginController {
+    @Resource
+    private IUsersService usersService;
+
+    @GetMapping("/config/hello")
+    public String hello(){
+        return "hello world";
+    }
+
+    @GetMapping("/author/hello")
+    public String test(){
+        return "hello world";
+    }
+
+    @GetMapping("/auth/login")
+    public R login(String username, String password){
+        QueryWrapper<Users> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("username",username);
+        queryWrapper.eq("password",password);
+        List<Users> list = usersService.list(queryWrapper);
+        if (StringUtils.isNotEmpty(list)){
+            //存放在jwt中的info
+            Map<String,Object> info = new HashMap<>();
+            info.put("username",username);
+            info.put("password",password);
+            //生成token字符串
+            String token = JwtUtil.sign(username, info);
+            return R.ok().data("token:" + token);
+        }else {
+            return R.error().data("没有该用户!");
+        }
+    }
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/CompanysMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Companys;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface CompanysMapper extends BaseMapper<Companys> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/LineMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Line;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface LineMapper extends BaseMapper<Line> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/MeterpointMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Meterpoint;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface MeterpointMapper extends BaseMapper<Meterpoint> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/ProjectMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Project;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface ProjectMapper extends BaseMapper<Project> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/RegionMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Region;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface RegionMapper extends BaseMapper<Region> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/UsersMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Users;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface UsersMapper extends BaseMapper<Users> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindpowerstationMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Windpowerstation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface WindpowerstationMapper extends BaseMapper<Windpowerstation> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindpowerstationpointnewMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Windpowerstationpointnew;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface WindpowerstationpointnewMapper extends BaseMapper<Windpowerstationpointnew> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindturbineMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Windturbine;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface WindturbineMapper extends BaseMapper<Windturbine> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/mapper/auto/WindturbinetestingpointnewMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.mapper.auto;
+
+import com.gyee.configuration.model.auto.Windturbinetestingpointnew;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface WindturbinetestingpointnewMapper extends BaseMapper<Windturbinetestingpointnew> {
+
+}

+ 36 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Companys.java

@@ -0,0 +1,36 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("COMPANYS")
+public class Companys extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("RID")
+    private String rid;
+
+
+}

+ 54 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Line.java

@@ -0,0 +1,54 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("LINE")
+public class Line extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("ANAME")
+    private String aname;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("ORDERNUM")
+    private Double ordernum;
+
+    @TableField("CAPACITY")
+    private Double capacity;
+
+    @TableField("CAPACITYUNIT")
+    private String capacityunit;
+
+    @TableField("QUANTITY")
+    private Double quantity;
+
+
+}

+ 92 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Meterpoint.java

@@ -0,0 +1,92 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("METERPOINT")
+public class Meterpoint extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("DESCRIPTION")
+    private String description;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("LINEID")
+    private String lineid;
+
+    @TableField("METERTYPE")
+    private String metertype;
+
+    @TableField("METERCODE")
+    private String metercode;
+
+    @TableField("METERSORT")
+    private String metersort;
+
+    @TableField("DISPLAYTYPE")
+    private String displaytype;
+
+    @TableField("UNIFORMCODE")
+    private String uniformcode;
+
+    @TableField("MAGNIFICATION")
+    private Double magnification;
+
+    @TableField("SHORTID")
+    private String shortid;
+
+    @TableField("LONGID")
+    private String longid;
+
+    @TableField("REALTIMEID")
+    private String realtimeid;
+
+    @TableField("INITIALVALUE")
+    private Double initialvalue;
+
+    @TableField("XS")
+    private Double xs;
+
+    @TableField("MAGNIFICATIONXS")
+    private Double magnificationxs;
+
+    @TableField("OTHERVALUE")
+    private Double othervalue;
+
+    @TableField("OTHERDATE")
+    private Date otherdate;
+
+
+}

+ 71 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Project.java

@@ -0,0 +1,71 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("PROJECT")
+public class Project extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("ANAME")
+    private String aname;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("CAPACITY")
+    private Double capacity;
+
+    @TableField("CAPACITYUNIT")
+    private String capacityunit;
+
+    @TableField("QUANTITY")
+    private Double quantity;
+
+    @TableField("MODEL")
+    private String model;
+
+    @TableField("COMMISSIONDATE")
+    private Date commissiondate;
+
+    @TableField("MASTERPHONE")
+    private String masterphone;
+
+    @TableField("SHIFTFOREMAN")
+    private String shiftforeman;
+
+    @TableField("SHIFTFOREMANPHONE")
+    private String shiftforemanphone;
+
+    @TableField("ORDERNUM")
+    private Double ordernum;
+
+
+}

+ 36 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Region.java

@@ -0,0 +1,36 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("REGION")
+public class Region extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("CODE")
+    private String code;
+
+
+}

+ 47 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Users.java

@@ -0,0 +1,47 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("USERS")
+public class Users extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId("USERID")
+    private Long userid;
+
+    @TableField("USERNAME")
+    private String username;
+
+    @TableField("REALNAME")
+    private String realname;
+
+    @TableField("PASSWORD")
+    private String password;
+
+    @TableField("ISSUPER")
+    private Integer issuper;
+
+    @TableField("CREATORID")
+    private Double creatorid;
+
+    @TableField("ENABLE")
+    private Integer enable;
+
+
+}

+ 87 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windpowerstation.java

@@ -0,0 +1,87 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDPOWERSTATION")
+public class Windpowerstation extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("ADDRESS")
+    private String address;
+
+    @TableField("TELEPHONE")
+    private String telephone;
+
+    @TableField("CAPACITY")
+    private Double capacity;
+
+    @TableField("CAPACITYUNIT")
+    private String capacityunit;
+
+    @TableField("QUANTITY")
+    private Double quantity;
+
+    @TableField("ANAME")
+    private String aname;
+
+    @TableField("LONGITUDE")
+    private Double longitude;
+
+    @TableField("LATITUDE")
+    private Double latitude;
+
+    @TableField("PHOTO")
+    private String photo;
+
+    @TableField("COMPANYID")
+    private String companyid;
+
+    @TableField("SYSTEMMANUFACT")
+    private String systemmanufact;
+
+    @TableField("HEADFARM")
+    private String headfarm;
+
+    @TableField("HEADFARMPHONE")
+    private String headfarmphone;
+
+    @TableField("MODEL")
+    private String model;
+
+    @TableField("ORDERNUM")
+    private Double ordernum;
+
+    @TableField("ALTITUDE")
+    private Double altitude;
+
+    @TableField("HEIGHT")
+    private Double height;
+
+
+}

+ 78 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windpowerstationpointnew.java

@@ -0,0 +1,78 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDPOWERSTATIONPOINTNEW")
+public class Windpowerstationpointnew extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("MODEL")
+    private String model;
+
+    @TableField("VALUEUNIT")
+    private String valueunit;
+
+    @TableField("ENGLISHNAME")
+    private String englishname;
+
+    @TableField("TYPEID")
+    private String typeid;
+
+    @TableField("MODELID")
+    private String modelid;
+
+    @TableField("MAXVAL")
+    private Double maxval;
+
+    @TableField("MINVAL")
+    private Double minval;
+
+    @TableField("REASONABLEMAXVAL")
+    private Double reasonablemaxval;
+
+    @TableField("REASONABLEMINVAL")
+    private Double reasonableminval;
+
+    @TableField("UNIFORMCODE")
+    private String uniformcode;
+
+    @TableField("SHORTID")
+    private String shortid;
+
+    @TableField("LONGID")
+    private String longid;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("REALTIMEID")
+    private String realtimeid;
+
+
+}

+ 68 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windturbine.java

@@ -0,0 +1,68 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDTURBINE")
+public class Windturbine extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("LONGITUDE")
+    private Double longitude;
+
+    @TableField("LATITUDE")
+    private Double latitude;
+
+    @TableField("MODELID")
+    private String modelid;
+
+    @TableField("STATUS")
+    private String status;
+
+    @TableField("PROJECTID")
+    private String projectid;
+
+    @TableField("LINEID")
+    private String lineid;
+
+    @TableField("FIRSTINTEGRATEDTIME")
+    private Date firstintegratedtime;
+
+    @TableField("PHOTO")
+    private String photo;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("STANDARDID")
+    private String standardid;
+
+
+}

+ 81 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/model/auto/Windturbinetestingpointnew.java

@@ -0,0 +1,81 @@
+package com.gyee.configuration.model.auto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("WINDTURBINETESTINGPOINTNEW")
+public class Windturbinetestingpointnew extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.INPUT)
+    private String id;
+
+    @TableField("CODE")
+    private String code;
+
+    @TableField("NAME")
+    private String name;
+
+    @TableField("MODEL")
+    private String model;
+
+    @TableField("VALUEUNIT")
+    private String valueunit;
+
+    @TableField("ENGLISHNAME")
+    private String englishname;
+
+    @TableField("TYPEID")
+    private String typeid;
+
+    @TableField("MODELID")
+    private String modelid;
+
+    @TableField("MAXVAL")
+    private Double maxval;
+
+    @TableField("MINVAL")
+    private Double minval;
+
+    @TableField("REASONABLEMAXVAL")
+    private Double reasonablemaxval;
+
+    @TableField("REASONABLEMINVAL")
+    private Double reasonableminval;
+
+    @TableField("WINDTURBINEID")
+    private String windturbineid;
+
+    @TableField("UNIFORMCODE")
+    private String uniformcode;
+
+    @TableField("SHORTID")
+    private String shortid;
+
+    @TableField("LONGID")
+    private String longid;
+
+    @TableField("WINDPOWERSTATIONID")
+    private String windpowerstationid;
+
+    @TableField("REALTIMEID")
+    private String realtimeid;
+
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/ICompanysService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Companys;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface ICompanysService extends IService<Companys> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/ILineService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Line;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface ILineService extends IService<Line> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IMeterpointService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Meterpoint;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IMeterpointService extends IService<Meterpoint> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IProjectService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Project;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IProjectService extends IService<Project> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IRegionService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Region;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IRegionService extends IService<Region> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IUsersService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Users;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IUsersService extends IService<Users> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindpowerstationService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Windpowerstation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IWindpowerstationService extends IService<Windpowerstation> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindpowerstationpointnewService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Windpowerstationpointnew;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IWindpowerstationpointnewService extends IService<Windpowerstationpointnew> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindturbineService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Windturbine;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IWindturbineService extends IService<Windturbine> {
+
+}

+ 16 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/IWindturbinetestingpointnewService.java

@@ -0,0 +1,16 @@
+package com.gyee.configuration.service.auto;
+
+import com.gyee.configuration.model.auto.Windturbinetestingpointnew;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+public interface IWindturbinetestingpointnewService extends IService<Windturbinetestingpointnew> {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/CompanysServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Companys;
+import com.gyee.configuration.mapper.auto.CompanysMapper;
+import com.gyee.configuration.service.auto.ICompanysService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class CompanysServiceImpl extends ServiceImpl<CompanysMapper, Companys> implements ICompanysService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/LineServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Line;
+import com.gyee.configuration.mapper.auto.LineMapper;
+import com.gyee.configuration.service.auto.ILineService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements ILineService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/MeterpointServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Meterpoint;
+import com.gyee.configuration.mapper.auto.MeterpointMapper;
+import com.gyee.configuration.service.auto.IMeterpointService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class MeterpointServiceImpl extends ServiceImpl<MeterpointMapper, Meterpoint> implements IMeterpointService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/ProjectServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Project;
+import com.gyee.configuration.mapper.auto.ProjectMapper;
+import com.gyee.configuration.service.auto.IProjectService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> implements IProjectService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/RegionServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Region;
+import com.gyee.configuration.mapper.auto.RegionMapper;
+import com.gyee.configuration.service.auto.IRegionService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements IRegionService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/UsersServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Users;
+import com.gyee.configuration.mapper.auto.UsersMapper;
+import com.gyee.configuration.service.auto.IUsersService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements IUsersService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindpowerstationServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Windpowerstation;
+import com.gyee.configuration.mapper.auto.WindpowerstationMapper;
+import com.gyee.configuration.service.auto.IWindpowerstationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class WindpowerstationServiceImpl extends ServiceImpl<WindpowerstationMapper, Windpowerstation> implements IWindpowerstationService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindpowerstationpointnewServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Windpowerstationpointnew;
+import com.gyee.configuration.mapper.auto.WindpowerstationpointnewMapper;
+import com.gyee.configuration.service.auto.IWindpowerstationpointnewService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class WindpowerstationpointnewServiceImpl extends ServiceImpl<WindpowerstationpointnewMapper, Windpowerstationpointnew> implements IWindpowerstationpointnewService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindturbineServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Windturbine;
+import com.gyee.configuration.mapper.auto.WindturbineMapper;
+import com.gyee.configuration.service.auto.IWindturbineService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class WindturbineServiceImpl extends ServiceImpl<WindturbineMapper, Windturbine> implements IWindturbineService {
+
+}

+ 20 - 0
web/configurationpoint/src/main/java/com/gyee/configuration/service/auto/impl/WindturbinetestingpointnewServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.configuration.service.auto.impl;
+
+import com.gyee.configuration.model.auto.Windturbinetestingpointnew;
+import com.gyee.configuration.mapper.auto.WindturbinetestingpointnewMapper;
+import com.gyee.configuration.service.auto.IWindturbinetestingpointnewService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-06-17
+ */
+@Service
+public class WindturbinetestingpointnewServiceImpl extends ServiceImpl<WindturbinetestingpointnewMapper, Windturbinetestingpointnew> implements IWindturbinetestingpointnewService {
+
+}

+ 99 - 0
web/configurationpoint/src/main/resources/application-dev.yml

@@ -0,0 +1,99 @@
+server:
+  port: 8088
+  servlet:
+    context-path: /
+
+
+spring:
+  application:
+    name: healthmanagement-provider
+  main:
+    allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.2.198:8848
+        #指定yaml格式的配置
+        file-extension: yaml
+        cluster-name: master
+      username: nacos
+      password: nacos
+  #redis集群
+  redis:
+#    host: 10.83.68.94
+    host: 192.168.2.202
+    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
+    password:
+    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:@192.168.2.215:1521:gdsj
+#    url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
+    username: gdprod
+    password: gd123
+    oracle-schema=:
+    #    type: com.alibaba.druid.pool.DruidDataSource
+    #    url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
+    #    username: root
+    #    password: root
+    #    driver-class-name: com.mysql.jdbc.Driver
+    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
+
+

+ 99 - 0
web/configurationpoint/src/main/resources/application-test.yml

@@ -0,0 +1,99 @@
+server:
+  port: 8088
+  servlet:
+    context-path: /
+
+
+spring:
+  application:
+    name: healthmanagement-provider
+  main:
+    allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 10.83.68.97:8848
+        #指定yaml格式的配置
+        file-extension: yaml
+        cluster-name: master
+      username: nacos
+      password: nacos
+  #redis集群
+  redis:
+    host: 10.83.68.94
+#    host: 192.168.2.202
+    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
+    password:
+    application:
+      name: test
+    jedis:
+      pool:
+        max-active: 8
+        min-idle: 0
+        max-idle: 8
+        max-wait: -1
+    database: 19
+  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:@192.168.2.215:1521:gdsj
+    url: jdbc:oracle:thin:@10.83.68.165:1521:gdsj
+    username: gdprod
+    password: gd123
+    oracle-schema=:
+    #    type: com.alibaba.druid.pool.DruidDataSource
+    #    url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
+    #    username: root
+    #    password: root
+    #    driver-class-name: com.mysql.jdbc.Driver
+    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
+
+

+ 4 - 0
web/configurationpoint/src/main/resources/application.yml

@@ -0,0 +1,4 @@
+spring:
+  profiles:
+#    active: jn
+    active: test

+ 1 - 0
web/pom.xml

@@ -33,6 +33,7 @@
         <module>monitor-web-sxjn</module>
         <module>initialpoint</module>
         <module>alarm-hb</module>
+        <module>configurationpoint</module>
     </modules>