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
9c2afe93
Commit
9c2afe93
authored
Dec 29, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
f2a68435
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+2
-0
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+0
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
9c2afe93
...
@@ -362,6 +362,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -362,6 +362,7 @@ public class ConfigureController extends AbstractBaseController {
item
.
put
(
"startAndStopNum"
,
0
);
item
.
put
(
"startAndStopNum"
,
0
);
item
.
put
(
"update_time"
,
"--"
);
item
.
put
(
"update_time"
,
"--"
);
item
.
put
(
"equipment_index_name"
,
"--"
);
item
.
put
(
"equipment_index_name"
,
"--"
);
if
(
item
.
containsKey
(
"iot_code"
)
&&
StringUtil
.
isNotEmpty
(
item
.
get
(
"iot_code"
)))
{
String
prefix
=
null
;
String
prefix
=
null
;
String
suffix
=
null
;
String
suffix
=
null
;
String
iotCode
=
item
.
get
(
"iot_code"
).
toString
();
String
iotCode
=
item
.
get
(
"iot_code"
).
toString
();
...
@@ -393,6 +394,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -393,6 +394,7 @@ public class ConfigureController extends AbstractBaseController {
int
num
=
collect
.
size
();
int
num
=
collect
.
size
();
item
.
put
(
"startAndStopNum"
,
num
);
item
.
put
(
"startAndStopNum"
,
num
);
}
}
}
resultMap
.
put
(
"normalNum"
,
(
Integer
)
item
.
get
(
"startAndStopNum"
)
<=
1
&&
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
?
(
resultMap
.
get
(
"normalNum"
)
+
1
)
:
resultMap
.
get
(
"normalNum"
));
resultMap
.
put
(
"normalNum"
,
(
Integer
)
item
.
get
(
"startAndStopNum"
)
<=
1
&&
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
?
(
resultMap
.
get
(
"normalNum"
)
+
1
)
:
resultMap
.
get
(
"normalNum"
));
resultMap
.
put
(
"unNormalNum"
,
(
Integer
)
item
.
get
(
"startAndStopNum"
)
>
1
||
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
>
0
?
(
resultMap
.
get
(
"unNormalNum"
)
+
1
)
:
resultMap
.
get
(
"unNormalNum"
));
resultMap
.
put
(
"unNormalNum"
,
(
Integer
)
item
.
get
(
"startAndStopNum"
)
>
1
||
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
>
0
?
(
resultMap
.
get
(
"unNormalNum"
)
+
1
)
:
resultMap
.
get
(
"unNormalNum"
));
return
item
;
return
item
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
9c2afe93
...
@@ -728,7 +728,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -728,7 +728,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
String
key
=
entry
.
getKey
();
String
key
=
entry
.
getKey
();
List
<
EquipAlarmLineVo
>
collect
=
entry
.
getValue
().
stream
().
filter
(
x
->
indexName
.
equals
(
x
.
getIndexName
())).
collect
(
Collectors
.
toList
());
List
<
EquipAlarmLineVo
>
collect
=
entry
.
getValue
().
stream
().
filter
(
x
->
indexName
.
equals
(
x
.
getIndexName
())).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
collect
))
{
if
(!
CollectionUtils
.
isEmpty
(
collect
))
{
yData
.
add
(
collect
.
get
(
0
).
getTotal
());
yData
.
add
(
collect
.
stream
().
mapToInt
(
EquipAlarmLineVo:
:
getTotal
).
sum
());
}
else
{
}
else
{
yData
.
add
(
0
);
yData
.
add
(
0
);
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
9c2afe93
...
@@ -2847,7 +2847,6 @@
...
@@ -2847,7 +2847,6 @@
LEFT JOIN wl_equipment_specific_alarm esa ON esa.equipment_specific_id = es.id
LEFT JOIN wl_equipment_specific_alarm esa ON esa.equipment_specific_id = es.id
WHERE
WHERE
ed.`code` LIKE '92010800%'
ed.`code` LIKE '92010800%'
AND es.iot_code IS NOT NULL
AND es.biz_org_code like concat(#{bizOrgCode}, '%')
AND es.biz_org_code like concat(#{bizOrgCode}, '%')
<if
test=
"systemCode!=null and systemCode!=''"
>
<if
test=
"systemCode!=null and systemCode!=''"
>
AND fs.code = #{systemCode,jdbcType=VARCHAR}
AND fs.code = #{systemCode,jdbcType=VARCHAR}
...
...
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