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
6a8a5513
Commit
6a8a5513
authored
Aug 05, 2019
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改仓库数据相差八小时的问题;
修改mqtt判断是否重发配置的问题
parent
c955318d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
119 additions
and
33 deletions
+119
-33
WarehouseTimeAndDataVo.java
...ava/com/example/tdl/domain/vo/WarehouseTimeAndDataVo.java
+8
-0
WarehouseVo.java
src/main/java/com/example/tdl/domain/vo/WarehouseVo.java
+24
-0
MqttListener.java
src/main/java/com/example/tdl/mqtt/MqttListener.java
+3
-3
WarehouseController.java
src/main/java/com/example/tdl/web/WarehouseController.java
+83
-29
application.properties
src/main/resources/application.properties
+1
-1
No files found.
src/main/java/com/example/tdl/domain/vo/WarehouseTimeAndDataVo.java
View file @
6a8a5513
...
...
@@ -6,6 +6,14 @@ public class WarehouseTimeAndDataVo {
private
String
value
;
public
WarehouseTimeAndDataVo
()
{
}
public
WarehouseTimeAndDataVo
(
String
time
,
String
value
)
{
this
.
time
=
time
;
this
.
value
=
value
;
}
public
String
getTime
()
{
return
time
;
}
...
...
src/main/java/com/example/tdl/domain/vo/WarehouseVo.java
0 → 100644
View file @
6a8a5513
package
com
.
example
.
tdl
.
domain
.
vo
;
public
class
WarehouseVo
{
private
String
offset
;
private
String
warehouseNo
;
public
String
getOffset
()
{
return
offset
;
}
public
void
setOffset
(
String
offset
)
{
this
.
offset
=
offset
;
}
public
String
getWarehouseNo
()
{
return
warehouseNo
;
}
public
void
setWarehouseNo
(
String
warehouseNo
)
{
this
.
warehouseNo
=
warehouseNo
;
}
}
src/main/java/com/example/tdl/mqtt/MqttListener.java
View file @
6a8a5513
...
...
@@ -244,9 +244,9 @@ public class MqttListener implements MqttCallback {
return
3
;
//重发
}
if
(
compare
(
configCMDVo
.
getDevList
(),
checkInVo
.
getDevList
())
&&
checkInVo
.
getGprsPeriod
()
==
configCMDVo
.
getGprsPeriod
(
)
&&
checkInVo
.
getGpsPeriod
()
==
configCMDVo
.
getGpsPeriod
(
)
&&
checkInVo
.
getMode
()
==
configCMDVo
.
getMode
(
)
&&
checkInVo
.
getGprsPeriod
()
.
equals
(
configCMDVo
.
getGprsPeriod
()
)
&&
checkInVo
.
getGpsPeriod
()
.
equals
(
configCMDVo
.
getGpsPeriod
()
)
&&
checkInVo
.
getMode
()
.
equals
(
configCMDVo
.
getMode
()
)
&&
compare
(
configCMDVo
.
getTempL
(),
checkInVo
.
getTempL
())
&&
compare
(
configCMDVo
.
getTempH
(),
checkInVo
.
getTempH
())
&&
compare
(
configCMDVo
.
getHumiL
(),
checkInVo
.
getHumiL
())
...
...
src/main/java/com/example/tdl/web/WarehouseController.java
View file @
6a8a5513
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
View file @
6a8a5513
...
...
@@ -41,7 +41,7 @@ logging.config=classpath:logback.xml
# Mqtt
tdl.mqtt.url
=
ssl://172.16.1.
11
tdl.mqtt.url
=
ssl://172.16.1.
24
tdl.mqtt.port
=
8883
tdl.mqtt.username
=
ugen
tdl.mqtt.password
=
ugen
...
...
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