Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
1eddcfba
Commit
1eddcfba
authored
Mar 11, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 数据中心编译优化
parent
2797d73e
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
1583 additions
and
0 deletions
+1583
-0
.gitignore
signal-dataCenter-service/.gitignore
+31
-0
pom.xml
signal-dataCenter-service/pom.xml
+294
-0
package.xml
signal-dataCenter-service/src/main/assembly/package.xml
+49
-0
DataCenterApplication.java
...main/java/net/wanji/datacenter/DataCenterApplication.java
+21
-0
DataProcessServiceRegistrator.java
...wanji/datacenter/cache/DataProcessServiceRegistrator.java
+41
-0
CrossBaseLaneInfoMapper.java
.../wanji/datacenter/dao/mapper/CrossBaseLaneInfoMapper.java
+10
-0
CrossDataRealTimeMapper.java
.../wanji/datacenter/dao/mapper/CrossDataRealTimeMapper.java
+10
-0
CrossDirDataRealTimeMapper.java
...nji/datacenter/dao/mapper/CrossDirDataRealTimeMapper.java
+10
-0
CrossLaneDataRealTimeMapper.java
...ji/datacenter/dao/mapper/CrossLaneDataRealTimeMapper.java
+10
-0
CrossTurnDataRealTimeMapper.java
...ji/datacenter/dao/mapper/CrossTurnDataRealTimeMapper.java
+10
-0
ConsumerHandler.java
...main/java/net/wanji/datacenter/kafka/ConsumerHandler.java
+77
-0
LanePeriodicDataDTO.java
...va/net/wanji/datacenter/pojo/dto/LanePeriodicDataDTO.java
+131
-0
AreaDataRealTimePO.java
...java/net/wanji/datacenter/pojo/po/AreaDataRealTimePO.java
+42
-0
CrossBaseLaneInfoPO.java
...ava/net/wanji/datacenter/pojo/po/CrossBaseLaneInfoPO.java
+48
-0
CrossDataRealTimePO.java
...ava/net/wanji/datacenter/pojo/po/CrossDataRealTimePO.java
+68
-0
CrossDirDataHistPO.java
...java/net/wanji/datacenter/pojo/po/CrossDirDataHistPO.java
+69
-0
CrossDirDataRealTimePO.java
.../net/wanji/datacenter/pojo/po/CrossDirDataRealTimePO.java
+56
-0
CrossLaneDataRealTimePO.java
...net/wanji/datacenter/pojo/po/CrossLaneDataRealTimePO.java
+52
-0
CrossTurnDataRealtimePO.java
...net/wanji/datacenter/pojo/po/CrossTurnDataRealtimePO.java
+80
-0
DataProcessService.java
...ji/datacenter/service/dataconvert/DataProcessService.java
+36
-0
LanePeriodicDataProcessServiceImpl.java
.../dataconvert/impl/LanePeriodicDataProcessServiceImpl.java
+146
-0
Test.java
...a/net/wanji/datacenter/service/dataconvert/impl/Test.java
+33
-0
DataProcessTask.java
.../main/java/net/wanji/datacenter/task/DataProcessTask.java
+50
-0
application-dev.yml
...dataCenter-service/src/main/resources/application-dev.yml
+78
-0
application.yml
signal-dataCenter-service/src/main/resources/application.yml
+59
-0
CrossDataRealtimeMapper.xml
...ice/src/main/resources/mapper/CrossDataRealtimeMapper.xml
+37
-0
CrossDirDataHist.xml
...er-service/src/main/resources/mapper/CrossDirDataHist.xml
+23
-0
CrossTurnDataRealtimeMapper.xml
...src/main/resources/mapper/CrossTurnDataRealtimeMapper.xml
+12
-0
No files found.
signal-dataCenter-service/.gitignore
0 → 100644
View file @
1eddcfba
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
signal-dataCenter-service/pom.xml
0 → 100644
View file @
1eddcfba
<?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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
net.wanji
</groupId>
<artifactId>
traffic-signal-platform
</artifactId>
<version>
0.2.1
</version>
</parent>
<groupId>
net.wanji
</groupId>
<artifactId>
signal-dataCenter-service
</artifactId>
<version>
0.2.1
</version>
<name>
signal-dataCenter-service
</name>
<description>
signal-dataCenter-service
</description>
<properties>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.kafka
</groupId>
<artifactId>
spring-kafka
</artifactId>
</dependency>
<dependency>
<groupId>
net.wanji
</groupId>
<artifactId>
wj-common
</artifactId>
<version>
0.0.2
</version>
<exclusions>
<exclusion>
<artifactId>
mybatis
</artifactId>
<groupId>
org.mybatis
</groupId>
</exclusion>
<exclusion>
<artifactId>
jsqlparser
</artifactId>
<groupId>
com.github.jsqlparser
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-websocket
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-cache
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-freemarker
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</dependency>
<!-- Hutool -->
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
</dependency>
<!-- apache commons-->
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
</dependency>
<dependency>
<groupId>
commons-collections
</groupId>
<artifactId>
commons-collections
</artifactId>
</dependency>
<dependency>
<groupId>
commons-beanutils
</groupId>
<artifactId>
commons-beanutils
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
</dependency>
<!-- httpclient -->
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
</dependency>
<!-- jedis -->
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</dependency>
<!-- pagehelper 分页插件 -->
<dependency>
<groupId>
com.github.pagehelper
</groupId>
<artifactId>
pagehelper-spring-boot-starter
</artifactId>
</dependency>
<!-- jersey -->
<dependency>
<groupId>
org.glassfish.jersey.media
</groupId>
<artifactId>
jersey-media-multipart
</artifactId>
<exclusions>
<exclusion>
<artifactId>
javax.ws.rs-api
</artifactId>
<groupId>
javax.ws.rs
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- 海康SDK,需要Maven私服 -->
<dependency>
<groupId>
com.hikvision
</groupId>
<artifactId>
artemis-sdk
</artifactId>
</dependency>
<!-- 配置类处理器 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-configuration-processor
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
javax.el
</groupId>
<artifactId>
javax.el-api
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 编译插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
${maven.compiler.source}
</source>
<target>
${maven.compiler.target}
</target>
<compilerArguments>
<encoding>
${project.build.sourceEncoding}
</encoding>
</compilerArguments>
</configuration>
</plugin>
<!-- 项目打包插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>
true
</addClasspath>
<classpathPrefix>
lib/
</classpathPrefix>
<!-- 主类 -->
<mainClass>
net.wanji.datacenter.datacenterApplication
</mainClass>
</manifest>
</archive>
<excludes>
<exclude>
generate_code_vm/**
</exclude>
<exclude>
mybatis-generator/**
</exclude>
<exclude>
**/*.yml
</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<configuration>
<finalName>
signal-dataCenter-service
</finalName>
<descriptors>
<descriptor>
src/main/assembly/package.xml
</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<!-- swagger 导出配置 -->
<plugin>
<groupId>
io.github.swagger2markup
</groupId>
<artifactId>
swagger2markup-maven-plugin
</artifactId>
<version>
1.3.3
</version>
<configuration>
<swaggerInput>
http://10.102.1.182:30003/datacentersystem/v2/api-docs
</swaggerInput>
<outputDir>
src/docs/asciidoc/generated
</outputDir>
<config>
<swagger2markup.markupLanguage>
ASCIIDOC
</swagger2markup.markupLanguage>
</config>
</configuration>
</plugin>
<plugin>
<groupId>
org.asciidoctor
</groupId>
<artifactId>
asciidoctor-maven-plugin
</artifactId>
<version>
1.5.6
</version>
<configuration>
<sourceDirectory>
src/docs/asciidoc/generated
</sourceDirectory>
<outputDirectory>
src/docs/asciidoc/html
</outputDirectory>
<backend>
html
</backend>
<sourceHighlighter>
coderay
</sourceHighlighter>
<attributes>
<toc>
left
</toc>
</attributes>
</configuration>
</plugin>
<!-- mvn clean package -Dmaven.test.skip=true jib:build -DsendCredentialsOverHttp=true -->
<!-- 使用jib 无需深入学习docker, 无需编写Dockerfile -->
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<version>
2.5.2
</version>
<configuration>
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
<from>
<!--使用harbor上的openjdk镜像-->
<image>
${harbor.ip.port}/xinkong/openjdk:8-alpine3.9
</image>
<!--harbor服务器的登录信息-->
<auth>
<username>
admin
</username>
<password>
Wanji300552
</password>
</auth>
</from>
<to>
<image>
${harbor.ip.port}/xinkong/${artifactId}:${version}
</image>
<auth>
<username>
admin
</username>
<password>
Wanji300552
</password>
</auth>
</to>
<container>
<!--配置jvm虚拟机参数-->
<jvmFlags>
<jvmFlag>
-Xms512m
</jvmFlag>
<jvmFlag>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=15115
</jvmFlag>
</jvmFlags>
<!--配置使用的时区-->
<environment>
<TZ>
Asia/Shanghai
</TZ>
<spring.profiles.active>
dev
</spring.profiles.active>
</environment>
<!--要暴露的端口-->
<ports>
<port>
32000
</port>
<port>
15115
</port>
</ports>
<!-- <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>-->
<creationTime>
${maven.build.timestamp}
</creationTime>
<mainClass>
net.wanji.datacenter.DataCenterApplication
</mainClass>
</container>
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
<executions>
<execution>
<phase>
package
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
signal-dataCenter-service/src/main/assembly/package.xml
0 → 100644
View file @
1eddcfba
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"
>
<id>
1.0
</id>
<formats>
<format>
tar.gz
</format>
<format>
dir
</format>
</formats>
<includeBaseDirectory>
true
</includeBaseDirectory>
<fileSets>
<!-- for bin -->
<fileSet>
<directory>
src/main/bin
</directory>
<includes>
<include>
*.*
</include>
</includes>
<directoryMode>
775
</directoryMode>
<outputDirectory>
bin/
</outputDirectory>
</fileSet>
<!-- for configs -->
<fileSet>
<directory>
src/main/resources
</directory>
<includes>
<include>
*.yml
</include>
<include>
*.xml
</include>
</includes>
<outputDirectory>
/
</outputDirectory>
</fileSet>
<!-- for jar -->
<fileSet>
<directory>
${project.build.directory}
</directory>
<outputDirectory>
/
</outputDirectory>
<includes>
<include>
*.jar
</include>
</includes>
</fileSet>
</fileSets>
<!-- for lib -->
<dependencySets>
<dependencySet>
<outputDirectory>
lib/
</outputDirectory>
<scope>
runtime
</scope>
<excludes>
<exclude>
${groupId}:${artifactId}
</exclude>
</excludes>
</dependencySet>
</dependencySets>
</assembly>
signal-dataCenter-service/src/main/java/net/wanji/datacenter/DataCenterApplication.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
@SpringBootApplication
(
scanBasePackages
=
{
"net.wanji.datacenter"
,
"net.wanji.common"
})
@MapperScan
(
basePackages
=
{
"net.wanji.datacenter.dao.mapper"
})
@EnableTransactionManagement
@EnableScheduling
@EnableAsync
public
class
DataCenterApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DataCenterApplication
.
class
,
args
);
}
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/cache/DataProcessServiceRegistrator.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
cache
;
import
lombok.extern.slf4j.Slf4j
;
import
net.wanji.common.framework.spring.ServiceBeanContext
;
import
net.wanji.datacenter.service.dataconvert.DataProcessService
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.stereotype.Component
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* @author duanruiming
* @date 2023/03/10 14:04
*/
@Component
@Slf4j
public
class
DataProcessServiceRegistrator
implements
CommandLineRunner
{
private
final
Map
<
String
,
DataProcessService
>
dataProcessServiceRegistor
=
new
HashMap
<>();
/**
* 获取注册器
*
* @return
*/
public
Map
<
String
,
DataProcessService
>
getDataProcessServiceRegistor
()
{
return
dataProcessServiceRegistor
;
}
@Override
public
void
run
(
String
...
args
)
throws
Exception
{
Map
<
String
,
DataProcessService
>
map
=
ServiceBeanContext
.
getInterfaceBeanMap
(
DataProcessService
.
class
);
if
(!
map
.
isEmpty
())
{
dataProcessServiceRegistor
.
putAll
(
map
);
}
else
{
log
.
error
(
"初始化数据处理注册器失败"
);
}
}
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/dao/mapper/CrossBaseLaneInfoMapper.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
dao
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* @author duanruiming
* @date 2023/03/10 20:32
*/
public
interface
CrossBaseLaneInfoMapper
extends
BaseMapper
{
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/dao/mapper/CrossDataRealTimeMapper.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
dao
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* @author duanruiming
* @date 2023/03/10 20:06
*/
public
interface
CrossDataRealTimeMapper
extends
BaseMapper
{
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/dao/mapper/CrossDirDataRealTimeMapper.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
dao
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* @author duanruiming
* @date 2023/03/10 21:09
*/
public
interface
CrossDirDataRealTimeMapper
extends
BaseMapper
{
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/dao/mapper/CrossLaneDataRealTimeMapper.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
dao
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* @author duanruiming
* @date 2023/03/10 21:11
*/
public
interface
CrossLaneDataRealTimeMapper
extends
BaseMapper
{
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/dao/mapper/CrossTurnDataRealTimeMapper.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
dao
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* @author duanruiming
* @date 2023/03/10 21:11
*/
public
interface
CrossTurnDataRealTimeMapper
extends
BaseMapper
{
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/kafka/ConsumerHandler.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
kafka
;
import
lombok.NonNull
;
import
lombok.extern.slf4j.Slf4j
;
import
net.wanji.common.utils.tool.StringUtils
;
import
org.apache.kafka.clients.consumer.Consumer
;
import
org.apache.kafka.clients.consumer.ConsumerRecord
;
import
org.springframework.kafka.annotation.KafkaListener
;
import
org.springframework.kafka.listener.KafkaListenerErrorHandler
;
import
org.springframework.kafka.listener.ListenerExecutionFailedException
;
import
org.springframework.kafka.support.Acknowledgment
;
import
org.springframework.messaging.Message
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
import
java.util.concurrent.ConcurrentHashMap
;
/**
* @author duanruiming
* @date 2023/03/09 16:03
*/
@Component
@Slf4j
public
class
ConsumerHandler
implements
KafkaListenerErrorHandler
{
/**
* kafka数据缓存
* key:topic value:data
*/
private
static
final
Map
<
String
,
String
>
lanePeriodicDataMap
=
new
ConcurrentHashMap
<>();
/**
* 通过消息主题获取消息信息
*
* @param topic
* @return
*/
public
String
getTopicMessage
(
String
topic
)
{
if
(
StringUtils
.
isNotBlank
(
topic
)
&&
!
lanePeriodicDataMap
.
isEmpty
())
{
return
lanePeriodicDataMap
.
get
(
topic
);
}
return
null
;
}
/**
* 通过主题移除缓存中消息
*
* @param topic
*/
public
void
removeTopicMessage
(
String
topic
)
{
lanePeriodicDataMap
.
remove
(
topic
);
}
@KafkaListener
(
topics
=
{
"JN040001LanePeriodicData"
})
public
void
receiveLanePeriodicData
(
ConsumerRecord
<
Object
,
Object
>
record
,
Acknowledgment
acknowledgment
)
{
log
.
info
(
"收到kafka消息,消息主题:"
+
record
.
topic
());
log
.
info
(
"收到kafka消息,消息内容:"
+
record
.
value
());
lanePeriodicDataMap
.
put
(
record
.
topic
(),
String
.
valueOf
(
record
.
value
()));
acknowledgment
.
acknowledge
();
}
@Override
@NonNull
public
Object
handleError
(
Message
<?>
message
,
ListenerExecutionFailedException
e
)
{
return
new
Object
();
}
@Override
@NonNull
public
Object
handleError
(
Message
<?>
message
,
ListenerExecutionFailedException
exception
,
Consumer
<?,
?>
consumer
)
{
String
errorMessage
=
String
.
format
(
"监听主题:%s,消费者详情:%s,异常信息:%s,消息详情:%s"
,
consumer
.
listTopics
(),
consumer
.
groupMetadata
(),
exception
,
message
);
log
.
error
(
errorMessage
);
return
KafkaListenerErrorHandler
.
super
.
handleError
(
message
,
exception
,
consumer
);
}
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/dto/LanePeriodicDataDTO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
dto
;
import
lombok.Data
;
import
java.util.List
;
/**
* @author duanruiming
* @date 2023/03/09 17:02
*/
@Data
public
class
LanePeriodicDataDTO
{
/**
* 车道事件集合
*/
private
List
<
EventList
>
eventList
;
/**
* 车道数量
*/
private
Integer
laneNum
;
/**
* 全域编号
*/
private
String
orgCode
;
/**
* 数据生成时间: yyyy-MM-dd HH:mm:ss:SSS
*/
private
String
timeStamp
;
@Data
public
class
EventList
{
/**
* 最大动态排队长度
*/
private
double
dynamicQueueLengthMax
;
/**
* 最小动态排队长度
*/
private
Integer
dynamicQueueLengthMin
;
/**
* 绿灯有效利用率
*/
private
Integer
greenLightEfficiency
;
/**
* 车道号(路网数据)
*/
private
String
laneId
;
/**
* 车道通行能力
*/
private
Integer
laneCapacity
;
/**
* 车道流率
*/
private
Integer
laneFlowRate
;
/**
* 不停车率
*/
private
Integer
laneNoStopRate
;
/**
* 一次停车率
*/
private
Integer
laneOneStopRate
;
/**
* 车道饱和度
*/
private
double
laneSaturation
;
/**
* 车道饱和流率
*/
private
Integer
laneSaturationFlowRate
;
/**
* 三次停车率
*/
private
Integer
laneThreeStopRate
;
/**
* 二次停车率
*/
private
Integer
laneTwoStopRate
;
/**
* 绿灯结束排队长度
*/
private
double
lightGreenFinishQueueLength
;
/**
* 绿灯起亮排队长度
*/
private
Integer
lightGreenStartQueueLength
;
/**
* 平均延误
*/
private
Integer
meanDelay
;
/**
* 平均停车次数
*/
private
Integer
meanStopsNumber
;
/**
* 平均点速度
*/
private
double
meanV
;
/**
* 最大静态排队长度
*/
private
Integer
staticQueueLengthMax
;
/**
* 最小静态排队长度
*/
private
Integer
staticQueueLengthMin
;
/**
* 时间占有率
*/
private
double
timeOccupancy
;
/**
* 自然流量
*/
private
Integer
trafficFlow
;
/**
* 小车当量
*/
private
Integer
trolleyEquivalent
;
/**
* 平均空间密度(长度占比)
*/
private
double
vehicleLengthRatioMean
;
/**
* 平均空间密度(车辆负荷比)
*/
private
double
vehicleNumsRatioMean
;
}
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/po/AreaDataRealTimePO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
po
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author duanruiming
* @date 2023/03/10 17:27
*/
@Data
@ApiModel
(
value
=
"AreaDataRealPO"
,
description
=
"区域实时数据"
)
public
class
AreaDataRealTimePO
{
@ApiModelProperty
(
name
=
"区域id"
,
notes
=
""
)
private
String
areaId
;
@ApiModelProperty
(
name
=
"交通状态:1畅通 2缓行 3拥挤 4严重拥堵"
,
notes
=
""
)
private
Integer
status
;
@ApiModelProperty
(
name
=
"拥堵类型 1常规 2异常"
,
notes
=
""
)
private
Integer
type
;
@ApiModelProperty
(
name
=
"交通指数"
,
notes
=
""
)
private
Double
trafficIndex
;
@ApiModelProperty
(
name
=
"开始时间"
,
notes
=
""
)
private
Date
startTime
;
@ApiModelProperty
(
name
=
"持续时间"
,
notes
=
""
)
private
Integer
duration
;
@ApiModelProperty
(
name
=
"平均速度"
,
notes
=
""
)
private
Double
speed
;
@ApiModelProperty
(
name
=
"停车次数"
,
notes
=
""
)
private
Double
stopTimes
;
@ApiModelProperty
(
name
=
"延误时间"
,
notes
=
""
)
private
Integer
delayTime
;
@ApiModelProperty
(
name
=
"饱和度"
,
notes
=
""
)
private
Double
sturation
;
@ApiModelProperty
(
name
=
"数据批次 十位日期int"
,
notes
=
""
)
private
Integer
batchTime
;
@ApiModelProperty
(
name
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/po/CrossBaseLaneInfoPO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
po
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author duanruiming
* @date 2023/03/10 20:17
*/
@Data
@TableName
(
"t_base_lane_info"
)
@ApiModel
(
value
=
"CrossBaseLaneInfoPO"
,
description
=
"路口基础车道数据"
)
public
class
CrossBaseLaneInfoPO
{
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
String
id
;
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
String
code
;
@ApiModelProperty
(
name
=
"车道序号,从左车道开始编号11、12、13..."
,
notes
=
""
)
private
Integer
sort
;
@ApiModelProperty
(
name
=
"车道类型:1路段车道;2进口车道;3出口车道;4左转弯待转区;6直行待行区"
,
notes
=
""
)
private
Integer
type
;
@ApiModelProperty
(
name
=
"车道方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北"
,
notes
=
""
)
private
Integer
dir
;
@ApiModelProperty
(
name
=
"车道转向:1左转;2直行;3右转;4掉头;5直左;6直右;7左直右;8左右;9左转掉头;10直行掉头;11右转掉头;12左直掉头;13直右掉头;14左直右掉头;15左右掉头"
,
notes
=
""
)
private
Integer
turn
;
@ApiModelProperty
(
name
=
"车道类别:1机动车;2非机动车;3公交专用;4可变;5潮汐"
,
notes
=
""
)
private
Integer
category
;
@ApiModelProperty
(
name
=
"路口编号"
,
notes
=
""
)
private
String
crossId
;
@ApiModelProperty
(
name
=
"路段编号"
,
notes
=
""
)
private
String
rid
;
@ApiModelProperty
(
name
=
"渠化编号"
,
notes
=
""
)
private
String
segmentId
;
@ApiModelProperty
(
name
=
"车道长度"
,
notes
=
""
)
private
Double
length
;
@ApiModelProperty
(
name
=
"车道宽度"
,
notes
=
""
)
private
Double
width
;
@ApiModelProperty
(
name
=
"空间对象"
,
notes
=
""
)
private
String
wkt
;
@ApiModelProperty
(
name
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/po/CrossDataRealTimePO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
po
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author duanruiming
* @date 2023/03/10 19:02
*/
@Data
@TableName
(
"t_cross_data_realtime"
)
@ApiModel
(
value
=
"CrossDataRealTimePO"
,
description
=
"路口实时数据"
)
public
class
CrossDataRealTimePO
{
@ApiModelProperty
(
name
=
"路口编号"
,
notes
=
""
)
private
String
crossId
;
@ApiModelProperty
(
name
=
"路口状态:0正常 1失衡 2拥堵 3溢出 4死锁"
,
notes
=
""
)
private
Integer
status
;
@ApiModelProperty
(
name
=
"拥堵类型 1常规 2异常"
,
notes
=
""
)
private
Integer
type
;
@ApiModelProperty
(
name
=
"交通指数(1-10)"
,
notes
=
""
)
private
Double
trafficIndex
;
@ApiModelProperty
(
name
=
"开始时间 yyyy-MM-dd HH:mm:sss"
,
notes
=
""
)
private
Date
startTime
;
@ApiModelProperty
(
name
=
"持续时间(分钟)"
,
notes
=
""
)
private
Integer
duration
;
@ApiModelProperty
(
name
=
"是否失衡 0否 1是"
,
notes
=
""
)
private
Integer
unbalanceStatus
;
@ApiModelProperty
(
name
=
"是否溢出 0否 1是"
,
notes
=
""
)
private
Integer
spilloverStatus
;
@ApiModelProperty
(
name
=
"是否拥堵 0否 1是"
,
notes
=
""
)
private
Integer
congestionStatus
;
@ApiModelProperty
(
name
=
"失衡指数"
,
notes
=
""
)
private
Double
unbalanceIndex
;
@ApiModelProperty
(
name
=
"溢出指数"
,
notes
=
""
)
private
Double
spilloverIndex
;
@ApiModelProperty
(
name
=
"拥堵指数"
,
notes
=
""
)
private
Double
congestionIndex
;
@ApiModelProperty
(
name
=
"路口失衡方向:1,2,3..."
,
notes
=
""
)
private
String
unbalanceDirs
;
@ApiModelProperty
(
name
=
"溢出方向"
,
notes
=
""
)
private
String
spilloverDirs
;
@ApiModelProperty
(
name
=
"拥堵方向"
,
notes
=
""
)
private
String
congestionDirs
;
@ApiModelProperty
(
name
=
"交通流量(辆)"
,
notes
=
""
)
private
Integer
flow
;
@ApiModelProperty
(
name
=
"交通流率/h"
,
notes
=
""
)
private
Double
flowRate
;
@ApiModelProperty
(
name
=
"平均速度"
,
notes
=
""
)
private
Double
speed
;
@ApiModelProperty
(
name
=
"最大排队长度"
,
notes
=
""
)
private
Double
queueLength
;
@ApiModelProperty
(
name
=
"停车次数"
,
notes
=
""
)
private
Integer
stopTimes
;
@ApiModelProperty
(
name
=
"延误时间"
,
notes
=
""
)
private
Integer
delayTime
;
@ApiModelProperty
(
name
=
"饱和度:欠饱和:<0.6;近饱和:>=0.6 & < 0.8;过饱和:>0.8"
,
notes
=
""
)
private
Double
sturation
;
@ApiModelProperty
(
name
=
"数据批次 十位日期int"
,
notes
=
""
)
private
Integer
batchTime
;
@ApiModelProperty
(
name
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/po/CrossDirDataHistPO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
po
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author hfx
* @date 2023/1/10 16:36
* @desc CrossDataRealtimePO
*/
@Data
@ApiModel
(
value
=
"CrossDirDataHistPO"
,
description
=
"路口转向实时历史数据"
)
public
class
CrossDirDataHistPO
{
/** 路口方向ID(路口ID_方向_进出口_主辅路序号) */
@ApiModelProperty
(
name
=
"路口方向ID(路口ID_方向_进出口_主辅路序号)"
,
notes
=
""
)
private
String
id
;
/** 路口方向类型:1北;2东北;3东;4东南;5南;6西南;7西;8西北 */
@ApiModelProperty
(
name
=
"路口方向类型:1北;2东北;3东;4东南;5南;6西南;7西;8西北"
,
notes
=
""
)
private
Integer
dirType
;
/** 进出口类型:1进口;2出口 */
@ApiModelProperty
(
name
=
"进出口类型:1进口;2出口"
,
notes
=
""
)
private
Integer
inOutType
;
/** 路口ID */
@ApiModelProperty
(
name
=
"路口ID"
,
notes
=
""
)
private
String
crossId
;
/** 路段长度 */
@ApiModelProperty
(
name
=
"路段长度"
,
notes
=
""
)
private
Double
length
;
/** 交通状态:1畅通;2缓行;3拥堵;4严重拥堵;5未知 */
@ApiModelProperty
(
name
=
"交通状态:1畅通;2缓行;3拥堵;4严重拥堵;5未知"
,
notes
=
""
)
private
Integer
status
;
/** 交通指数 */
@ApiModelProperty
(
name
=
"交通指数"
,
notes
=
""
)
private
Double
trafficIndex
;
@ApiModelProperty
(
value
=
"开始时间:yyyy-MM-dd HH:mm:ss"
,
notes
=
""
)
private
Date
startTime
;
@ApiModelProperty
(
value
=
"持续时间(单位:分钟)"
,
notes
=
""
)
private
Integer
duration
;
/** 交通流量(辆) */
@ApiModelProperty
(
name
=
"交通流量(辆)"
,
notes
=
""
)
private
Integer
flow
;
/** 平均速度(km/h) */
@ApiModelProperty
(
name
=
"平均速度(km/h)"
,
notes
=
""
)
private
Double
speed
;
/** 排队长度(米) */
@ApiModelProperty
(
name
=
"排队长度(米)"
,
notes
=
""
)
private
Double
queueLength
;
/** 停车次数(次) */
@ApiModelProperty
(
name
=
"停车次数(次)"
,
notes
=
""
)
private
Double
stopTimes
;
/** 延误时间(秒) */
@ApiModelProperty
(
name
=
"延误时间(秒)"
,
notes
=
""
)
private
Integer
delayTime
;
/** 饱和度 */
@ApiModelProperty
(
name
=
"饱和度"
,
notes
=
""
)
private
Double
sturation
;
/** 采集时间(10位时间戳) */
@ApiModelProperty
(
name
=
"采集时间(10位时间戳)"
,
notes
=
""
)
private
Integer
batchTime
;
/** 创建时间 */
@ApiModelProperty
(
name
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
/** 修改时间 */
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/po/CrossDirDataRealTimePO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
po
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author duanruiming
* @date 2023/03/10 19:22
*/
@Data
@TableName
(
"t_cross_dir_data_realtime"
)
@ApiModel
(
value
=
"CrossDirDataRealTimePO"
,
description
=
"路口转向实时数据"
)
public
class
CrossDirDataRealTimePO
{
@ApiModelProperty
(
name
=
"路口方向ID(路口ID_方向_进出口_主辅路序号)"
,
notes
=
""
)
private
String
id
;
@ApiModelProperty
(
name
=
"路口方向类型:1北;2东北;3东;4东南;5南;6西南;7西;8西北"
,
notes
=
""
)
private
Integer
dirType
;
@ApiModelProperty
(
name
=
"进出口类型:1进口;2出口"
,
notes
=
""
)
private
Integer
inOutType
;
@ApiModelProperty
(
name
=
"进出口类型:1进口;2出口"
,
notes
=
""
)
private
String
crossId
;
@ApiModelProperty
(
name
=
"路段长度"
,
notes
=
""
)
private
Double
length
;
@ApiModelProperty
(
name
=
"交通状态:1畅通;2缓行;3拥堵;4严重拥堵;5未知"
,
notes
=
""
)
private
Integer
status
;
@ApiModelProperty
(
name
=
"交通指数"
,
notes
=
""
)
private
Double
trafficIndex
;
@ApiModelProperty
(
name
=
"开始时间"
,
notes
=
""
)
private
Date
startTime
;
@ApiModelProperty
(
name
=
"持续时间"
,
notes
=
""
)
private
Integer
duration
;
@ApiModelProperty
(
name
=
"交通流量(辆)"
,
notes
=
""
)
private
Integer
flow
;
@ApiModelProperty
(
name
=
"平均速度(km/h)"
,
notes
=
""
)
private
Double
speed
;
@ApiModelProperty
(
name
=
"排队长(米)"
,
notes
=
""
)
private
Double
queueLength
;
@ApiModelProperty
(
name
=
"停车次数"
,
notes
=
""
)
private
Integer
stopTimes
;
@ApiModelProperty
(
name
=
"延误时间"
,
notes
=
""
)
private
Integer
delayTime
;
@ApiModelProperty
(
name
=
"饱和度"
,
notes
=
""
)
private
Double
sturation
;
@ApiModelProperty
(
name
=
"采集时间(10位时间戳)"
,
notes
=
""
)
private
Integer
batchTime
;
@ApiModelProperty
(
name
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
@ApiModelProperty
(
name
=
"溢流时长,计算溢流率提供;溢流率:交叉口间路段车辆排队长度超出可容纳空间的时长与观测总时长的百分比"
,
notes
=
""
)
private
Double
effusionTime
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/po/CrossLaneDataRealTimePO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
po
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author duanruiming
* @date 2023/03/10 19:36
*/
@Data
@TableName
(
"t_cross_turn_data_realtime"
)
@ApiModel
(
value
=
"CrossLaneDataRealTimePO"
,
description
=
"路口车道实时数据"
)
public
class
CrossLaneDataRealTimePO
{
@ApiModelProperty
(
name
=
"车道编号"
,
notes
=
""
)
private
String
id
;
@ApiModelProperty
(
name
=
"路口编号"
,
notes
=
""
)
private
String
crossId
;
@ApiModelProperty
(
name
=
"交通流量(辆)"
,
notes
=
""
)
private
String
flow
;
@ApiModelProperty
(
name
=
"平均速度(km/h)"
,
notes
=
""
)
private
String
speed
;
@ApiModelProperty
(
name
=
"驶入速度(km/h)"
,
notes
=
""
)
private
String
in_speed
;
@ApiModelProperty
(
name
=
"驶出速度(km/h)"
,
notes
=
""
)
private
String
out_speed
;
@ApiModelProperty
(
name
=
"排队长度(米)"
,
notes
=
""
)
private
String
queue_length
;
@ApiModelProperty
(
name
=
"停车次数"
,
notes
=
""
)
private
String
stop_times
;
@ApiModelProperty
(
name
=
"延误时间"
,
notes
=
""
)
private
String
delay_time
;
@ApiModelProperty
(
name
=
"通行能力(辆/某一时段内最大过车数),通行能力=自然流量"
,
notes
=
""
)
private
String
capacity
;
@ApiModelProperty
(
name
=
"饱和度"
,
notes
=
""
)
private
String
sturation
;
@ApiModelProperty
(
name
=
"车头间距(米)"
,
notes
=
""
)
private
String
vehhead_dist
;
@ApiModelProperty
(
name
=
"车头时距(秒)"
,
notes
=
""
)
private
String
vehhead_time
;
@ApiModelProperty
(
name
=
"可信度(0-1)"
,
notes
=
""
)
private
String
quality
;
@ApiModelProperty
(
name
=
"采集时间(10位时间戳)"
,
notes
=
""
)
private
String
batch_time
;
@ApiModelProperty
(
name
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/pojo/po/CrossTurnDataRealtimePO.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
pojo
.
po
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author hfx
* @date 2023/1/10 16:36
* @desc CrossDataRealtimePO
*/
@Data
@TableName
(
"t_lane_data_realtime"
)
@ApiModel
(
value
=
"CrossTurnDataRealtimePO"
,
description
=
"路口转向实时数据"
)
public
class
CrossTurnDataRealtimePO
{
/** 转向ID(路口ID_驶入方向_转向类型) */
@ApiModelProperty
(
name
=
"转向ID(路口ID_驶入方向_转向类型)"
,
notes
=
""
)
private
String
id
;
/** 转向类型:u掉头;l左转;s直行;r右转; */
@ApiModelProperty
(
name
=
"转向类型:u掉头;l左转;s直行;r右转;"
,
notes
=
""
)
private
String
turnType
;
/** 驶入方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北 */
@ApiModelProperty
(
name
=
"驶入方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北"
,
notes
=
""
)
private
Integer
inDir
;
/** 驶出方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北 */
@ApiModelProperty
(
name
=
"驶出方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北"
,
notes
=
""
)
private
Integer
outDir
;
/** 路口ID */
@ApiModelProperty
(
name
=
"路口ID"
,
notes
=
""
)
private
String
crossId
;
/** 交通流量(辆) */
@ApiModelProperty
(
name
=
"交通流量(辆)"
,
notes
=
""
)
private
Integer
flow
;
@ApiModelProperty
(
name
=
"交通状态:1畅通;2缓行;3拥堵;4严重拥堵;5未知"
,
notes
=
""
)
private
Integer
status
;
@ApiModelProperty
(
name
=
"交通指数"
,
notes
=
""
)
private
Double
trafficIndex
;
/** 平均速度(km/h) */
@ApiModelProperty
(
name
=
"平均速度(km/h)"
,
notes
=
""
)
private
Double
speed
;
/** 驶入速度(km/h) */
@ApiModelProperty
(
name
=
"驶入速度(km/h)"
,
notes
=
""
)
private
Double
inSpeed
;
/** 驶出速度(km/h) */
@ApiModelProperty
(
name
=
"驶出速度(km/h)"
,
notes
=
""
)
private
Double
outSpeed
;
/** 排队长度(米) */
@ApiModelProperty
(
name
=
"排队长度(米)"
,
notes
=
""
)
private
Double
queueLength
;
/** 停车次数(次) */
@ApiModelProperty
(
name
=
"停车次数(次)"
,
notes
=
""
)
private
Double
stopTimes
;
/** 延误时间(秒) */
@ApiModelProperty
(
name
=
"延误时间(秒)"
,
notes
=
""
)
private
Integer
delayTime
;
/** 饱和度 */
@ApiModelProperty
(
name
=
"饱和度"
,
notes
=
""
)
private
Double
sturation
;
/** 车头间距(米) */
@ApiModelProperty
(
name
=
"车头间距(米)"
,
notes
=
""
)
private
Double
vehheadDist
;
/** 车头时距(秒) */
@ApiModelProperty
(
name
=
"车头时距(秒)"
,
notes
=
""
)
private
Double
vehheadTime
;
/** 可信度:0~1 */
@ApiModelProperty
(
name
=
"可信度:0~1"
,
notes
=
""
)
private
Double
quality
;
/** 采集时间(10位时间戳) */
@ApiModelProperty
(
name
=
"采集时间(10位时间戳)"
,
notes
=
""
)
private
Integer
batchTime
;
/** 创建时间 */
@ApiModelProperty
(
name
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
/** 修改时间 */
@ApiModelProperty
(
name
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/service/dataconvert/DataProcessService.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
service
.
dataconvert
;
/**
* @author duanruiming
* @date 2023/03/10 9:48
*/
public
interface
DataProcessService
{
/**
* 数据中心收到数据
*
* @param topic
* @return
*/
String
receive
(
String
topic
);
/**
* 数据中心发送数据, 通过远程调用调用不同的服务
*
* @param convertData
*/
void
send
(
String
topic
,
Object
convertData
);
/**
* 数据中心转换数据
*
* @param originalData
* @return
*/
Object
convert
(
String
originalData
)
throws
Exception
;
/**
* 转换后保存数据
*/
void
save
(
Object
convertData
)
throws
Exception
;
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/service/dataconvert/impl/LanePeriodicDataProcessServiceImpl.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
service
.
dataconvert
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
net.wanji.datacenter.dao.mapper.*
;
import
net.wanji.datacenter.kafka.ConsumerHandler
;
import
net.wanji.datacenter.pojo.dto.LanePeriodicDataDTO
;
import
net.wanji.datacenter.pojo.po.*
;
import
net.wanji.datacenter.service.dataconvert.DataProcessService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.StringUtils
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* @author duanruiming
* @date 2023/03/10 10:30
* @description: 车道周期实时数据加工处理服务,优化模块实时监控操作数据
*/
@Slf4j
@Service
(
value
=
"JN040001LanePeriodicData"
)
@RequiredArgsConstructor
public
class
LanePeriodicDataProcessServiceImpl
implements
DataProcessService
{
private
final
ConsumerHandler
consumerHandler
;
private
final
CrossBaseLaneInfoMapper
crossBaseLaneInfoMapper
;
private
final
CrossDirDataRealTimeMapper
crossDirDataRealTimeMapper
;
private
final
CrossTurnDataRealTimeMapper
crossTurnDataRealTimeMapper
;
private
final
CrossLaneDataRealTimeMapper
crossLaneDataRealTimeMapper
;
private
final
CrossDataRealTimeMapper
crossDataRealTimeMapper
;
@Override
public
String
receive
(
String
topic
)
{
return
consumerHandler
.
getTopicMessage
(
topic
);
}
@Override
public
void
send
(
String
topic
,
Object
convertData
)
{
consumerHandler
.
removeTopicMessage
(
topic
);
}
@Override
public
Object
convert
(
String
originalData
)
throws
Exception
{
LanePeriodicDataDTO
lanePeriodicDataPO
=
null
;
try
{
lanePeriodicDataPO
=
JSONObject
.
parseObject
(
originalData
,
LanePeriodicDataDTO
.
class
);
}
catch
(
Exception
e
)
{
log
.
error
(
"车道周期实时数据转换异常"
,
e
);
throw
new
Exception
();
}
return
lanePeriodicDataPO
;
}
@Override
public
void
save
(
Object
convertData
)
throws
Exception
{
LanePeriodicDataDTO
lanePeriodicDataDTO
=
(
LanePeriodicDataDTO
)
convertData
;
int
laneNum
=
lanePeriodicDataDTO
.
getLaneNum
();
List
<
CrossDataRealTimePO
>
crossDataRealTimePOS
=
new
ArrayList
<>(
laneNum
);
List
<
CrossDirDataRealTimePO
>
crossDirDataRealTimePOS
=
new
ArrayList
<>();
List
<
CrossTurnDataRealtimePO
>
crossTurnDataRealtimePOS
=
new
ArrayList
<>();
List
<
CrossLaneDataRealTimePO
>
crossLaneDataRealTimePOS
=
new
ArrayList
<>();
List
<
LanePeriodicDataDTO
.
EventList
>
eventLists
=
lanePeriodicDataDTO
.
getEventList
();
if
(
CollectionUtils
.
isEmpty
(
eventLists
))
{
log
.
error
(
"当前车道周期实时数据车道列表为空,参数信息:"
,
lanePeriodicDataDTO
);
throw
new
Exception
(
"当前车道周期实时数据车道列表为空"
);
}
// 通过车道编号获取车道信息
List
<
String
>
LaneIdList
=
eventLists
.
stream
().
map
(
LanePeriodicDataDTO
.
EventList
::
getLaneId
).
collect
(
Collectors
.
toList
());
List
<
CrossBaseLaneInfoPO
>
crossBaseLaneInfoPOS
=
crossBaseLaneInfoMapper
.
selectBatchIds
(
LaneIdList
);
for
(
LanePeriodicDataDTO
.
EventList
laneRealTimeItem
:
eventLists
)
{
String
laneId
=
laneRealTimeItem
.
getLaneId
();
Date
now
=
new
Date
();
for
(
CrossBaseLaneInfoPO
laneInfoPO
:
crossBaseLaneInfoPOS
)
{
String
id
=
laneInfoPO
.
getId
();
String
crossId
=
laneInfoPO
.
getCrossId
();
// todo 路口状态
Double
trafficFlow
=
Double
.
valueOf
(
laneRealTimeItem
.
getTrafficFlow
());
String
dir
=
String
.
valueOf
(
laneInfoPO
.
getDir
());
String
turn
=
String
.
valueOf
(
laneInfoPO
.
getTurn
());
if
(
StringUtils
.
endsWithIgnoreCase
(
laneId
,
id
))
{
CrossDataRealTimePO
crossDataRealTimePO
=
new
CrossDataRealTimePO
();
crossDataRealTimePO
.
setCrossId
(
crossId
);
crossDataRealTimePO
.
setStatus
(
0000
);
crossDataRealTimePO
.
setType
(
1
);
// 1常规 2异常
crossDataRealTimePO
.
setStartTime
(
now
);
crossDataRealTimePO
.
setDuration
(
5
);
// todo 通过第二批次判断
crossDataRealTimePO
.
setUnbalanceStatus
(
0
);
crossDataRealTimePO
.
setUnbalanceIndex
(
1.0
);
crossDataRealTimePO
.
setUnbalanceDirs
(
dir
);
crossDataRealTimePO
.
setCongestionStatus
(
0
);
crossDataRealTimePO
.
setCongestionIndex
(
1.0
);
crossDataRealTimePO
.
setCongestionDirs
(
dir
);
crossDataRealTimePO
.
setSpilloverStatus
(
0
);
crossDataRealTimePO
.
setSpilloverIndex
(
1.0
);
crossDataRealTimePO
.
setSpilloverDirs
(
dir
);
crossDataRealTimePO
.
setTrafficIndex
(
trafficFlow
);
crossDataRealTimePOS
.
add
(
crossDataRealTimePO
);
CrossDirDataRealTimePO
crossDirDataRealTimePO
=
new
CrossDirDataRealTimePO
();
crossDirDataRealTimePO
.
setCrossId
(
crossId
);
crossDirDataRealTimePO
.
setStatus
(
0000
);
crossDirDataRealTimePO
.
setTrafficIndex
(
trafficFlow
);
crossDirDataRealTimePOS
.
add
(
crossDirDataRealTimePO
);
CrossTurnDataRealtimePO
crossTurnDataRealtimePO
=
new
CrossTurnDataRealtimePO
();
crossTurnDataRealtimePO
.
setCrossId
(
crossId
);
crossTurnDataRealtimePO
.
setStatus
(
0000
);
crossTurnDataRealtimePOS
.
add
(
crossTurnDataRealtimePO
);
CrossLaneDataRealTimePO
crossLaneDataRealTimePO
=
new
CrossLaneDataRealTimePO
();
crossLaneDataRealTimePO
.
setCrossId
(
crossId
);
crossLaneDataRealTimePO
.
setId
(
id
);
crossLaneDataRealTimePOS
.
add
(
crossLaneDataRealTimePO
);
}
}
}
crossDataRealTimeMapper
.
insert
(
crossDataRealTimePOS
);
crossDirDataRealTimeMapper
.
insert
(
crossDirDataRealTimePOS
);
crossTurnDataRealTimeMapper
.
insert
(
crossTurnDataRealtimePOS
);
crossLaneDataRealTimeMapper
.
insert
(
crossLaneDataRealTimePOS
);
}
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/service/dataconvert/impl/Test.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
service
.
dataconvert
.
impl
;
import
net.wanji.datacenter.service.dataconvert.DataProcessService
;
import
org.springframework.stereotype.Service
;
/**
* @author duanruiming
* @date 2023/03/10 14:17
*/
@Service
(
value
=
"test"
)
public
class
Test
implements
DataProcessService
{
@Override
public
String
receive
(
String
originalData
)
{
System
.
err
.
println
(
"test receice successful"
);
return
null
;
}
@Override
public
void
send
(
String
topic
,
Object
convertData
)
{
System
.
err
.
println
(
"test send successful"
);
}
@Override
public
String
convert
(
String
originalData
)
{
System
.
err
.
println
(
"test convert successful"
);
return
null
;
}
@Override
public
void
save
(
Object
convertData
)
throws
Exception
{
System
.
err
.
println
(
"test save successful"
);
}
}
signal-dataCenter-service/src/main/java/net/wanji/datacenter/task/DataProcessTask.java
0 → 100644
View file @
1eddcfba
package
net
.
wanji
.
datacenter
.
task
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
net.wanji.common.utils.tool.StringUtils
;
import
net.wanji.datacenter.cache.DataProcessServiceRegistrator
;
import
net.wanji.datacenter.service.dataconvert.DataProcessService
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
/**
* @author duanruiming
* @date 2023/03/10 14:35
*/
@Component
@Slf4j
@RequiredArgsConstructor
public
class
DataProcessTask
{
private
final
DataProcessServiceRegistrator
dataProcessServiceRegistor
;
@Scheduled
(
fixedRate
=
1
*
60
*
1000
)
public
void
dataProcess
()
throws
Exception
{
try
{
Map
<
String
,
DataProcessService
>
registor
=
dataProcessServiceRegistor
.
getDataProcessServiceRegistor
();
if
(!
registor
.
isEmpty
())
{
for
(
Map
.
Entry
<
String
,
DataProcessService
>
entry
:
registor
.
entrySet
())
{
String
beanName
=
entry
.
getKey
();
DataProcessService
bean
=
entry
.
getValue
();
// 通过服务名/主题名获取不同主题数据
String
message
=
bean
.
receive
(
beanName
);
// 数据转化
if
(
StringUtils
.
isBlank
(
message
))
{
message
=
"{\"eventList\":[{\"dynamic_queue_length_max\":40.975341796875,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":48,\"lane_flow_rate\":36.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.75,\"lane_saturation_flow_rate\":48,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.3242078320733432,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":4.335211267605633,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.01257999986410141,\"traffic_flow\":3,\"trolley_equivalent\":3,\"vehicle_length_ratio_mean\":0.012526985547440197,\"vehicle_nums_ratio_mean\":0.020196877121520705},{\"dynamic_queue_length_max\":40.0,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.06967829167842865,\"laneId\":\"\",\"lane_capacity\":276,\"lane_flow_rate\":204.0,\"lane_no_stop_rate\":0.8936170339584351,\"lane_one_stop_rate\":0.10638298094272614,\"lane_saturation\":0.739130437374115,\"lane_saturation_flow_rate\":276,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":17.12477208828104,\"light_green_start_queue_length\":9.938938453279693,\"mean_delay\":5.74468085106383,\"mean_stops_number\":0,\"mean_v\":1.8776506024096384,\"static_queue_length_max\":40.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.7083266377449036,\"traffic_flow\":17,\"trolley_equivalent\":17,\"vehicle_length_ratio_mean\":0.3361885299892225,\"vehicle_nums_ratio_mean\":0.28029531568228105},{\"dynamic_queue_length_max\":68.16592407226563,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":0,\"lane_flow_rate\":0.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.0,\"lane_saturation_flow_rate\":0,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":2.1223698196739984,\"light_green_start_queue_length\":0.4052462495606521,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":3.4737642585551347,\"static_queue_length_max\":3.681959867477417,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0,\"traffic_flow\":0,\"trolley_equivalent\":0,\"vehicle_length_ratio_mean\":0.006259700711133706,\"vehicle_nums_ratio_mean\":0.018911842165738647},{\"dynamic_queue_length_max\":61.581146240234375,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":72,\"lane_flow_rate\":48.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.6666666865348816,\"lane_saturation_flow_rate\":72,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":1.3318108032489646,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":7.212631578947371,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.008883332833647728,\"traffic_flow\":4,\"trolley_equivalent\":4,\"vehicle_length_ratio_mean\":0.003597769999430241,\"vehicle_nums_ratio_mean\":0.004687550599710195},{\"dynamic_queue_length_max\":63.37282943725586,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":264,\"lane_flow_rate\":252.0,\"lane_no_stop_rate\":0.9696969985961914,\"lane_one_stop_rate\":0.03030303120613098,\"lane_saturation\":0.9545454382896423,\"lane_saturation_flow_rate\":264,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":4.945268778965391,\"light_green_start_queue_length\":2.922568074588118,\"mean_delay\":1.3636363636363635,\"mean_stops_number\":0,\"mean_v\":3.3937572254335286,\"static_queue_length_max\":16.445341110229492,\"static_queue_length_min\":0.0,\"time_occupancy\":0.26542335748672485,\"traffic_flow\":21,\"trolley_equivalent\":21,\"vehicle_length_ratio_mean\":0.03733014619358526,\"vehicle_nums_ratio_mean\":0.029208289426470076},{\"dynamic_queue_length_max\":56.268768310546875,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":96,\"lane_flow_rate\":96.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":96,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":4.970868834133806,\"light_green_start_queue_length\":2.2785396247074523,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":1.8774834437086092,\"static_queue_length_max\":21.169273376464844,\"static_queue_length_min\":0.0,\"time_occupancy\":0.21854667365550995,\"traffic_flow\":8,\"trolley_equivalent\":8,\"vehicle_length_ratio_mean\":0.01890855935545738,\"vehicle_nums_ratio_mean\":0.016454919001741307},{\"dynamic_queue_length_max\":74.82034301757813,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":336,\"lane_flow_rate\":336.0,\"lane_no_stop_rate\":0.9259259104728699,\"lane_one_stop_rate\":0.07407407462596893,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":336,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":10.449663754167227,\"light_green_start_queue_length\":6.243474763015221,\"mean_delay\":3.888888888888889,\"mean_stops_number\":0,\"mean_v\":3.417926565874727,\"static_queue_length_max\":22.74837303161621,\"static_queue_length_min\":0.0,\"time_occupancy\":0.36901333928108215,\"traffic_flow\":24,\"trolley_equivalent\":28,\"vehicle_length_ratio_mean\":0.09141811475446049,\"vehicle_nums_ratio_mean\":0.08030259135657844},{\"dynamic_queue_length_max\":470.63189697265625,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":180,\"lane_flow_rate\":180.0,\"lane_no_stop_rate\":0.9555555582046509,\"lane_one_stop_rate\":0.04444444552063942,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":180,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":16.329852498810865,\"light_green_start_queue_length\":11.722974982754938,\"mean_delay\":2.5,\"mean_stops_number\":0,\"mean_v\":1.8117421602787458,\"static_queue_length_max\":46.890625,\"static_queue_length_min\":0.0,\"time_occupancy\":0.6800199747085571,\"traffic_flow\":11,\"trolley_equivalent\":15,\"vehicle_length_ratio_mean\":0.06779336408589944,\"vehicle_nums_ratio_mean\":0.0582711032875646},{\"dynamic_queue_length_max\":23.018892288208008,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.012964434921741486,\"laneId\":\"\",\"lane_capacity\":72,\"lane_flow_rate\":36.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.5,\"lane_saturation_flow_rate\":72,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.6141861389423239,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":4.541960784313726,\"static_queue_length_max\":17.1435604095459,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0071033332496881485,\"traffic_flow\":3,\"trolley_equivalent\":3,\"vehicle_length_ratio_mean\":0.002242794503171429,\"vehicle_nums_ratio_mean\":0.00287633546288533},{\"dynamic_queue_length_max\":114.65453338623047,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":0,\"lane_flow_rate\":0.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.0,\"lane_saturation_flow_rate\":0,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":14.023659467697144,\"light_green_start_queue_length\":0.0992967753574766,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":3.6110457516339856,\"static_queue_length_max\":4.859949588775635,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0,\"traffic_flow\":0,\"trolley_equivalent\":0,\"vehicle_length_ratio_mean\":0.0012805742346469846,\"vehicle_nums_ratio_mean\":0.0027028174197727415},{\"dynamic_queue_length_max\":372.0594177246094,\"dynamic_queue_length_min\":2.3399829864501953,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":444,\"lane_flow_rate\":384.0,\"lane_no_stop_rate\":0.9885714054107666,\"lane_one_stop_rate\":0.011428571306169033,\"lane_saturation\":0.8648648858070374,\"lane_saturation_flow_rate\":444,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":154.56714787976495,\"light_green_start_queue_length\":13.386706187807281,\"mean_delay\":0.9428571428571428,\"mean_stops_number\":0,\"mean_v\":4.7758273381294964,\"static_queue_length_max\":43.37940979003906,\"static_queue_length_min\":0.0,\"time_occupancy\":0.036986663937568665,\"traffic_flow\":29,\"trolley_equivalent\":32,\"vehicle_length_ratio_mean\":0.07698311852651615,\"vehicle_nums_ratio_mean\":0.05800237682902805},{\"dynamic_queue_length_max\":371.6435241699219,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":96,\"lane_flow_rate\":72.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.75,\"lane_saturation_flow_rate\":96,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":149.71256256103516,\"light_green_start_queue_length\":12.456866034146014,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":9.356060606060607,\"static_queue_length_max\":368.05401611328125,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0038433328736573458,\"traffic_flow\":6,\"trolley_equivalent\":6,\"vehicle_length_ratio_mean\":0.013071173843431356,\"vehicle_nums_ratio_mean\":0.014736083131637588},{\"dynamic_queue_length_max\":370.0,\"dynamic_queue_length_min\":2.965820550918579,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":492,\"lane_flow_rate\":432.0,\"lane_no_stop_rate\":0.9834254384040833,\"lane_one_stop_rate\":0.016574585810303688,\"lane_saturation\":0.8780487775802612,\"lane_saturation_flow_rate\":492,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":188.10887777394262,\"light_green_start_queue_length\":15.665639088071625,\"mean_delay\":1.2430939226519337,\"mean_stops_number\":0,\"mean_v\":5.717452107279695,\"static_queue_length_max\":85.60419464111328,\"static_queue_length_min\":0.0,\"time_occupancy\":0.4382700026035309,\"traffic_flow\":36,\"trolley_equivalent\":36,\"vehicle_length_ratio_mean\":0.09328616546556728,\"vehicle_nums_ratio_mean\":0.07687118187298883},{\"dynamic_queue_length_max\":370.0,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":408,\"lane_flow_rate\":336.0,\"lane_no_stop_rate\":0.9520000219345093,\"lane_one_stop_rate\":0.04800000041723251,\"lane_saturation\":0.8235294222831726,\"lane_saturation_flow_rate\":408,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":107.36373444261223,\"light_green_start_queue_length\":8.63355828975809,\"mean_delay\":3.36,\"mean_stops_number\":0,\"mean_v\":4.588161925601749,\"static_queue_length_max\":81.62080383300781,\"static_queue_length_min\":0.0,\"time_occupancy\":0.46894001960754395,\"traffic_flow\":28,\"trolley_equivalent\":28,\"vehicle_length_ratio_mean\":0.05922727869761613,\"vehicle_nums_ratio_mean\":0.04411490205599492},{\"dynamic_queue_length_max\":75.41883850097656,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":180,\"lane_flow_rate\":168.0,\"lane_no_stop_rate\":0.7727272510528564,\"lane_one_stop_rate\":0.22727273404598236,\"lane_saturation\":0.9333333373069763,\"lane_saturation_flow_rate\":180,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":22.843779037738667,\"light_green_start_queue_length\":11.869044271008722,\"mean_delay\":16.363636363636363,\"mean_stops_number\":0,\"mean_v\":4.588436830835113,\"static_queue_length_max\":28.49137306213379,\"static_queue_length_min\":0.0,\"time_occupancy\":0.8092133402824402,\"traffic_flow\":12,\"trolley_equivalent\":14,\"vehicle_length_ratio_mean\":0.1949437555578175,\"vehicle_nums_ratio_mean\":0.14591537143096822},{\"dynamic_queue_length_max\":46.60673904418945,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.13525336980819702,\"laneId\":\"\",\"lane_capacity\":204,\"lane_flow_rate\":192.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.9411764740943909,\"lane_saturation_flow_rate\":204,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":15.36799144744873,\"light_green_start_queue_length\":8.714151109967913,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":3.4473863636363635,\"static_queue_length_max\":42.199012756347656,\"static_queue_length_min\":0.0,\"time_occupancy\":0.33947670459747314,\"traffic_flow\":16,\"trolley_equivalent\":16,\"vehicle_length_ratio_mean\":0.049264598236964906,\"vehicle_nums_ratio_mean\":0.04934657162253903},{\"dynamic_queue_length_max\":44.676570892333984,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.060385480523109436,\"laneId\":\"\",\"lane_capacity\":48,\"lane_flow_rate\":48.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":48,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.0,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":4.017500000000001,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0068066660314798355,\"traffic_flow\":4,\"trolley_equivalent\":4,\"vehicle_length_ratio_mean\":0.0019217923015497692,\"vehicle_nums_ratio_mean\":0.0013577732518669382},{\"dynamic_queue_length_max\":50.045387268066406,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.14726360142230988,\"laneId\":\"\",\"lane_capacity\":336,\"lane_flow_rate\":336.0,\"lane_no_stop_rate\":0.9534883499145508,\"lane_one_stop_rate\":0.04651162773370743,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":336,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":14.72541080202375,\"light_green_start_queue_length\":6.800526142120361,\"mean_delay\":3.488372093023256,\"mean_stops_number\":0,\"mean_v\":2.981413612565444,\"static_queue_length_max\":50.019309997558594,\"static_queue_length_min\":0.0,\"time_occupancy\":0.5300833582878113,\"traffic_flow\":26,\"trolley_equivalent\":28,\"vehicle_length_ratio_mean\":0.07812055642542715,\"vehicle_nums_ratio_mean\":0.08565286695906603},{\"dynamic_queue_length_max\":29.523109436035156,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":84,\"lane_flow_rate\":72.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.8571428656578064,\"lane_saturation_flow_rate\":84,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.0,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":4.469166666666671,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.01454333309084177,\"traffic_flow\":5,\"trolley_equivalent\":6,\"vehicle_length_ratio_mean\":0.002055284612067929,\"vehicle_nums_ratio_mean\":0.0017396469789545145},{\"dynamic_queue_length_max\":48.40139389038086,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.06887155026197433,\"laneId\":\"\",\"lane_capacity\":108,\"lane_flow_rate\":108.0,\"lane_no_stop_rate\":0.9285714030265808,\"lane_one_stop_rate\":0.0714285746216774,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":108,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":17.13508483341762,\"light_green_start_queue_length\":17.13508483341762,\"mean_delay\":2.142857142857143,\"mean_stops_number\":0,\"mean_v\":1.7502366863905314,\"static_queue_length_max\":48.40139389038086,\"static_queue_length_min\":0.0,\"time_occupancy\":0.2147066742181778,\"traffic_flow\":9,\"trolley_equivalent\":9,\"vehicle_length_ratio_mean\":0.08763728947969861,\"vehicle_nums_ratio_mean\":0.08780974202308214},{\"dynamic_queue_length_max\":371.0,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":828,\"lane_flow_rate\":696.0,\"lane_no_stop_rate\":0.9490445852279663,\"lane_one_stop_rate\":0.05095541477203369,\"lane_saturation\":0.8405796885490417,\"lane_saturation_flow_rate\":828,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":101.03698022024972,\"light_green_start_queue_length\":24.407301357814244,\"mean_delay\":4.012738853503185,\"mean_stops_number\":0,\"mean_v\":4.42488933601609,\"static_queue_length_max\":52.10312271118164,\"static_queue_length_min\":0.0,\"time_occupancy\":0.6676632761955261,\"traffic_flow\":56,\"trolley_equivalent\":58,\"vehicle_length_ratio_mean\":0.1073623936127325,\"vehicle_nums_ratio_mean\":0.10431093066103772},{\"dynamic_queue_length_max\":372.4347839355469,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":108,\"lane_flow_rate\":60.0,\"lane_no_stop_rate\":0.9909090995788574,\"lane_one_stop_rate\":0.00909090880304575,\"lane_saturation\":0.5555555820465088,\"lane_saturation_flow_rate\":108,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":183.26575967243738,\"light_green_start_queue_length\":1.7458618027823312,\"mean_delay\":0.5454545454545454,\"mean_stops_number\":0,\"mean_v\":2.369907407407407,\"static_queue_length_max\":15.441865921020508,\"static_queue_length_min\":0.0,\"time_occupancy\":0.260696679353714,\"traffic_flow\":5,\"trolley_equivalent\":5,\"vehicle_length_ratio_mean\":0.03587172349544403,\"vehicle_nums_ratio_mean\":0.03281992581373906},{\"dynamic_queue_length_max\":373.38916015625,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":60,\"lane_flow_rate\":60.0,\"lane_no_stop_rate\":0.9918032884597778,\"lane_one_stop_rate\":0.008196720853447914,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":60,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":208.2078195299421,\"light_green_start_queue_length\":0.4642688206263951,\"mean_delay\":0.6147540983606558,\"mean_stops_number\":0,\"mean_v\":2.714743202416921,\"static_queue_length_max\":7.421406269073486,\"static_queue_length_min\":0.0,\"time_occupancy\":0.22264666855335236,\"traffic_flow\":5,\"trolley_equivalent\":5,\"vehicle_length_ratio_mean\":0.047669618556627505,\"vehicle_nums_ratio_mean\":0.038675322940918314},{\"dynamic_queue_length_max\":51.19540786743164,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.12543940544128418,\"laneId\":\"\",\"lane_capacity\":300,\"lane_flow_rate\":276.0,\"lane_no_stop_rate\":0.9047619104385376,\"lane_one_stop_rate\":0.095238097012043,\"lane_saturation\":0.9200000166893005,\"lane_saturation_flow_rate\":300,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":23.933147975376674,\"light_green_start_queue_length\":18.824801445007324,\"mean_delay\":11.071428571428571,\"mean_stops_number\":0,\"mean_v\":3.4368482490272374,\"static_queue_length_max\":51.19540786743164,\"static_queue_length_min\":0.0,\"time_occupancy\":0.7569065690040588,\"traffic_flow\":19,\"trolley_equivalent\":23,\"vehicle_length_ratio_mean\":0.22347544479637185,\"vehicle_nums_ratio_mean\":0.17155088182698078},{\"dynamic_queue_length_max\":48.06354904174805,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.25814419984817505,\"laneId\":\"\",\"lane_capacity\":456,\"lane_flow_rate\":420.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.9210526347160339,\"lane_saturation_flow_rate\":456,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":6.743759768349784,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":9.33344947735192,\"static_queue_length_max\":21.375097274780273,\"static_queue_length_min\":0.0,\"time_occupancy\":0.08263000845909119,\"traffic_flow\":35,\"trolley_equivalent\":35,\"vehicle_length_ratio_mean\":0.032610454184976226,\"vehicle_nums_ratio_mean\":0.029173267185839763},{\"dynamic_queue_length_max\":52.07501983642578,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.07083287835121155,\"laneId\":\"\",\"lane_capacity\":204,\"lane_flow_rate\":180.0,\"lane_no_stop_rate\":0.8285714387893677,\"lane_one_stop_rate\":0.17142857611179352,\"lane_saturation\":0.8823529481887817,\"lane_saturation_flow_rate\":204,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":28.14895793369838,\"light_green_start_queue_length\":27.185110364641464,\"mean_delay\":12.428571428571429,\"mean_stops_number\":0,\"mean_v\":2.3490223463687148,\"static_queue_length_max\":51.60746765136719,\"static_queue_length_min\":0.0,\"time_occupancy\":0.5188466310501099,\"traffic_flow\":15,\"trolley_equivalent\":15,\"vehicle_length_ratio_mean\":0.23345167850677204,\"vehicle_nums_ratio_mean\":0.16815644997574808},{\"dynamic_queue_length_max\":48.34062576293945,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.08141857385635376,\"laneId\":\"\",\"lane_capacity\":336,\"lane_flow_rate\":180.0,\"lane_no_stop_rate\":0.9117646813392639,\"lane_one_stop_rate\":0.0882352963089943,\"lane_saturation\":0.5357142686843872,\"lane_saturation_flow_rate\":336,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":20.943053245544434,\"light_green_start_queue_length\":15.544171469552177,\"mean_delay\":9.264705882352942,\"mean_stops_number\":0,\"mean_v\":3.3683863080684575,\"static_queue_length_max\":45.82487106323242,\"static_queue_length_min\":0.0,\"time_occupancy\":0.648930013179779,\"traffic_flow\":15,\"trolley_equivalent\":15,\"vehicle_length_ratio_mean\":0.17561335737380096,\"vehicle_nums_ratio_mean\":0.13609791253437337},{\"dynamic_queue_length_max\":42.26611328125,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":0,\"lane_flow_rate\":0.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.0,\"lane_saturation_flow_rate\":0,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":4.69802736384528,\"light_green_start_queue_length\":0.11607186283384051,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":7.513181818181817,\"static_queue_length_max\":3.347986936569214,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0,\"traffic_flow\":0,\"trolley_equivalent\":0,\"vehicle_length_ratio_mean\":0.0040865438365619644,\"vehicle_nums_ratio_mean\":0.014162329443492052},{\"dynamic_queue_length_max\":48.721282958984375,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.1409478783607483,\"laneId\":\"\",\"lane_capacity\":348,\"lane_flow_rate\":204.0,\"lane_no_stop_rate\":0.875,\"lane_one_stop_rate\":0.125,\"lane_saturation\":0.5862069129943848,\"lane_saturation_flow_rate\":348,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":26.508986609322683,\"light_green_start_queue_length\":16.698043823242188,\"mean_delay\":13.125,\"mean_stops_number\":0,\"mean_v\":2.713824228028499,\"static_queue_length_max\":46.516483306884766,\"static_queue_length_min\":0.0,\"time_occupancy\":0.6088699698448181,\"traffic_flow\":17,\"trolley_equivalent\":17,\"vehicle_length_ratio_mean\":0.23827141966830082,\"vehicle_nums_ratio_mean\":0.15022252876379824},{\"dynamic_queue_length_max\":0.0,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":0,\"lane_flow_rate\":0.0,\"lane_no_stop_rate\":0.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.0,\"lane_saturation_flow_rate\":0,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.0,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":0.0,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0,\"traffic_flow\":0,\"trolley_equivalent\":0,\"vehicle_length_ratio_mean\":0.0,\"vehicle_nums_ratio_mean\":0.0},{\"dynamic_queue_length_max\":0.0,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":0,\"lane_flow_rate\":0.0,\"lane_no_stop_rate\":0.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.0,\"lane_saturation_flow_rate\":0,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.0,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":0.0,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0,\"traffic_flow\":0,\"trolley_equivalent\":0,\"vehicle_length_ratio_mean\":0.0,\"vehicle_nums_ratio_mean\":0.0},{\"dynamic_queue_length_max\":59.1076774597168,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":0,\"lane_flow_rate\":0.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.0,\"lane_saturation_flow_rate\":0,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":2.1744209017072404,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":0.0,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0,\"traffic_flow\":0,\"trolley_equivalent\":0,\"vehicle_length_ratio_mean\":0.006782431415935317,\"vehicle_nums_ratio_mean\":0.005984921610262308},{\"dynamic_queue_length_max\":10.900229454040527,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":24,\"lane_flow_rate\":24.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":24,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.0,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":7.6599999999999975,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.003563334234058857,\"traffic_flow\":2,\"trolley_equivalent\":2,\"vehicle_length_ratio_mean\":0.0002124606500817899,\"vehicle_nums_ratio_mean\":0.0002143852518920743},{\"dynamic_queue_length_max\":0.0,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":0,\"lane_flow_rate\":0.0,\"lane_no_stop_rate\":0.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":0.0,\"lane_saturation_flow_rate\":0,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.0,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":0.0,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0,\"traffic_flow\":0,\"trolley_equivalent\":0,\"vehicle_length_ratio_mean\":0.0,\"vehicle_nums_ratio_mean\":0.0},{\"dynamic_queue_length_max\":25.074373245239258,\"dynamic_queue_length_min\":0.0,\"green_light_efficiency\":0.0,\"laneId\":\"\",\"lane_capacity\":24,\"lane_flow_rate\":24.0,\"lane_no_stop_rate\":1.0,\"lane_one_stop_rate\":0.0,\"lane_saturation\":1.0,\"lane_saturation_flow_rate\":24,\"lane_three_stop_rate\":0.0,\"lane_two_stop_rate\":0.0,\"light_green_finish_queue_length\":0.0,\"light_green_start_queue_length\":0.0,\"mean_delay\":0.0,\"mean_stops_number\":0,\"mean_v\":7.664999999999999,\"static_queue_length_max\":0.0,\"static_queue_length_min\":0.0,\"time_occupancy\":0.0022033341228961945,\"traffic_flow\":2,\"trolley_equivalent\":2,\"vehicle_length_ratio_mean\":0.00029760406802118187,\"vehicle_nums_ratio_mean\":0.0003037124401804386}],\"laneNum\":35,\"orgCode\":\"040001\",\"timeStamp\":\"2023-03-10 17:03:14:710\"}"
;
}
Object
convert
=
bean
.
convert
(
message
);
// 本地保存
bean
.
save
(
convert
);
// 发送
bean
.
send
(
beanName
,
convert
);
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"数据加工处理失败"
);
}
}
}
signal-dataCenter-service/src/main/resources/application-dev.yml
0 → 100644
View file @
1eddcfba
server
:
port
:
39002
servlet
:
display-name
:
Wanji
context-path
:
/dataCenter
multipart
:
max-file-size
:
50MB
max-request-size
:
50MB
tomcat
:
threads
:
max
:
10000
#线程池配置
threadPool
:
corePoolSize
:
5
maxPoolSize
:
200
queueCapacity
:
5
keepAliveTime
:
60000
spring
:
datasource
:
dynamic
:
primary
:
master
datasource
:
master
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
slave
:
type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:mysql://106.120.201.126:14726/t_signal_control?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
driverClassName
:
com.mysql.cj.jdbc.Driver
webService
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://106.120.201.126:14726/t_signal?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&useSSL=false&useCursorFetch=true
username
:
root
password
:
Wanji300552
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
host
:
106.120.201.126
port
:
14728
password
:
Wanji300552
jedis
:
pool
:
max-active
:
200
max-wait
:
5000
max-idle
:
20
min-idle
:
10
timeout
:
5000
database
:
3
kafka
:
bootstrap-servers
:
10.102.1.182:9092
#消费者配置
consumer
:
max-poll-records
:
1
broker-id
:
0
auto-commit-interval
:
1S
auto-offset-reset
:
earliest
enable-auto-commit
:
false
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
group-id
:
group
listener
:
concurrency
:
3
ack-mode
:
manual_immediate
# 信号平台
system
:
address
:
# UTC服务地址
utc
:
http://10.102.1.182:32000/utc
# control服务地址
control
:
http://10.102.1.182:32001/web
\ No newline at end of file
signal-dataCenter-service/src/main/resources/application.yml
0 → 100644
View file @
1eddcfba
spring
:
# dubbo启动需要程序名称
application
:
name
:
dataCenter
profiles
:
active
:
dev
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
main
:
allow-circular-references
:
true
server
:
undertow
:
url-charset
:
UTF-8
max-headers
:
-1
# 设置 HTTP POST 内容的最大长度,默认不做限制
# max-http-post-size: -1
max-http-post-size
:
4MB
threads
:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多
io
:
8
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8
worker
:
256
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
# 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可
buffer-size
:
1024
# 是否分配的直接内存(NIO直接分配的堆外内存)
direct-buffers
:
true
accesslog
:
# 是否打开 undertow 日志,默认为 false
enabled
:
true
# 设置访问日志所在目录
dir
:
logs
mybatis-plus
:
mapper-locations
:
classpath:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage
:
net.wanji.datacenter.entity
check-config-location
:
true
configuration
:
#是否开启自动驼峰命名规则(camel case)映射
map-underscore-to-camel-case
:
true
#全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存
cache-enabled
:
false
call-setters-on-nulls
:
true
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null
:
'
null'
#MyBatis 自动映射时未知列或未知属性处理策略 NONE:不做任何处理 (默认值), WARNING:以日志的形式打印相关警告信息, FAILING:当作映射失败处理,并抛出异常和详细信息
auto-mapping-unknown-column-behavior
:
warning
#开启SQL打印
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
# PageHelper分页插件
pagehelper
:
helperDialect
:
mysql
supportMethodsArguments
:
true
params
:
count=countSql
signal-dataCenter-service/src/main/resources/mapper/CrossDataRealtimeMapper.xml
0 → 100644
View file @
1eddcfba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"net.wanji.opt.dao.mapper.trend.CrossDataRealtimeMapper"
>
<select
id=
"selectAbnormalCross"
resultType=
"net.wanji.opt.vo.AbnormalCrossListVO"
>
select
t2.id, t2.name, t1.unbalance_dirs, t1.congestion_dirs, t1.spillover_dirs, t1.status as realtimeStatus,
t1.start_time, t1.duration, t2.location as locationStr, t1.is_unbalance, t1.is_spillover, t1.is_congestion
from t_cross_data_realtime t1 JOIN t_base_cross_info t2
ON t1.cross_id = t2.id
<where>
<if
test=
"status != null"
>
and (t1.status = #{status}
<if
test=
"status == 1"
>
or t1.is_unbalance = 1
</if>
<if
test=
"status == 2"
>
or t1.is_congestion = 1
</if>
<if
test=
"status == 3"
>
or t1.is_spillover = 1
</if>
)
</if>
<if
test=
"name != null and name != ''"
>
and t2.name like concat('%',#{name},'%')
</if>
<if
test=
"type != null"
>
and t1.type = #{type}
</if>
<if
test=
"status == null"
>
and t1.status in (0, 1, 2, 3)
</if>
</where>
</select>
<select
id=
"selectByCrossId"
resultType=
"net.wanji.opt.po.trend.CrossDataRealtimePO"
>
select
cross_id,status,type,traffic_index,start_time,duration,is_unbalance,is_spillover,is_congestion,unbalance_index,spillover_index,congestion_index,unbalance_dirs,spillover_dirs,congestion_dirs,flow,flow_rate,speed,queue_length,stop_times,delay_time,sturation,batch_time,gmt_create,gmt_modified
from t_cross_data_realtime
where cross_id = #{crossId}
</select>
</mapper>
signal-dataCenter-service/src/main/resources/mapper/CrossDirDataHist.xml
0 → 100644
View file @
1eddcfba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"net.wanji.opt.dao.mapper.trend.CrossDirDataHistMapper"
>
<select
id=
"selectByCrossIdAndTimestamp"
resultType=
"net.wanji.opt.po.trend.CrossDirDataHistPO"
>
select
id,dir_type,in_out_type,cross_id,length,status,traffic_index,flow,speed,queue_length,stop_times,delay_time,sturation,batch_time,gmt_create,gmt_modified
from t_cross_dir_data_hist
where cross_id = #{crossId} and in_out_type = 1
and batch_time
<![CDATA[ >= ]]>
#{preSeconds}
order by batch_time
</select>
<select
id=
"selectByCrossIdDirAndTimestamp"
resultType=
"net.wanji.opt.po.trend.CrossDirDataHistPO"
>
select
id,dir_type,in_out_type,cross_id,length,status,traffic_index,flow,speed,queue_length,stop_times,delay_time,sturation,batch_time,gmt_create,gmt_modified
from t_cross_dir_data_hist
where cross_id = #{crossId} and in_out_type = 1 and dir_type = #{dir}
and batch_time
<![CDATA[ >= ]]>
#{preSeconds}
order by batch_time
</select>
</mapper>
signal-dataCenter-service/src/main/resources/mapper/CrossTurnDataRealtimeMapper.xml
0 → 100644
View file @
1eddcfba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"net.wanji.opt.dao.mapper.trend.CrossTurnDataRealtimeMapper"
>
<select
id=
"selectByCrossId"
resultType=
"net.wanji.opt.po.trend.CrossTurnDataRealtimePO"
>
select
id,turn_type,in_dir,out_dir,cross_id,flow,speed,in_speed,out_speed,queue_length,stop_times,delay_time,sturation,vehhead_dist,vehhead_time,quality,batch_time,gmt_create,gmt_modified
from t_cross_turn_data_realtime
where cross_id = #{crossId}
</select>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment