Commit 939574db authored by suhuiguang's avatar suhuiguang

1.3d左侧耳朵查询返回增加闪烁频率、是否显示顶牌、顶牌内容

parent 94f3842e
...@@ -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;
......
...@@ -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();
......
...@@ -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;
} }
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment