Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
1623ef0a
Commit
1623ef0a
authored
Feb 06, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直流中心bug修改
parent
42abe034
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
28 deletions
+13
-28
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+11
-26
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
1623ef0a
...
@@ -387,6 +387,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -387,6 +387,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
Date
stopDate
=
null
;
Date
stopDate
=
null
;
if
(
ObjectUtils
.
isEmpty
(
item
.
get
(
"start"
))
&&
ObjectUtils
.
isEmpty
(
item
.
get
(
"stop"
)))
{
if
(
ObjectUtils
.
isEmpty
(
item
.
get
(
"start"
))
&&
ObjectUtils
.
isEmpty
(
item
.
get
(
"stop"
)))
{
item
.
put
(
"equipment_index_name"
,
"无信号"
);
item
.
put
(
"equipment_index_name"
,
"无信号"
);
item
.
put
(
"update_time"
,
false
);
}
else
{
}
else
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
get
(
"start"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
get
(
"start"
)))
{
startTime
=
item
.
get
(
"start"
).
toString
().
substring
(
0
,
19
).
replace
(
"T"
,
" "
);
startTime
=
item
.
get
(
"start"
).
toString
().
substring
(
0
,
19
).
replace
(
"T"
,
" "
);
...
@@ -406,35 +407,19 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -406,35 +407,19 @@ public class SupervisionConfigureController extends AbstractBaseController {
}
else
{
}
else
{
item
.
put
(
"stopTime"
,
0
);
item
.
put
(
"stopTime"
,
0
);
}
}
if
(!
"0"
.
equals
(
item
.
get
(
"startTime"
)))
{
if
(
start_time
-
stop_time
>
0
)
{
if
(
"0"
.
equals
(
item
.
get
(
"stopTime"
)))
{
long
res
=
nowDateTime
-
start_time
;
long
res
=
nowDateTime
-
start_time
;
long
diffMinute
=
res
/
1000
/
60
;
long
diffMinute
=
res
/
1000
/
60
;
if
(
diffMinute
>
5
)
{
if
(
diffMinute
>
5
)
{
time
=
false
;
time
=
false
;
}
item
.
put
(
"upTime"
,
diffMinute
);
item
.
put
(
"equipment_index_name"
,
"启动"
);
item
.
put
(
"update_time"
,
startDate
);
}
else
{
String
startOrStop
=
start_time
-
stop_time
>
0
?
"start"
:
" stop"
;
if
(
"start"
.
equals
(
startOrStop
))
{
long
res
=
nowDateTime
-
start_time
;
long
diffMinute
=
res
/
1000
/
60
;
if
(
diffMinute
>
5
)
{
time
=
false
;
}
item
.
put
(
"upTime"
,
diffMinute
);
item
.
put
(
"equipment_index_name"
,
"启动"
);
item
.
put
(
"update_time"
,
startDate
);
}
else
{
item
.
put
(
"upTime"
,
0
);
item
.
put
(
"equipment_index_name"
,
"停止"
);
item
.
put
(
"update_time"
,
stopDate
);
}
}
}
item
.
put
(
"upTime"
,
diffMinute
);
item
.
put
(
"equipment_index_name"
,
"启动"
);
item
.
put
(
"update_time"
,
startDate
);
}
else
{
}
else
{
item
.
put
(
"upTime"
,
0
);
item
.
put
(
"upTime"
,
0
);
item
.
put
(
"equipment_index_name"
,
"停止"
);
item
.
put
(
"update_time"
,
stopDate
);
}
}
}
}
item
.
put
(
"stateDesc"
,
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
&&
time
?
"正常"
:
"异常"
);
item
.
put
(
"stateDesc"
,
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
&&
time
?
"正常"
:
"异常"
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
1623ef0a
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
wlesal.equipment_specific_name as equipmentSpecificName,
wlesal.equipment_specific_name as equipmentSpecificName,
wlesal.location,
wlesal.location,
wlesal.station_code AS stationCode,
wlesal.station_code AS stationCode,
wlesal.
biz_org
_name AS stationName
wlesal.
station
_name AS stationName
FROM wl_equipment_specific_alarm_log wlesal
FROM wl_equipment_specific_alarm_log wlesal
<where>
<where>
wlesal.clean_time IS NULL
wlesal.clean_time IS NULL
...
@@ -1520,7 +1520,7 @@
...
@@ -1520,7 +1520,7 @@
SELECT
SELECT
fs.`name`,
fs.`name`,
fs.`code`,
fs.`code`,
IFNULL( sum( wesi.`
status
` ), 0 ) AS countAlarmTotal
IFNULL( sum( wesi.`
frequency
` ), 0 ) AS countAlarmTotal
FROM
FROM
idx_biz_station_info fs
idx_biz_station_info fs
LEFT JOIN wl_equipment_specific_alarm wesi ON wesi.station_code = fs.`code`
LEFT JOIN wl_equipment_specific_alarm wesi ON wesi.station_code = fs.`code`
...
...
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