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
13dcc79b
Commit
13dcc79b
authored
May 25, 2020
by
单奇雲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试接口
parent
0cb2f733
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
11 deletions
+44
-11
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+8
-3
View3dMapper.java
...om/yeejoin/amos/fas/business/dao/mapper/View3dMapper.java
+2
-2
View3dServiceImpl.java
...oin/amos/fas/business/service/impl/View3dServiceImpl.java
+15
-3
IView3dService.java
...ejoin/amos/fas/business/service/intfc/IView3dService.java
+3
-1
View3dNodeVo.java
...n/java/com/yeejoin/amos/fas/business/vo/View3dNodeVo.java
+16
-2
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 @
13dcc79b
...
...
@@ -209,7 +209,7 @@ public class View3dController extends BaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
orgCode
=
"1*2"
;
return
CommonResponseUtil
.
success
(
view3dService
.
get3dPointsByModel
(
orgCode
,
model
)
);
return
view3dService
.
get3dPointsByModel
(
orgCode
,
model
);
}
@Scheduled
(
cron
=
"${param.safetyIndexChange.cron}"
)
...
...
@@ -248,12 +248,17 @@ public class View3dController extends BaseController {
@RequestParam
(
required
=
false
)
String
type
,
@RequestParam
(
required
=
false
)
String
inputText
,
@RequestParam
(
required
=
true
)
int
current
,
@RequestParam
(
required
=
true
)
int
pageSize
@RequestParam
(
required
=
true
)
int
pageSize
,
@RequestParam
(
required
=
false
)
String
dataLevel
,
@RequestParam
(
required
=
false
)
String
protectObjName
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
this
.
getOrgCode
(
reginParams
);
String
token
=
this
.
getToken
();
String
appKey
=
this
.
getAppKey
();
String
product
=
this
.
getProduct
();
orgCode
=
"1*2"
;
return
view3dService
.
retrieveAll
(
type
,
inputText
,
current
,
pageSize
,
orgCode
);
return
view3dService
.
retrieveAll
(
type
,
inputText
,
current
,
pageSize
,
orgCode
,
dataLevel
,
protectObjName
,
token
,
appKey
,
product
);
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/View3dMapper.java
View file @
13dcc79b
...
...
@@ -117,7 +117,7 @@ public interface View3dMapper extends BaseMapper{
List
<
Node3DVoResponse
>
findViewDataByType
(
String
type
,
Long
riskSourceId
,
String
orgCode
);
Long
retrieveAllCount
(
String
type
,
String
inputText
,
String
orgCode
);
Long
retrieveAllCount
(
String
type
,
String
inputText
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
);
List
<
HashMap
<
String
,
Object
>>
retrieveAll
(
String
type
,
String
inputText
,
long
start
,
int
length
,
String
orgCode
);
List
<
HashMap
<
String
,
Object
>>
retrieveAll
(
String
type
,
String
inputText
,
long
start
,
int
length
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
);
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/View3dServiceImpl.java
View file @
13dcc79b
...
...
@@ -36,6 +36,7 @@ import com.yeejoin.amos.fas.business.dao.mapper.RiskSourceMapper;
import
com.yeejoin.amos.fas.business.dao.mapper.View3dMapper
;
import
com.yeejoin.amos.fas.business.dao.repository.*
;
import
com.yeejoin.amos.fas.business.feign.IDutyModeServer
;
import
com.yeejoin.amos.fas.business.feign.RemoteSecurityService
;
import
com.yeejoin.amos.fas.business.feign.RemoteWebSocketServer
;
import
com.yeejoin.amos.fas.business.service.intfc.IDataRefreshService
;
import
com.yeejoin.amos.fas.business.service.intfc.IView3dService
;
...
...
@@ -50,6 +51,8 @@ import com.yeejoin.amos.fas.core.util.CommonResponseUtil;
import
com.yeejoin.amos.fas.core.util.StringUtil
;
import
com.yeejoin.amos.fas.dao.entity.*
;
import
com.yeejoin.amos.fas.exception.YeeException
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -105,6 +108,8 @@ public class View3dServiceImpl implements IView3dService {
private
IDataRefreshService
iDataRefreshService
;
@Autowired
private
RiskSourceMapper
riskSourceMapper
;
@Autowired
private
RemoteSecurityService
remoteSecurityService
;
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
@@ -565,10 +570,17 @@ public class View3dServiceImpl implements IView3dService {
}
@Override
public
CommonResponse
retrieveAll
(
String
type
,
String
inputText
,
int
current
,
int
pageSize
,
String
orgCode
)
{
public
CommonResponse
retrieveAll
(
String
type
,
String
inputText
,
int
current
,
int
pageSize
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
,
String
token
,
String
appKey
,
String
product
)
{
CommonPageable
pageable
=
new
CommonPageable
(
current
,
pageSize
);
Long
count
=
view3dMapper
.
retrieveAllCount
(
type
,
inputText
,
orgCode
);
List
<
HashMap
<
String
,
Object
>>
retrieveAll
=
view3dMapper
.
retrieveAll
(
type
,
inputText
,
pageable
.
getOffset
(),
pageable
.
getPageSize
(),
orgCode
);
Long
count
=
view3dMapper
.
retrieveAllCount
(
type
,
inputText
,
orgCode
,
dataLevel
,
protectObjName
);
List
<
HashMap
<
String
,
Object
>>
retrieveAll
=
view3dMapper
.
retrieveAll
(
type
,
inputText
,
pageable
.
getOffset
(),
pageable
.
getPageSize
(),
orgCode
,
dataLevel
,
protectObjName
);
retrieveAll
.
stream
().
forEach
(
e
->{
String
person
=
(
String
)
e
.
get
(
"person"
);
if
(
person
!=
null
&&
!
person
.
equals
(
""
))
{
AgencyUserModel
user
=
remoteSecurityService
.
getUserById
(
token
,
product
,
appKey
,
person
);
e
.
put
(
"person"
,
user
!=
null
?
user
.
getRealName
()
:
""
);
}
});
Page
result
=
new
PageImpl
(
retrieveAll
,
pageable
,
count
);
return
CommonResponseUtil
.
success
(
result
);
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IView3dService.java
View file @
13dcc79b
...
...
@@ -149,12 +149,14 @@ public interface IView3dService {
* 检索
* @param type类型
* @param inputText关键字
* @param dataLevel风险等级
* @param protectObjName设备名称
* @param current
* @param pageSize
* @param orgCode
* @return
*/
CommonResponse
retrieveAll
(
String
type
,
String
inputText
,
int
current
,
int
pageSize
,
String
orgCode
);
CommonResponse
retrieveAll
(
String
type
,
String
inputText
,
int
current
,
int
pageSize
,
String
orgCode
,
String
dataLevel
,
String
protectObjName
,
String
token
,
String
appKey
,
String
product
);
/**
* 等级查询
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/vo/View3dNodeVo.java
View file @
13dcc79b
package
com
.
yeejoin
.
amos
.
fas
.
business
.
vo
;
import
java.util.List
;
import
com.alibaba.druid.util.StringUtils
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.yeejoin.amos.fas.business.util.StringUtil
;
import
com.yeejoin.amos.fas.core.common.response.CoordDTO
;
public
class
View3dNodeVo
{
...
...
@@ -19,6 +18,7 @@ public class View3dNodeVo {
private
String
[]
relationKeys
;
private
String
level
;
private
String
levelStr
;
private
CoordDTO
position
;
/**
* 顶牌内容
*/
...
...
@@ -131,4 +131,18 @@ public class View3dNodeVo {
this
.
levelStr
=
levelStr
;
}
/**
* @return the position
*/
public
CoordDTO
getPosition
()
{
return
position
;
}
/**
* @param position the position to set
*/
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
==
null
?
null
:
JSON
.
parseObject
(
position
,
CoordDTO
.
class
);
}
}
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
13dcc79b
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