xieshengjie 2 rokov pred
rodič
commit
027d1c58c5

+ 20 - 0
realtime/generation-service/src/main/java/com/gyee/generation/controller/MeterpointvalueController.java

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

+ 16 - 0
realtime/generation-service/src/main/java/com/gyee/generation/mapper/auto/MeterpointvalueMapper.java

@@ -0,0 +1,16 @@
+package com.gyee.generation.mapper.auto;
+
+import com.gyee.generation.model.auto.Meterpointvalue;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-03-21
+ */
+public interface MeterpointvalueMapper extends BaseMapper<Meterpointvalue> {
+
+}

+ 74 - 0
realtime/generation-service/src/main/java/com/gyee/generation/model/auto/Meterpointvalue.java

@@ -0,0 +1,74 @@
+package com.gyee.generation.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-03-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@TableName("METERPOINTVALUE")
+public class Meterpointvalue extends Model {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "ID",type = IdType.ASSIGN_ID)
+    private Long id;
+
+    @TableField("RECORDDATE")
+    private Date recorddate;
+
+    @TableField("METERID")
+    private String meterid;
+
+    @TableField("YEAR")
+    private Double year;
+
+    @TableField("MONTH")
+    private Double month;
+
+    @TableField("DAY")
+    private Double day;
+
+    @TableField("NOW")
+    private Double now;
+
+    @TableField("TOTALVALUE")
+    private Double totalvalue;
+
+    @TableField("YEARVALUE")
+    private Double yearvalue;
+
+    @TableField("MONTHVALUE")
+    private Double monthvalue;
+
+    @TableField("DAYVALUE")
+    private Double dayvalue;
+
+    @TableField("YEAR4")
+    private Double year4;
+
+    @TableField("MONTH4")
+    private Double month4;
+
+    @TableField("DAY4")
+    private Double day4;
+
+    @TableField("NOW4")
+    private Double now4;
+
+
+}

+ 16 - 0
realtime/generation-service/src/main/java/com/gyee/generation/service/auto/IMeterpointvalueService.java

@@ -0,0 +1,16 @@
+package com.gyee.generation.service.auto;
+
+import com.gyee.generation.model.auto.Meterpointvalue;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-03-21
+ */
+public interface IMeterpointvalueService extends IService<Meterpointvalue> {
+
+}

+ 20 - 0
realtime/generation-service/src/main/java/com/gyee/generation/service/auto/impl/MeterpointvalueServiceImpl.java

@@ -0,0 +1,20 @@
+package com.gyee.generation.service.auto.impl;
+
+import com.gyee.generation.model.auto.Meterpointvalue;
+import com.gyee.generation.mapper.auto.MeterpointvalueMapper;
+import com.gyee.generation.service.auto.IMeterpointvalueService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 谢生杰
+ * @since 2022-03-21
+ */
+@Service
+public class MeterpointvalueServiceImpl extends ServiceImpl<MeterpointvalueMapper, Meterpointvalue> implements IMeterpointvalueService {
+
+}

+ 114 - 0
realtime/generation-service/src/main/resources/application-td.yml

@@ -0,0 +1,114 @@
+server:
+  port: 7011
+  servlet:
+    context-path: /
+
+
+spring:
+  main:
+    allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
+  #redis集群
+  redis:
+    host: 10.83.68.151
+    port: 6379
+    timeout: 100000
+    #    集群环境打开下面注释,单机不需要打开
+    cluster:
+      #集群信息
+      nodes: 10.83.68.151:6379,10.83.68.152:6379,10.83.68.153:6379,10.83.68.154:6379,10.83.68.155:6379,10.83.68.156:6379,10.83.68.157:6379,10.83.68.158:6379,10.83.68.159:6379
+      #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
+      maxRedirects: 3
+    password: Dsjpt@2021
+    application:
+      name: test
+    jedis:
+      pool:
+        max-active: 8
+        min-idle: 0
+        max-idle: 8
+        max-wait: -1
+    database: 0
+  autoconfigure:
+    exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    driver-class-name: oracle.jdbc.OracleDriver
+    #外网
+    url: jdbc:oracle:thin:@10.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
+#db url
+db:
+  url: http://10.83.68.159:8011/ts
+#参与计算的场站
+runWindpowerstation: CL_FDC,KB_FDC,DX_FDC,SY_FDC
+#计算状态用ai或者di
+clauStatus:
+  ai: CL_FDC,KB_FDC,DX_FDC,SY_FDC   #配置期次
+  di:
+
+#判断数据终端
+second: 90
+#判断降出力
+AI134: 17.4
+AI178: 17.4
+#AI443:容量
+
+
+
+
+
+
+
+
+
+
+
+
+
+

BIN
realtime/healthmodel-server-cph.7z