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
3b517953
Commit
3b517953
authored
Jun 22, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:三维查询搜索接口新增
parent
70a6e9f7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
23 deletions
+97
-23
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+24
-0
View3dMapper.java
...om/yeejoin/amos/fas/business/dao/mapper/View3dMapper.java
+38
-18
RetrieveParams.java
...a/com/yeejoin/amos/fas/business/param/RetrieveParams.java
+15
-0
View3dServiceImpl.java
...oin/amos/fas/business/service/impl/View3dServiceImpl.java
+0
-0
IView3dService.java
...ejoin/amos/fas/business/service/intfc/IView3dService.java
+20
-5
dbTemplate_view3d.xml
...sStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
+0
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/View3dController.java
View file @
3b517953
...
@@ -281,6 +281,30 @@ public class View3dController extends BaseController {
...
@@ -281,6 +281,30 @@ public class View3dController extends BaseController {
}
}
@Permission
@Permission
@PostMapping
(
value
=
"/retrieve3/all"
,
produces
=
"application/json;charset=UTF-8"
)
@ApiOperation
(
value
=
"右侧边栏搜索"
,
notes
=
"右侧边栏搜索"
)
public
CommonResponse
retrieve3All
(
@RequestBody
RetrieveParams
params
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
String
token
=
this
.
getToken
();
String
appKey
=
this
.
getAppKey
();
String
product
=
this
.
getProduct
();
return
view3dService
.
retrieve3All
(
params
.
getType
(),
params
.
getRiskSourceId
(),
params
.
getAreaId
(),
params
.
getEquipmentId
(),
params
.
getInputText
(),
params
.
getCurrent
(),
params
.
getPageSize
(),
orgCode
,
params
.
getDataLevel
(),
token
,
appKey
,
product
);
}
@Permission
@ApiOperation
(
value
=
"等级查询"
,
notes
=
"等级查询"
)
@ApiOperation
(
value
=
"等级查询"
,
notes
=
"等级查询"
)
@GetMapping
(
value
=
"point/level"
)
@GetMapping
(
value
=
"point/level"
)
public
CommonResponse
pointLevel
(
@ApiParam
(
value
=
"点类型"
)
@RequestParam
String
type
){
public
CommonResponse
pointLevel
(
@ApiParam
(
value
=
"点类型"
)
@RequestParam
String
type
){
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/View3dMapper.java
View file @
3b517953
package
com
.
yeejoin
.
amos
.
fas
.
business
.
dao
.
mapper
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
dao
.
mapper
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.amos.fas.business.bo.CheckErrorBo
;
import
com.yeejoin.amos.fas.business.bo.CheckErrorBo
;
import
com.yeejoin.amos.fas.business.bo.RiskPointRpnChangeBo
;
import
com.yeejoin.amos.fas.business.bo.RiskPointRpnChangeBo
;
import
com.yeejoin.amos.fas.business.bo.SafetyExecuteBo
;
import
com.yeejoin.amos.fas.business.bo.SafetyExecuteBo
;
import
com.yeejoin.amos.fas.business.vo.View3dNodeVo
;
import
com.yeejoin.amos.fas.business.vo.View3dNodeVo
;
import
com.yeejoin.amos.fas.dao.entity.RiskSource
;
import
org.apache.ibatis.annotations.Param
;
import
com.yeejoin.amos.fas.core.common.response.Node3DVoResponse
;
import
com.yeejoin.amos.fas.core.common.response.Node3DVoResponse
;
import
com.yeejoin.amos.fas.core.common.response.RegionTreeResponse
;
import
com.yeejoin.amos.fas.core.common.response.RegionTreeResponse
;
import
org.apache.ibatis.annotations.Param
;
public
interface
View3dMapper
extends
BaseMapper
{
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
interface
View3dMapper
extends
BaseMapper
{
/**
/**
* 按类型查询点
* 按类型查询点
*
* @param type
* @param type
* @param orgCode
* @param orgCode
* @return
* @return
*/
*/
List
<
RegionTreeResponse
>
getPointByType
(
@Param
(
"type"
)
String
type
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"channelType"
)
String
channelType
);
List
<
RegionTreeResponse
>
getPointByType
(
@Param
(
"type"
)
String
type
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"channelType"
)
String
channelType
);
/**
/**
* 获取点详情
* 获取点详情
*
* @param type
* @param type
* @param pointId
* @param pointId
* @return map
* @return map
*/
*/
HashMap
<
String
,
Object
>
getPointDetailByTypeAndId
(
@Param
(
"type"
)
String
type
,
@Param
(
"pointId"
)
Long
pointId
);
HashMap
<
String
,
Object
>
getPointDetailByTypeAndId
(
@Param
(
"type"
)
String
type
,
@Param
(
"pointId"
)
Long
pointId
);
/**
/**
* 统计风险上升异常数量(风险点)-日期+机构
* 统计风险上升异常数量(风险点)-日期+机构
*
* @param param:{type,orgCode}
* @param param:{type,orgCode}
* @return Long
* @return Long
*/
*/
Long
countUpperRiskPoint
(
Map
<
String
,
Object
>
param
);
Long
countUpperRiskPoint
(
Map
<
String
,
Object
>
param
);
/**
/**
* 统计巡检异常数量(不合格、漏检)-日期+机构
* 统计巡检异常数量(不合格、漏检)-日期+机构
*
* @param param{}
* @param param{}
* @return Long
* @return Long
*/
*/
Long
countCheckException
(
Map
<
String
,
Object
>
param
);
Long
countCheckException
(
Map
<
String
,
Object
>
param
);
/**
/**
* 统计故障告警数量(不合格、漏检)-日期+机构
* 统计故障告警数量(不合格、漏检)-日期+机构
*
* @param param
* @param param
* @return
* @return
*/
*/
Long
countFireException
(
Map
<
String
,
Object
>
param
);
Long
countFireException
(
Map
<
String
,
Object
>
param
);
/**
/**
* 今日安全指数详情
* 今日安全指数详情
*
* @param params orgCode,date
* @param params orgCode,date
* @return list
* @return list
*/
*/
...
@@ -61,13 +65,15 @@ public interface View3dMapper extends BaseMapper{
...
@@ -61,13 +65,15 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 一周安全指数趋势查询
* 一周安全指数趋势查询
*
* @param orgCode
* @param orgCode
* @return
* @return
*/
*/
List
<
HashMap
<
String
,
Object
>>
getSafetyIndexWeek
(
@Param
(
"orgCode"
)
String
orgCode
);
List
<
HashMap
<
String
,
Object
>>
getSafetyIndexWeek
(
@Param
(
"orgCode"
)
String
orgCode
);
/**
/**
* 今日安全指数详情
* 今日安全指数详情
*
* @param params orgCode,date
* @param params orgCode,date
* @return list
* @return list
*/
*/
...
@@ -76,6 +82,7 @@ public interface View3dMapper extends BaseMapper{
...
@@ -76,6 +82,7 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 今日安全指数故障告警详情
* 今日安全指数故障告警详情
*
* @param params orgCode,date
* @param params orgCode,date
* @return list
* @return list
*/
*/
...
@@ -83,6 +90,7 @@ public interface View3dMapper extends BaseMapper{
...
@@ -83,6 +90,7 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 今日巡检统计接口
* 今日巡检统计接口
*
* @param orgCode
* @param orgCode
* @return
* @return
*/
*/
...
@@ -90,6 +98,7 @@ public interface View3dMapper extends BaseMapper{
...
@@ -90,6 +98,7 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 风险异常显示最新5条
* 风险异常显示最新5条
*
* @param orgCode
* @param orgCode
* @return
* @return
*/
*/
...
@@ -97,6 +106,7 @@ public interface View3dMapper extends BaseMapper{
...
@@ -97,6 +106,7 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 巡检异常示最新5条
* 巡检异常示最新5条
*
* @param orgCode
* @param orgCode
* @return
* @return
*/
*/
...
@@ -104,6 +114,7 @@ public interface View3dMapper extends BaseMapper{
...
@@ -104,6 +114,7 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 火灾告警最新5条
* 火灾告警最新5条
*
* @param orgCode
* @param orgCode
* @return
* @return
*/
*/
...
@@ -111,6 +122,7 @@ public interface View3dMapper extends BaseMapper{
...
@@ -111,6 +122,7 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 设备状态最新5条
* 设备状态最新5条
*
* @param orgCode
* @param orgCode
* @return
* @return
*/
*/
...
@@ -118,6 +130,7 @@ public interface View3dMapper extends BaseMapper{
...
@@ -118,6 +130,7 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 按照类型查询点
* 按照类型查询点
*
* @param params {orgCode,type}
* @param params {orgCode,type}
* @return 列表
* @return 列表
*/
*/
...
@@ -130,27 +143,34 @@ public interface View3dMapper extends BaseMapper{
...
@@ -130,27 +143,34 @@ public interface View3dMapper extends BaseMapper{
/**
/**
* 重点模式设备
* 重点模式设备
*
* @return
* @return
*/
*/
List
<
View3dNodeVo
>
getImpEqu3dPoints
(
String
orgCode
);
List
<
View3dNodeVo
>
getImpEqu3dPoints
(
String
orgCode
);
/**
/**
* 异常点
* 异常点
*
* @param type
* @param type
* @param orgCode
* @param orgCode
* @param riskSourceId 区域id
* @param riskSourceId 区域id
* @return
* @return
*/
*/
List
<
View3dNodeVo
>
initViewErrorNode
(
String
type
,
Long
riskSourceId
,
String
orgCode
);
List
<
View3dNodeVo
>
initViewErrorNode
(
String
type
,
Long
riskSourceId
,
String
orgCode
);
List
<
Node3DVoResponse
>
findViewDataByType
(
@Param
(
"type"
)
String
type
,
@Param
(
"riskSourceId"
)
Long
riskSourceId
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"abnormalStatus"
)
Boolean
abnormalStatus
);
Long
retrieveAllCount
(
String
type
,
Long
riskSourceId
,
String
inputText
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
);
List
<
Node3DVoResponse
>
findViewDataByType
(
@Param
(
"type"
)
String
type
,
@Param
(
"riskSourceId"
)
Long
riskSourceId
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"abnormalStatus"
)
Boolean
abnormalStatus
);
List
<
HashMap
<
String
,
Object
>>
retrieveAll
(
String
type
,
Long
riskSourceId
,
String
inputText
,
long
start
,
int
length
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
);
Long
retrieveAllCount
(
String
type
,
Long
riskSourceId
,
String
inputText
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
);
Long
retrieve3AllCount
(
String
type
,
Long
riskSourceId
,
Long
areaId
,
Long
equipmentId
,
String
inputText
,
String
orgCode
,
String
dataLevel
);
List
<
HashMap
<
String
,
Object
>>
retrieveAll
(
String
type
,
Long
riskSourceId
,
String
inputText
,
long
start
,
int
length
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
);
List
<
HashMap
<
String
,
Object
>>
retrieve3All
(
String
type
,
Long
riskSourceId
,
Long
areaId
,
Long
equipmentId
,
String
inputText
,
long
start
,
int
length
,
String
orgCode
,
String
dataLevel
);
/**
/**
* 查询区域下点
* 查询区域下点
*
* @param ids 区域ids
* @param ids 区域ids
* @return list
* @return list
*/
*/
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/param/RetrieveParams.java
View file @
3b517953
...
@@ -9,6 +9,8 @@ public class RetrieveParams {
...
@@ -9,6 +9,8 @@ public class RetrieveParams {
private
String
dataLevel
;
private
String
dataLevel
;
private
String
protectObjName
;
private
String
protectObjName
;
private
String
riskSourceId
;
private
String
riskSourceId
;
private
Long
areaId
;
private
Long
equipmentId
;
public
String
getRiskSourceId
()
{
public
String
getRiskSourceId
()
{
return
riskSourceId
;
return
riskSourceId
;
...
@@ -55,6 +57,19 @@ public class RetrieveParams {
...
@@ -55,6 +57,19 @@ public class RetrieveParams {
this
.
protectObjName
=
protectObjName
;
this
.
protectObjName
=
protectObjName
;
}
}
public
Long
getAreaId
()
{
return
areaId
;
}
public
void
setAreaId
(
Long
areaId
)
{
this
.
areaId
=
areaId
;
}
public
Long
getEquipmentId
()
{
return
equipmentId
;
}
public
void
setEquipmentId
(
Long
equipmentId
)
{
this
.
equipmentId
=
equipmentId
;
}
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/View3dServiceImpl.java
View file @
3b517953
This diff is collapsed.
Click to expand it.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IView3dService.java
View file @
3b517953
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
intfc
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
intfc
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.amos.fas.business.bo.BindPointBo
;
import
com.yeejoin.amos.fas.business.bo.BindPointBo
;
import
com.yeejoin.amos.fas.business.bo.SafetyExecuteBo
;
import
com.yeejoin.amos.fas.business.bo.SafetyExecuteBo
;
import
com.yeejoin.amos.fas.business.vo.ExceptionRegionVo
;
import
com.yeejoin.amos.fas.business.vo.ExceptionRegionVo
;
...
@@ -15,6 +11,10 @@ import com.yeejoin.amos.fas.core.common.response.Node3DVoResponse;
...
@@ -15,6 +11,10 @@ import com.yeejoin.amos.fas.core.common.response.Node3DVoResponse;
import
com.yeejoin.amos.fas.core.common.response.RegionTreeResponse
;
import
com.yeejoin.amos.fas.core.common.response.RegionTreeResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author DELL
* @author DELL
*/
*/
...
@@ -160,11 +160,26 @@ public interface IView3dService {
...
@@ -160,11 +160,26 @@ public interface IView3dService {
CommonResponse
retrieveAll
(
String
type
,
String
riskRourceId
,
String
inputText
,
int
current
,
int
pageSize
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
,
String
token
,
String
appKey
,
String
product
);
CommonResponse
retrieveAll
(
String
type
,
String
riskRourceId
,
String
inputText
,
int
current
,
int
pageSize
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
,
String
token
,
String
appKey
,
String
product
);
/**
/**
* 检索
*
* @param type 类型
* @param riskRourceId
* @param inputText 关键字
* @param dataLevel 风险等级
* @param current
* @param pageSize
* @param orgCode
* @return
*/
CommonResponse
retrieve3All
(
String
type
,
String
riskRourceId
,
Long
areaId
,
Long
equipmentId
,
String
inputText
,
int
current
,
int
pageSize
,
String
orgCode
,
String
dataLevel
,
String
token
,
String
appKey
,
String
product
);
/**
* 等级查询
* 等级查询
*
* @param type
* @param type
* @return
* @return
*/
*/
List
<
Map
<
String
,
String
>>
pointLevelList
(
String
type
);
List
<
Map
<
String
,
String
>>
pointLevelList
(
String
type
);
/**
/**
* 查询区域下的各类点
* 查询区域下的各类点
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
3b517953
This diff is collapsed.
Click to expand it.
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