Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
cd524a6a
Commit
cd524a6a
authored
Jun 08, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
场站地图接口修改
parent
521f0a24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
CameraInfo.java
...yeejoin/amos/boot/module/jxiop/api/entity/CameraInfo.java
+2
-2
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+14
-8
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/CameraInfo.java
View file @
cd524a6a
...
@@ -7,6 +7,6 @@ import java.util.ArrayList;
...
@@ -7,6 +7,6 @@ import java.util.ArrayList;
@Data
@Data
public
class
CameraInfo
{
public
class
CameraInfo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
private
ArrayList
<
Integer
>
position
;
private
ArrayList
<
Double
>
position
;
private
ArrayList
<
Integer
>
target
;
private
ArrayList
<
Double
>
target
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationBasicServiceImpl.java
View file @
cd524a6a
...
@@ -282,15 +282,10 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
...
@@ -282,15 +282,10 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
StationInfoDto
stationInfoDto
=
new
StationInfoDto
();
StationInfoDto
stationInfoDto
=
new
StationInfoDto
();
stationInfoDto
.
setStationName
(
stationRecordInfo
.
getStationName
());
stationInfoDto
.
setStationName
(
stationRecordInfo
.
getStationName
());
stationInfoDto
.
setType
(
stationRecordInfo
.
getStationType
());
stationInfoDto
.
setType
(
stationRecordInfo
.
getStationType
());
stationInfoDto
.
setUrl
(
"https://
www.baidu.com
"
);
stationInfoDto
.
setUrl
(
"https://
tse4-mm.cn.bing.net/th/id/OIP-C.ySnewoc464X4Aecg9jl03AAAAA?w=162&h=180&c=7&r=0&o=5&pid=1.7
"
);
stationInfoDto
.
setJumpPath
(
stationRecordInfo
.
getJumpPath
());
stationInfoDto
.
setJumpPath
(
stationRecordInfo
.
getJumpPath
());
if
(
stationRecordInfo
.
getBelongArea
()!=
null
){
if
(
stationRecordInfo
.
getBelongArea
()!=
null
){
String
[]
strings
=
stationRecordInfo
.
getBelongArea
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
split
(
","
);
stationInfoDto
.
setRegion
(
this
.
getProviceName
(
stationRecordInfo
.
getBelongArea
()));
if
(
strings
.
length
>
0
){
Region
region
=
regionServiceImpl
.
getRegionByRegionCode
(
strings
[
0
]);
stationInfoDto
.
setRegion
(
region
.
getRegionName
().
replace
(
"省"
,
""
).
replace
(
"市"
,
""
));
}
}
}
ArrayList
<
Double
>
arrayList
=
MapUtils
.
geoTo3d
(
Double
.
valueOf
(
stationRecordInfo
.
getLongitude
()),
Double
.
valueOf
(
stationRecordInfo
.
getLaitude
()));
ArrayList
<
Double
>
arrayList
=
MapUtils
.
geoTo3d
(
Double
.
valueOf
(
stationRecordInfo
.
getLongitude
()),
Double
.
valueOf
(
stationRecordInfo
.
getLaitude
()));
stationInfoDto
.
setTitlePos
(
arrayList
);
stationInfoDto
.
setTitlePos
(
arrayList
);
...
@@ -305,5 +300,15 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
...
@@ -305,5 +300,15 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto, Statio
return
stationBasicMapper
.
getStationPersonByStationID
(
id
);
return
stationBasicMapper
.
getStationPersonByStationID
(
id
);
}
}
public
String
getProviceName
(
String
belongArea
){
String
proviceName
=
"湖北"
;
if
(
belongArea
!=
null
){
String
[]
strings
=
belongArea
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
split
(
","
);
if
(
strings
.
length
>
0
){
Region
region
=
regionServiceImpl
.
getRegionByRegionCode
(
strings
[
0
]);
proviceName
=
region
.
getRegionName
().
replace
(
"省"
,
""
).
replace
(
"市"
,
""
);
}
}
return
proviceName
;
}
}
}
\ No newline at end of file
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