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
3e996e28
Commit
3e996e28
authored
Nov 15, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统状态修改
parent
bca8898f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+2
-0
FireFightingSystemGroupServiceImpl.java
...nage/service/impl/FireFightingSystemGroupServiceImpl.java
+4
-1
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+11
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
3e996e28
...
...
@@ -29,6 +29,8 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
int
getEquipmentSpeCount
(
Map
<
String
,
Object
>
map
);
int
getSystemAlarmNum
(
@Param
(
"systemId"
)
Long
systemId
);
List
<
Map
<
String
,
Object
>>
getEquipmentCount
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Long
>>
getEquipmentCountBySystemId
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"systemIds"
)
List
<
Long
>
systemIds
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemGroupServiceImpl.java
View file @
3e996e28
...
...
@@ -284,15 +284,18 @@ public class FireFightingSystemGroupServiceImpl extends ServiceImpl<FireFighting
List
<
Long
>
entitySystemIds
=
Arrays
.
stream
(
groupEntity
.
getSystemIds
().
split
(
","
)).
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
int
size
=
entitySystemIds
.
size
();
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
Long
systemId
=
entitySystemIds
.
get
(
i
);
JSONObject
system
=
new
JSONObject
();
FireFightingSystemEntity
systemEntity
=
systemMap
.
get
(
systemId
);
int
equipmentSpeCount
=
equipmentSpecificMapper
.
getSystemAlarmNum
(
systemId
);
List
<
SystemEquipmentRelationEntity
>
relationEntities
=
Objects
.
nonNull
(
systemEquipmentMap
.
get
(
systemId
))
?
systemEquipmentMap
.
get
(
systemId
)
:
new
ArrayList
<>();
system
.
put
(
"id"
,
systemId
);
system
.
put
(
"code"
,
systemEntity
.
getCode
());
system
.
put
(
"typeCode"
,
systemEntity
.
getSystemTypeCode
());
system
.
put
(
"name"
,
systemEntity
.
getName
());
system
.
put
(
"systemState"
,
systemEntity
.
getSystemStatus
()
);
system
.
put
(
"systemState"
,
equipmentSpeCount
);
system
.
put
(
"systemRunState"
,
systemEntity
.
getSystemRunState
());
system
.
put
(
"protectObject"
,
systemEntity
.
getProObject
());
system
.
put
(
"systemDesc"
,
systemEntity
.
getSystemDescribe
());
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
3e996e28
...
...
@@ -3119,4 +3119,14 @@
indexKey IS NOT NULL
AND indexKey != ''
</select>
<select
id=
"getSystemAlarmNum"
resultType=
"int"
>
SELECT
IF
( count( `wesa`.`equipment_specific_id` ) > 0, 1, 0 )
FROM
`wl_equipment_specific_alarm` `wesa`
WHERE
find_in_set( #{systemId}, `wesa`.`system_ids` )
AND `wesa`.`status` = 1
</select>
</mapper>
\ No newline at end of file
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