Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
TDLCloud
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
WitCloud
TDLCloud
Commits
efa4cd7c
Commit
efa4cd7c
authored
May 29, 2018
by
chenying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.29修改实时数据返回值加报警上下限
parent
9f449c44
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
44 deletions
+46
-44
WarehouseDataVo.java
src/main/java/com/example/tdl/domain/vo/WarehouseDataVo.java
+39
-0
WarehouseGatewayDateVo.java
...ava/com/example/tdl/domain/vo/WarehouseGatewayDateVo.java
+0
-38
WarehouseController.java
src/main/java/com/example/tdl/web/WarehouseController.java
+6
-5
application.properties
src/main/resources/application.properties
+1
-1
No files found.
src/main/java/com/example/tdl/domain/vo/WarehouseDataVo.java
View file @
efa4cd7c
...
...
@@ -6,9 +6,48 @@ public class WarehouseDataVo {
private
String
TDLSN
;
private
Float
temMax
;
private
Float
temMin
;
private
Float
humidityMax
;
private
Float
humidityMin
;
private
List
<
WarehouseTDLDetailVo
>
warehouseTDLDetailVos
;
public
Float
getTemMax
()
{
return
temMax
;
}
public
void
setTemMax
(
Float
temMax
)
{
this
.
temMax
=
temMax
;
}
public
Float
getTemMin
()
{
return
temMin
;
}
public
void
setTemMin
(
Float
temMin
)
{
this
.
temMin
=
temMin
;
}
public
Float
getHumidityMax
()
{
return
humidityMax
;
}
public
void
setHumidityMax
(
Float
humidityMax
)
{
this
.
humidityMax
=
humidityMax
;
}
public
Float
getHumidityMin
()
{
return
humidityMin
;
}
public
void
setHumidityMin
(
Float
humidityMin
)
{
this
.
humidityMin
=
humidityMin
;
}
public
String
getTDLSN
()
{
return
TDLSN
;
}
...
...
src/main/java/com/example/tdl/domain/vo/WarehouseGatewayDateVo.java
View file @
efa4cd7c
...
...
@@ -7,45 +7,7 @@ public class WarehouseGatewayDateVo {
private
String
type
;
private
Float
temMax
;
private
Float
temMin
;
private
Float
humidityMax
;
private
Float
humidityMin
;
public
Float
getTemMax
()
{
return
temMax
;
}
public
void
setTemMax
(
Float
temMax
)
{
this
.
temMax
=
temMax
;
}
public
Float
getTemMin
()
{
return
temMin
;
}
public
void
setTemMin
(
Float
temMin
)
{
this
.
temMin
=
temMin
;
}
public
Float
getHumidityMax
()
{
return
humidityMax
;
}
public
void
setHumidityMax
(
Float
humidityMax
)
{
this
.
humidityMax
=
humidityMax
;
}
public
Float
getHumidityMin
()
{
return
humidityMin
;
}
public
void
setHumidityMin
(
Float
humidityMin
)
{
this
.
humidityMin
=
humidityMin
;
}
private
List
<
WarehouseDataVo
>
warehouseDataVos
;
...
...
src/main/java/com/example/tdl/web/WarehouseController.java
View file @
efa4cd7c
...
...
@@ -851,10 +851,7 @@ public class WarehouseController {
WarehouseGatewayDateVo
warehouseGatewayDateVo
=
new
WarehouseGatewayDateVo
();
warehouseGatewayDateVo
.
setgSN
(
gatewayOnLineVos
.
get
(
a
).
getSN
());
warehouseGatewayDateVo
.
setType
(
gatewayOnLineVos
.
get
(
a
).
getType
());
warehouseGatewayDateVo
.
setTemMax
(
resultAlarmVo
.
getTemMax
());
warehouseGatewayDateVo
.
setTemMin
(
resultAlarmVo
.
getTemMin
());
warehouseGatewayDateVo
.
setHumidityMax
(
resultAlarmVo
.
getHumidityMax
());
warehouseGatewayDateVo
.
setHumidityMin
(
resultAlarmVo
.
getHumidityMin
());
String
device
=
gatewayOnLineVos
.
get
(
a
).
getType
()
+
"_"
+
gatewayOnLineVos
.
get
(
a
).
getSN
();
List
<
String
>
tdls
=
tdlDeviceService
.
getByGatewaySN
(
gatewayOnLineVos
.
get
(
a
).
getSN
(),
gatewayOnLineVos
.
get
(
a
).
getType
());
List
<
WarehouseDataVo
>
warehouseDataVos
=
new
ArrayList
<>();
...
...
@@ -863,8 +860,8 @@ public class WarehouseController {
String
sqls
=
"SELECT \"tdl\",\"T\", \"h\" FROM \"tdl_policy\".\"WTD93LG_17110194\" WHERE (\"tdl\" = 'TDL-1701110082608') ORDER BY time DESC "
;
QueryResult
queryResults
=
influxDBTemplate
.
query
(
new
Query
(
sqls
,
database
));
WarehouseDataVo
warehouseDataVo
=
new
WarehouseDataVo
();
List
<
WarehouseTDLDetailVo
>
warehouseTDLDetailVos
=
new
ArrayList
<>();
List
<
WarehouseTDLDetailVo
>
warehouseTDLDetailVos
=
new
ArrayList
<>();
List
<
WarehouseTimeAndDataVo
>
warehouseTimeAndDataVos
=
new
ArrayList
<>();
List
<
WarehouseTimeAndDataVo
>
warehouseTimeAndDataVos1
=
new
ArrayList
<>();
if
(
queryResults
.
getResults
().
get
(
0
).
getSeries
()
!=
null
){
...
...
@@ -882,6 +879,10 @@ public class WarehouseController {
warehouseTDLDetailVos
.
add
(
warehouseTDLDetailVo1
);
}
warehouseDataVo
.
setTDLSN
(
tdls
.
get
(
b
));
warehouseDataVo
.
setTemMax
(
resultAlarmVo
.
getTemMax
());
warehouseDataVo
.
setTemMin
(
resultAlarmVo
.
getTemMin
());
warehouseDataVo
.
setHumidityMax
(
resultAlarmVo
.
getHumidityMax
());
warehouseDataVo
.
setHumidityMin
(
resultAlarmVo
.
getHumidityMin
());
warehouseDataVo
.
setWarehouseTDLDetailVos
(
warehouseTDLDetailVos
);
warehouseDataVos
.
add
(
warehouseDataVo
);
}
...
...
src/main/resources/application.properties
View file @
efa4cd7c
...
...
@@ -7,7 +7,7 @@ spring.datasource.driver-class-name=com.mysql.jdbc.Driver
threadpool.corepoolsize
=
30
threadpool.maxpoolsize
=
50
server.port
=
809
2
server.port
=
809
0
management.security.enabled
=
false
...
...
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