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
2fafbc75
Commit
2fafbc75
authored
Jun 08, 2020
by
万伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还原代码3dControl
parent
071d9fe5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
51 deletions
+34
-51
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+34
-51
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/View3dController.java
View file @
2fafbc75
...
...
@@ -45,9 +45,8 @@ public class View3dController extends BaseController {
@ApiOperation
(
value
=
"区域树查询"
,
notes
=
"区域树查询"
)
@GetMapping
(
value
=
"/region/tree"
)
public
CommonResponse
getRegionTree
()
{
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
String
channelType
=
this
.
getChannelType
();
return
CommonResponseUtil
.
success
(
riskSourceService
.
findRegionTree
(
channelType
,
orgCode
));
}
...
...
@@ -55,9 +54,8 @@ public class View3dController extends BaseController {
@ApiOperation
(
value
=
"区域详情查询"
,
notes
=
"区域详情查询"
)
@GetMapping
(
value
=
"region/detail/{riskSourceId}"
)
public
CommonResponse
getRegionDetail
(
@PathVariable
(
"riskSourceId"
)
Long
riskSourceId
)
{
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
String
channelType
=
this
.
getChannelType
();
return
CommonResponseUtil
.
success
(
riskSourceService
.
findRegionById
(
riskSourceId
,
orgCode
,
channelType
));
}
...
...
@@ -83,9 +81,8 @@ public class View3dController extends BaseController {
@GetMapping
(
value
=
"point/tree/{type}"
)
public
CommonResponse
getPointTreeByType
(
@PathVariable
(
value
=
"type"
)
String
type
)
{
if
(
ResourceTypeDefEnum
.
containsTypeCode
(
type
))
{
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
String
channelType
=
this
.
getChannelType
();
return
CommonResponseUtil
.
success
(
view3dService
.
getPointTreeByType
(
type
,
orgCode
,
channelType
));
}
...
...
@@ -95,36 +92,32 @@ public class View3dController extends BaseController {
@ApiOperation
(
value
=
"按照不同类型查询点详情"
,
notes
=
"按照不同类型查询点详情"
)
@GetMapping
(
value
=
"point/detail"
)
public
CommonResponse
getPointDetail
(
String
type
,
Long
pointId
)
{
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getPointDetailByTypeAndId
(
type
,
pointId
,
orgCode
));
}
@ApiOperation
(
value
=
"一周安全指数趋势查询"
,
notes
=
"一周安全指数趋势查询"
)
@GetMapping
(
value
=
"safetyIndex/week"
)
public
CommonResponse
safetyIndexWeek
(
String
type
,
Long
pointId
)
{
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getSafetyIndexWeek
(
orgCode
));
}
@ApiOperation
(
value
=
"今日安全指数查询"
,
notes
=
"按照日期查询安全指数及分类数据"
)
@GetMapping
(
value
=
"/statistics/safetyIndex"
)
public
CommonResponse
getSafetyIndexInfoByDate
(
@RequestParam
(
name
=
"date"
,
required
=
false
)
String
date
){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getSafetyIndexInfoByDate
(
orgCode
,
date
));
}
@ApiOperation
(
value
=
"今日安全指数详情"
,
notes
=
"今日安全指数详情"
)
@GetMapping
(
value
=
"/safetyIndex/detail/{type}"
)
public
CommonResponse
getSafetyIndexDetail
(
@ApiParam
(
value
=
"risk-风险异常,check-巡检异常,equip-设备故障"
)
@PathVariable
String
type
){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getSafetyIndexDetail
(
type
,
orgCode
));
}
...
...
@@ -132,45 +125,40 @@ public class View3dController extends BaseController {
@GetMapping
(
value
=
"/online/date"
)
public
CommonResponse
getSystemOnlineDate
(){
//TODO: 多机构暂时不支持
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getSystemOnlineDate
(
orgCode
));
}
@ApiOperation
(
value
=
"今日巡检统计接口"
,
notes
=
"今日巡检统计接口"
)
@GetMapping
(
value
=
"statistics/check"
)
public
CommonResponse
getStatisticsCheck
(){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getStatisticsCheck
(
orgCode
));
}
@ApiOperation
(
value
=
"异常显示最新5条"
,
notes
=
"异常显示最新5条"
)
@GetMapping
(
value
=
"safetyExecute/list/{type}"
)
public
CommonResponse
getSafetyExecuteListTop5
(
@PathVariable
(
"type"
)
String
type
){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getSafetyExecuteListTop5
(
type
,
orgCode
));
}
@ApiOperation
(
value
=
"今日值班统计"
,
notes
=
"今日值班统计"
)
@GetMapping
(
value
=
"statistics/duty"
)
public
CommonResponse
getStatisticsDuty
(){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
view3dService
.
getStatisticsDuty
(
getAppKey
(),
getProduct
(),
orgCode
);
}
@ApiOperation
(
value
=
"异常区域信息查询"
,
notes
=
"异常区域信息查询"
)
@GetMapping
(
value
=
"region/exception/list"
)
public
CommonResponse
getExceptionRegion
(){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
List
<
ExceptionRegionVo
>
exceptionRegionVoList
=
view3dService
.
getExceptionRegion
(
orgCode
);
return
CommonResponseUtil
.
success
(
exceptionRegionVoList
);
}
...
...
@@ -178,27 +166,24 @@ public class View3dController extends BaseController {
@ApiOperation
(
value
=
"设备状态信息查询"
,
notes
=
"设备状态信息查询"
)
@GetMapping
(
value
=
"equipStatus/list"
)
public
CommonResponse
getEquipStatusList
(){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
getEquipStatusList
(
orgCode
));
}
@ApiOperation
(
value
=
"3d视图点显示"
,
notes
=
"3d视图点显示"
)
@GetMapping
(
value
=
"initViewNode"
)
public
CommonResponse
initViewNode
(
String
type
,
Long
riskSourceId
){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
initViewErrorNode
(
type
,
riskSourceId
,
orgCode
));
}
@ApiOperation
(
value
=
"按照点类型查询点列表"
,
notes
=
"按照点类型查询点列表"
)
@GetMapping
(
value
=
"point/list"
)
public
CommonResponse
get3dPointsByType
(
@RequestParam
(
required
=
false
,
defaultValue
=
"grain"
)
String
model
){
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
view3dService
.
get3dPointsByModel
(
orgCode
,
model
);
}
...
...
@@ -225,9 +210,8 @@ public class View3dController extends BaseController {
public
CommonResponse
init3dViewNode
(
@ApiParam
(
value
=
"节点类型"
,
required
=
false
)
@RequestParam
(
required
=
false
)
String
type
,
@ApiParam
(
value
=
"区域ID"
,
required
=
false
)
@RequestParam
(
required
=
false
)
Long
riskSourceId
)
{
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
return
CommonResponseUtil
.
success
(
view3dService
.
find3dViewDataByType
(
type
,
riskSourceId
,
orgCode
));
}
...
...
@@ -236,9 +220,8 @@ public class View3dController extends BaseController {
public
CommonResponse
retrieveAll
(
@RequestBody
RetrieveParams
params
)
{
// ReginParams reginParams =getSelectedOrgInfo();
// String orgCode = this.getOrgCode(reginParams);
String
orgCode
=
"1*2"
;
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
String
token
=
this
.
getToken
();
String
appKey
=
this
.
getAppKey
();
String
product
=
this
.
getProduct
();
...
...
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