| | |
| | | - 同步环境 :开发环境MariaDB 的库名为:localgd上 |
| | | |
| | | |
| | | 标签点完整数据结构: |
| | | ```json |
| | | { |
| | | "basePoint": { |
| | | "alarmindex": 0, |
| | | "archive": true, |
| | | "calcindex": 917504, |
| | | "changedate": 1575520921000, |
| | | "changer": "sa", |
| | | "classof": "RTDB_CALC", |
| | | "compdev": 1.0, |
| | | "compdevpercent": 0.009999999776482582, |
| | | "compress": true, |
| | | "comptimemax": 28800, |
| | | "comptimemin": 0, |
| | | "createdate": 1574164482000, |
| | | "creator": "sa", |
| | | "desc": "1号空压机故障指示", |
| | | "digits": -5, |
| | | "excdev": 0.5, |
| | | "excdevpercent": 0.004999999888241291, |
| | | "exctimemax": 600, |
| | | "exctimemin": 0, |
| | | "highlimit": 100.0, |
| | | "id": 9838, |
| | | "lowlimit": 0.0, |
| | | "microsecond": false, |
| | | "mirror": false, |
| | | "padding": "AAAAAAA=", |
| | | "scanindex": 0, |
| | | "shutdown": false, |
| | | "step": false, |
| | | "summary": false, |
| | | "table": 11, |
| | | "table_dot_tag": "SMS.SMS01_1号空压机故障指示", |
| | | "tag": "SMS01_1号空压机故障指示", |
| | | "type": "RTDB_BOOL", |
| | | "typical": 50.0, |
| | | "unit": "" |
| | | }, |
| | | "calcPoint": { |
| | | "equation": "if('DLZ_PLC.1号空压机故障指示'==1,1,0)", |
| | | "id": 9838, |
| | | "period": 65536, |
| | | "timecopy": "RTDB_CALC_TIME" |
| | | }, |
| | | "error": 0 |
| | | } |
| | | ``` |
| | | |
| | |
| | | <version>3.4</version> |
| | | </dependency> |
| | | |
| | | <!-- Golden实时数据库依赖jar包--> |
| | | <dependency> |
| | | <groupId>golden</groupId> |
| | | <artifactId>golden.commons.beanutils</artifactId> |
| | | <version>1.8.3</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>golden</groupId> |
| | | <artifactId>golden.commons.logging</artifactId> |
| | | <version>1.1.1</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>golden</groupId> |
| | | <artifactId>golden.golden.java.sdk</artifactId> |
| | | <version>3.0.34</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>golden</groupId> |
| | | <artifactId>golden.protobuf.java</artifactId> |
| | | <version>2.6.1</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | package com.hbbh.adapter; |
| | | |
| | | import com.hbbh.adapter.manager.impl.DataSourceManager; |
| | | import com.rtdb.model.FullPoint; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | |
| | | @SpringBootApplication |
| | | public class AdapterApplication { |