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
3e833c1e
Commit
3e833c1e
authored
Apr 21, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.公共代码部分提交-全景监控
parent
003761dd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
170 additions
and
0 deletions
+170
-0
BasePointPositionBo.java
...com/yeejoin/amos/fas/business/bo/BasePointPositionBo.java
+62
-0
BindPointBo.java
...in/java/com/yeejoin/amos/fas/business/bo/BindPointBo.java
+42
-0
View3dController.java
...eejoin/amos/fas/business/controller/View3dController.java
+19
-0
View3dServiceImpl.java
...oin/amos/fas/business/service/impl/View3dServiceImpl.java
+33
-0
IView3dService.java
...ejoin/amos/fas/business/service/intfc/IView3dService.java
+14
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/bo/BasePointPositionBo.java
0 → 100644
View file @
3e833c1e
package
com
.
yeejoin
.
amos
.
fas
.
business
.
bo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
/**
* @author suhg
*/
@ApiModel
(
description
=
"坐标实体(ue4及非ue4)"
)
public
class
BasePointPositionBo
{
/**
* ue4点坐标
*/
@ApiModelProperty
(
"ue4坐标"
)
private
String
ue4Location
;
/**
* ue4旋转
*/
@ApiModelProperty
(
"ue4旋转"
)
private
String
ue4Rotation
;
@ApiModelProperty
(
"ue4缩放"
)
private
String
ue4Extent
;
/**
* 平台3维模型坐标
*/
@ApiModelProperty
(
"3d点坐标,非ue4用"
)
private
String
position3d
;
public
String
getUe4Location
()
{
return
ue4Location
;
}
public
void
setUe4Location
(
String
ue4Location
)
{
this
.
ue4Location
=
ue4Location
;
}
public
String
getUe4Rotation
()
{
return
ue4Rotation
;
}
public
void
setUe4Rotation
(
String
ue4Rotation
)
{
this
.
ue4Rotation
=
ue4Rotation
;
}
public
String
getUe4Extent
()
{
return
ue4Extent
;
}
public
void
setUe4Extent
(
String
ue4Extent
)
{
this
.
ue4Extent
=
ue4Extent
;
}
public
String
getPosition3d
()
{
return
position3d
;
}
public
void
setPosition3d
(
String
position3d
)
{
this
.
position3d
=
position3d
;
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/bo/BindPointBo.java
0 → 100644
View file @
3e833c1e
package
com
.
yeejoin
.
amos
.
fas
.
business
.
bo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
javax.validation.constraints.NotNull
;
/**
* @author suhg
*/
@ApiModel
(
description
=
"绑定点参数实体"
)
public
class
BindPointBo
extends
BasePointPositionBo
{
/**
* 点id
*/
@NotNull
@ApiModelProperty
(
"巡检点id"
)
private
Long
pointId
;
/**
* 点类型枚举
*/
@NotNull
@ApiModelProperty
(
"点类型"
)
private
String
pointType
;
public
Long
getPointId
()
{
return
pointId
;
}
public
void
setPointId
(
Long
pointId
)
{
this
.
pointId
=
pointId
;
}
public
String
getPointType
()
{
return
pointType
;
}
public
void
setPointType
(
String
pointType
)
{
this
.
pointType
=
pointType
;
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/View3dController.java
View file @
3e833c1e
package
com
.
yeejoin
.
amos
.
fas
.
business
.
controller
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
controller
;
import
com.yeejoin.amos.fas.business.bo.BindPointBo
;
import
com.yeejoin.amos.fas.business.service.intfc.IView3dService
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponseUtil
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -8,6 +16,9 @@ import com.yeejoin.amos.fas.business.service.intfc.IRiskSourceService;
...
@@ -8,6 +16,9 @@ import com.yeejoin.amos.fas.business.service.intfc.IRiskSourceService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
java.util.HashMap
;
import
java.util.List
;
@RestController
@RestController
@RequestMapping
(
"/api/view3d"
)
@RequestMapping
(
"/api/view3d"
)
@Api
(
tags
=
"view3d数据"
)
@Api
(
tags
=
"view3d数据"
)
...
@@ -15,6 +26,14 @@ public class View3dController {
...
@@ -15,6 +26,14 @@ public class View3dController {
@Autowired
@Autowired
private
IRiskSourceService
riskSourceService
;
private
IRiskSourceService
riskSourceService
;
@Autowired
private
IView3dService
view3dService
;
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"点3d坐标设置"
,
notes
=
"按照点类型3d坐标设置"
)
@PostMapping
(
value
=
"/point/bind"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
setPoint3dPosition
(
@ApiParam
(
name
=
"参数"
,
required
=
true
)
@RequestBody
List
<
BindPointBo
>
pointBoList
){
return
view3dService
.
setPoint3dPosition
(
pointBoList
);
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/View3dServiceImpl.java
0 → 100644
View file @
3e833c1e
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
impl
;
import
com.yeejoin.amos.fas.business.bo.BindPointBo
;
import
com.yeejoin.amos.fas.business.service.intfc.IView3dService
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponseUtil
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.CollectionUtils
;
import
java.util.List
;
/**
* @author DELL
*/
@Service
(
"view3dService"
)
public
class
View3dServiceImpl
implements
IView3dService
{
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
CommonResponse
setPoint3dPosition
(
List
<
BindPointBo
>
pointBoList
)
{
if
(
CollectionUtils
.
isEmpty
(
pointBoList
)){
return
CommonResponseUtil
.
failure
(
"点不能为空"
);
}
pointBoList
.
forEach
(
pointBo
->{
this
.
savePointPositionByType
(
pointBo
.
getPointType
(),
pointBo
);
});
return
null
;
}
public
void
savePointPositionByType
(
String
pointType
,
BindPointBo
pointBo
){
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IView3dService.java
0 → 100644
View file @
3e833c1e
package
com
.
yeejoin
.
amos
.
fas
.
business
.
service
.
intfc
;
import
com.yeejoin.amos.fas.business.bo.BindPointBo
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
java.util.List
;
/**
* @author DELL
*/
public
interface
IView3dService
{
CommonResponse
setPoint3dPosition
(
List
<
BindPointBo
>
pointBoList
);
}
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