Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
939574db
Commit
939574db
authored
May 12, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.3d左侧耳朵查询返回增加闪烁频率、是否显示顶牌、顶牌内容
parent
94f3842e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
36 deletions
+102
-36
Node3DVoResponse.java
...ejoin/amos/fas/core/common/response/Node3DVoResponse.java
+11
-13
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+1
-1
View3dNodeVo.java
...n/java/com/yeejoin/amos/fas/business/vo/View3dNodeVo.java
+37
-1
dbTemplate_view3d.xml
...sStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
+53
-21
No files found.
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/core/common/response/Node3DVoResponse.java
View file @
939574db
...
@@ -75,6 +75,11 @@ public class Node3DVoResponse{
...
@@ -75,6 +75,11 @@ public class Node3DVoResponse{
* 显示图标闪烁标题
* 显示图标闪烁标题
*/
*/
private
Boolean
showInfo
=
false
;
private
Boolean
showInfo
=
false
;
/**
* 闪烁频率
*/
private
Integer
frequency
=
0
;
/**
/**
* 显示图标闪烁
* 显示图标闪烁
...
@@ -111,19 +116,6 @@ public class Node3DVoResponse{
...
@@ -111,19 +116,6 @@ public class Node3DVoResponse{
private
String
orgCode
;
private
String
orgCode
;
/**
* 闪烁频率每秒
*/
private
int
rate
=
0
;
public
int
getRate
()
{
return
rate
;
}
public
void
setRate
(
int
rate
)
{
this
.
rate
=
rate
;
}
public
String
getId
()
{
public
String
getId
()
{
return
id
;
return
id
;
...
@@ -159,7 +151,13 @@ public class Node3DVoResponse{
...
@@ -159,7 +151,13 @@ public class Node3DVoResponse{
this
.
type
=
type
;
this
.
type
=
type
;
}
}
public
Integer
getFrequency
()
{
return
frequency
;
}
public
void
setFrequency
(
Integer
frequency
)
{
this
.
frequency
=
frequency
;
}
public
String
getLevel
()
{
public
String
getLevel
()
{
return
level
;
return
level
;
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/View3dController.java
View file @
939574db
...
@@ -190,7 +190,7 @@ public class View3dController extends BaseController {
...
@@ -190,7 +190,7 @@ public class View3dController extends BaseController {
return
CommonResponseUtil
.
success
(
view3dService
.
getEquipStatusList
(
orgCode
));
return
CommonResponseUtil
.
success
(
view3dService
.
getEquipStatusList
(
orgCode
));
}
}
@ApiOperation
(
value
=
"
资源显示"
,
notes
=
"资源
显示"
)
@ApiOperation
(
value
=
"
3d视图点显示"
,
notes
=
"3d视图点
显示"
)
@GetMapping
(
value
=
"initViewNode"
)
@GetMapping
(
value
=
"initViewNode"
)
public
CommonResponse
initViewNode
(
String
type
,
Long
riskSourceId
){
public
CommonResponse
initViewNode
(
String
type
,
Long
riskSourceId
){
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/vo/View3dNodeVo.java
View file @
939574db
...
@@ -19,7 +19,43 @@ public class View3dNodeVo {
...
@@ -19,7 +19,43 @@ public class View3dNodeVo {
private
String
[]
relationKeys
;
private
String
[]
relationKeys
;
private
String
level
;
private
String
level
;
private
String
levelStr
;
private
String
levelStr
;
/**
* 顶牌内容
*/
private
String
title
;
/**
* 闪烁频率
*/
private
Integer
frequency
=
0
;
/**
* 是否显示顶牌
*/
private
Boolean
showInfo
;
public
Boolean
getShowInfo
()
{
return
showInfo
;
}
public
void
setShowInfo
(
Boolean
showInfo
)
{
this
.
showInfo
=
showInfo
;
}
public
Integer
getFrequency
()
{
return
frequency
;
}
public
void
setFrequency
(
Integer
frequency
)
{
this
.
frequency
=
frequency
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
}
}
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
939574db
...
@@ -548,10 +548,15 @@
...
@@ -548,10 +548,15 @@
'riskSource' as type,
'riskSource' as type,
rl.level,
rl.level,
CONCAT('level_',rl.level) as level_str,
CONCAT('level_',rl.level) as level_str,
R.id as risk_source_id
R.id as risk_source_id,
from f_risk_source R
r.flicker_frequency as frequency,
left join f_risk_level rl on rl.id = r.risk_level_id
true as 'showInfo',
where is_region
<![CDATA[<>]]>
'TRUE' AND status = 'ANOMALY'
r.rpn as title
from f_risk_source R ,f_risk_level rl
where
r.is_region
<![CDATA[<>]]>
'TRUE'
AND R.status = 'ANOMALY'
AND rl.id = r.risk_level_id
AND R.org_code like CONCAT(#{orgCode},'%')
AND R.org_code like CONCAT(#{orgCode},'%')
UNION ALL
UNION ALL
select
select
...
@@ -559,9 +564,24 @@
...
@@ -559,9 +564,24 @@
'patrol' as type,
'patrol' as type,
p.status as level,
p.status as level,
CONCAT('level_',p.status) as level_str,
CONCAT('level_',p.status) as level_str,
p.risk_source_id
p.risk_source_id,
0 as frequency,
case p.status
when '0'
then false
else
true
end as `showInfo`,
case p.status
when '0'
then '未计划'
when '2'
then '不合格'
when '3'
then '漏检'
end as title
from p_point p
from p_point p
where status in (
0,2,3
)
where status in (
'0','2','3'
)
AND p.org_code like CONCAT(#{orgCode},'%')
AND p.org_code like CONCAT(#{orgCode},'%')
UNION ALL
UNION ALL
select
select
...
@@ -569,7 +589,10 @@
...
@@ -569,7 +589,10 @@
'impEquipment' as type,
'impEquipment' as type,
0 as level,
0 as level,
'level_0' as kevek_str,
'level_0' as kevek_str,
e.risk_source_id
e.risk_source_id,
0 as frequency,
false as 'showInfo',
'' as title
from
from
f_equipment e
f_equipment e
left join f_equipment_fire_equipment efe ON e.id = efe.equipment_id
left join f_equipment_fire_equipment efe ON e.id = efe.equipment_id
...
@@ -620,18 +643,20 @@
...
@@ -620,18 +643,20 @@
END positionDTO,
END positionDTO,
'{ "x": 0, "y": 0, "z": 0 }' rotationDTO,
'{ "x": 0, "y": 0, "z": 0 }' rotationDTO,
'{ "x": 1, "y": 1, "z": 1 }' scaleDTO,
'{ "x": 1, "y": 1, "z": 1 }' scaleDTO,
false
showInfo,
true as
showInfo,
rs.
CODE
title,
rs.
rpn as
title,
'riskSource' type,
'riskSource' type,
rs.org_code as orgCode,
rs.org_code as orgCode,
rs.id as riskSourceId
rs.id as riskSourceId,
FROM
rs.flicker_frequency as frequency
FROM
f_risk_source rs
f_risk_source rs
LEFT JOIN f_risk_level rl ON rl.id = rs.risk_level_id
LEFT JOIN f_risk_level rl ON rl.id = rs.risk_level_id
WHERE
WHERE
rs.position3d IS NOT NULL
rs.position3d IS NOT NULL
AND rs.position3d != ''
AND rs.position3d != ''
AND rs.risk_level_id is not null
AND rs.risk_level_id is not null
AND rs.is_region
<![CDATA[<>]]>
'TRUE'
AND rs.status = 'ANOMALY'
AND rs.status = 'ANOMALY'
UNION ALL
UNION ALL
SELECT
SELECT
...
@@ -664,12 +689,13 @@
...
@@ -664,12 +689,13 @@
END positionDTO,
END positionDTO,
'{ "x": 0, "y": 0, "z": 0 }' rotationDTO,
'{ "x": 0, "y": 0, "z": 0 }' rotationDTO,
'{ "x": 1, "y": 1, "z": 1 }' scaleDTO,
'{ "x": 1, "y": 1, "z": 1 }' scaleDTO,
FALSE showInfo,
FALSE
as
showInfo,
CODE
title,
name as
title,
'impEquipment' type,
'impEquipment' type,
eq.org_code as orgCode,
eq.org_code as orgCode,
eq.risk_source_id as riskSourceId
eq.risk_source_id as riskSourceId,
FROM
0 as frequency
FROM
f_equipment eq
f_equipment eq
WHERE
WHERE
position3d IS NOT NULL
position3d IS NOT NULL
...
@@ -710,16 +736,22 @@
...
@@ -710,16 +736,22 @@
END positionDTO,
END positionDTO,
'{ "x": 0, "y": 0, "z": 0 }' rotationDTO,
'{ "x": 0, "y": 0, "z": 0 }' rotationDTO,
'{ "x": 1, "y": 1, "z": 1 }' scaleDTO,
'{ "x": 1, "y": 1, "z": 1 }' scaleDTO,
FALSE showInfo,
case p.status
p.point_no title,
when '0'
'patrol' as type,
then false
else
true
end as `showInfo`,
p.name as title,
'patrol' as type,
p.org_code as orgCode,
p.org_code as orgCode,
p.risk_source_id as riskSourceId
p.risk_source_id as riskSourceId,
0 as frequency
from
from
p_point p
p_point p
left join f_risk_source rs on p.risk_source_id = rs.id AND rs.is_region='TRUE'
left join f_risk_source rs on p.risk_source_id = rs.id AND rs.is_region='TRUE'
where rs.id is not null
where rs.id is not null
AND p.status in ('2','3')
AND p.status in ('
0','
2','3')
AND p.coordinates != '' AND p.coordinates is not null
AND p.coordinates != '' AND p.coordinates is not null
) temp
) temp
WHERE 1=1
WHERE 1=1
...
...
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