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
99198455
Commit
99198455
authored
Sep 09, 2019
by
zhuangzhuang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/tdl_bosch' into tdl_bosch
parents
c1508a35
6afead7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AlarmLogController.java
src/main/java/com/example/tdl/web/AlarmLogController.java
+3
-3
WarehouseAlarmLogMapper.xml
src/main/resources/mapper/WarehouseAlarmLogMapper.xml
+1
-1
No files found.
src/main/java/com/example/tdl/web/AlarmLogController.java
View file @
99198455
...
@@ -180,7 +180,7 @@ public class AlarmLogController {
...
@@ -180,7 +180,7 @@ public class AlarmLogController {
}
}
//判断当前报警状态
//判断当前报警状态
AlarmNoVo
alarmNoVo
=
gatewayService
.
getByGateway
(
addAlarmLogVo
.
getGsn
(),
addAlarmLogVo
.
getGtype
());
AlarmNoVo
alarmNoVo
=
gatewayService
.
getByGateway
(
addAlarmLogVo
.
getGsn
(),
addAlarmLogVo
.
getGtype
());
if
(
alarmNoVo
.
getMode
()
==
1
){
if
(
alarmNoVo
!=
null
&&
alarmNoVo
.
getMode
()
==
1
){
ResultCircuitVo
resultCircuitVo
=
circuitService
.
getCircuit
(
alarmNoVo
.
getTransportationNo
());
ResultCircuitVo
resultCircuitVo
=
circuitService
.
getCircuit
(
alarmNoVo
.
getTransportationNo
());
if
(
addAlarmLogVo
.
getAlarmno
()
!=
null
){
if
(
addAlarmLogVo
.
getAlarmno
()
!=
null
){
//网关离线报警
//网关离线报警
...
@@ -227,7 +227,7 @@ public class AlarmLogController {
...
@@ -227,7 +227,7 @@ public class AlarmLogController {
}
}
}
}
}
else
{
}
else
if
(
alarmNoVo
!=
null
&&
alarmNoVo
.
getMode
()
==
2
)
{
//获取最后一条发送的报警时间
//获取最后一条发送的报警时间
Long
alarmTime
=
warehouseAlarmLogService
.
getLastProcessedAlarm
(
alarmNoVo
.
getWarehouseNo
());
Long
alarmTime
=
warehouseAlarmLogService
.
getLastProcessedAlarm
(
alarmNoVo
.
getWarehouseNo
());
//获取联系人信息
//获取联系人信息
...
@@ -274,7 +274,7 @@ public class AlarmLogController {
...
@@ -274,7 +274,7 @@ public class AlarmLogController {
desp
=
"TDL("
+
addAlarmLogVo
.
getAlarm
().
get
(
i
).
getTdlsn
()
+
")"
+
desp
;
desp
=
"TDL("
+
addAlarmLogVo
.
getAlarm
().
get
(
i
).
getTdlsn
()
+
")"
+
desp
;
classify
=
"6"
;
classify
=
"6"
;
}
}
Long
time
=
addAlarmLogVo
.
getTs
();
Long
time
=
addAlarmLogVo
.
get
Alarm
().
get
(
i
).
get
Ts
();
if
(
time
.
toString
().
length
()
==
10
){
if
(
time
.
toString
().
length
()
==
10
){
time
=
time
*
1000
;
time
=
time
*
1000
;
}
}
...
...
src/main/resources/mapper/WarehouseAlarmLogMapper.xml
View file @
99198455
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<select
id=
"getLastAlarm"
resultType=
"String"
parameterType=
"String"
>
<select
id=
"getLastAlarm"
resultType=
"String"
parameterType=
"String"
>
select description from warehouse_alarmlog where warehouseNo=#{warehouseNo,jdbcType=VARCHAR}
select description from warehouse_alarmlog where warehouseNo=#{warehouseNo,jdbcType=VARCHAR}
and DATE_SUB(CURDATE(), INTERVAL 7 DAY)
<
= date(FROM_UNIXTIME(alarmTime/1000,'%Y-%m-%d %H:%i:%s'))
and DATE_SUB(CURDATE(), INTERVAL 7 DAY)
<
= date(FROM_UNIXTIME(alarmTime/1000,'%Y-%m-%d %H:%i:%s'))
order by alarmTime desc limit 1
</select>
</select>
<select
id =
"getByCount"
parameterType=
"String"
resultType=
"com.example.tdl.domain.vo.HistogramData"
>
<select
id =
"getByCount"
parameterType=
"String"
resultType=
"com.example.tdl.domain.vo.HistogramData"
>
...
...
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