1.添加登录模块
This commit is contained in:
@@ -38,8 +38,16 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-security</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>influx-target</finalName>
|
<finalName>influx-target</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public class OracleToInfluxDBJob {
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
//每小时03分钟时执行上一个小时的数据同步
|
//每小时03分钟时执行上一个小时的数据同步
|
||||||
|
//河北这边比较特殊,
|
||||||
@Scheduled(cron="0 3 * * * ?")
|
@Scheduled(cron="0 3 * * * ?")
|
||||||
public void executeHours() {
|
public void executeHours() {
|
||||||
DataAsynParam dataAsynParam = new DataAsynParam();
|
DataAsynParam dataAsynParam = new DataAsynParam();
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ business:
|
|||||||
server:
|
server:
|
||||||
port: 8090
|
port: 8090
|
||||||
spring:
|
spring:
|
||||||
|
security:
|
||||||
|
user:
|
||||||
|
name: njcn
|
||||||
|
password: dnzl@#002
|
||||||
#influxDB内容配置
|
#influxDB内容配置
|
||||||
influx:
|
influx:
|
||||||
url: http://192.168.1.102:8086
|
url: http://192.168.1.102:8086
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public class DataTest extends BaseJunitTest {
|
|||||||
System.out.println(2222);
|
System.out.println(2222);
|
||||||
System.out.println(2222);
|
System.out.println(2222);
|
||||||
List<DataV> list = resultMapper.toPOJO(sqlResult, DataV.class);
|
List<DataV> list = resultMapper.toPOJO(sqlResult, DataV.class);
|
||||||
Map<String, List<DataV>> stringListMap = list.stream().collect(Collectors.groupingBy(obj -> obj.getPhasicType().concat(StrPool.UNDERLINE).concat(obj.getValueType())));
|
Map<String, List<DataV>> stringListMap = list.stream().collect(Collectors.groupingBy(obj -> obj.getPhaseType().concat(StrPool.UNDERLINE).concat(obj.getValueType())));
|
||||||
|
|
||||||
influxQueryWrapper = new InfluxQueryWrapper(DataInHarmRateV.class);
|
influxQueryWrapper = new InfluxQueryWrapper(DataInHarmRateV.class);
|
||||||
influxQueryWrapper.between(DataInHarmRateV::getTime, startTime, endTime).regular(DataInHarmRateV::getLineId, lineList);
|
influxQueryWrapper.between(DataInHarmRateV::getTime, startTime, endTime).regular(DataInHarmRateV::getLineId, lineList);
|
||||||
|
|||||||
Reference in New Issue
Block a user