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
32537375
Commit
32537375
authored
Sep 02, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点位图绑定优化
parent
3dd2e608
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
EquipmentSpecificIndex.java
...oin/equipmanage/common/entity/EquipmentSpecificIndex.java
+3
-0
RiskSourceSceneServiceImpl.java
.../equipmanage/service/impl/RiskSourceSceneServiceImpl.java
+3
-1
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+6
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecificIndex.java
View file @
32537375
...
...
@@ -149,5 +149,8 @@ public class EquipmentSpecificIndex extends BaseEntity {
@ApiModelProperty
(
value
=
"是否遥测"
)
@TableField
(
exist
=
false
)
private
Integer
isTrend
;
@ApiModelProperty
(
value
=
"绑定视屏数量"
)
@TableField
(
exist
=
false
)
private
int
num
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/RiskSourceSceneServiceImpl.java
View file @
32537375
...
...
@@ -349,7 +349,9 @@ public class RiskSourceSceneServiceImpl extends ServiceImpl<RiskSourceSceneMappe
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"equipCode"
,
action
.
getQrCode
());
map
.
put
(
"color"
,
EquipmentStateUtil
.
judgeEquipState
(
action
));
data
.
add
(
map
);
map
.
put
(
"num"
,
action
.
getNum
()+
""
);
data
.
add
(
map
);
});
return
data
;
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
32537375
...
...
@@ -277,7 +277,9 @@
ei.type_code AS 'typeCode',
es.qr_code AS 'qrCode',
equipindex.color AS emergencyLevelColor,
equipindex.isAlarm AS isAlarm
equipindex.isAlarm AS isAlarm,
(select COUNT(id) from wl_video_equipment_specific where wl_video_equipment_specific.equipment_specific_id=es.id) num
FROM
(
SELECT
...
...
@@ -321,7 +323,9 @@
es.iot_code AS 'iotCode',
es.realtime_iot_index_value AS 'value',
ei.is_alarm AS isAlarm,
ei.emergency_level_color AS 'emergencyLevelColor'
ei.emergency_level_color AS 'emergencyLevelColor',
(select COUNT(id) from wl_video_equipment_specific where wl_video_equipment_specific.equipment_specific_id=es.id) num
FROM
wl_equipment_specific es,
wl_equipment_index ei
...
...
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