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
afc4b181
Commit
afc4b181
authored
Dec 16, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改焊口经纬度查询接口
parent
df21b41e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
WeldController.java
...n/amos/boot/module/ugp/biz/controller/WeldController.java
+2
-2
WeldServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
+8
-6
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WeldController.java
View file @
afc4b181
...
@@ -230,9 +230,9 @@ public class WeldController extends BaseController {
...
@@ -230,9 +230,9 @@ public class WeldController extends BaseController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/getWeldCode"
)
@GetMapping
(
value
=
"/getWeldCode
/{projectId}
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取焊口定位信息List(只有经纬度信息)"
,
notes
=
"获取焊口定位信息List(只有经纬度信息)"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取焊口定位信息List(只有经纬度信息)"
,
notes
=
"获取焊口定位信息List(只有经纬度信息)"
)
public
ResponseModel
<
List
<
List
<
String
>>>
getWeldCode
(
String
projectId
){
public
ResponseModel
<
List
<
List
<
Double
>>>
getWeldCode
(
@PathVariable
String
projectId
){
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
getWeldCode
(
projectId
));
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
getWeldCode
(
projectId
));
}
}
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
View file @
afc4b181
...
@@ -358,16 +358,18 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
...
@@ -358,16 +358,18 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
return
page
;
return
page
;
}
}
public
List
<
List
<
String
>>
getWeldCode
(
String
projectId
){
public
List
<
List
<
Double
>>
getWeldCode
(
String
projectId
){
LambdaQueryWrapper
<
Weld
>
wrapper
=
new
LambdaQueryWrapper
();
LambdaQueryWrapper
<
Weld
>
wrapper
=
new
LambdaQueryWrapper
();
wrapper
.
eq
(
Weld:
:
getProjectId
,
projectId
);
wrapper
.
eq
(
Weld:
:
getProjectId
,
projectId
);
List
<
Weld
>
weldList
=
weldMapper
.
selectList
(
wrapper
);
List
<
Weld
>
weldList
=
weldMapper
.
selectList
(
wrapper
);
ArrayList
<
List
<
String
>>
list
=
Lists
.
newArrayList
();
ArrayList
<
List
<
Double
>>
list
=
Lists
.
newArrayList
();
for
(
Weld
weld
:
weldList
){
for
(
Weld
weld
:
weldList
){
ArrayList
<
String
>
objects
=
Lists
.
newArrayList
();
if
(!
ValidationUtil
.
isEmpty
(
weld
.
getLatitude
())
&&
!
ValidationUtil
.
isEmpty
(
weld
.
getLongitude
()))
{
objects
.
add
(
weld
.
getLatitude
());
ArrayList
<
Double
>
objects
=
Lists
.
newArrayList
();
objects
.
add
(
weld
.
getLongitude
());
objects
.
add
(
Double
.
valueOf
(
weld
.
getLongitude
()));
list
.
add
(
objects
);
objects
.
add
(
Double
.
valueOf
(
weld
.
getLatitude
()));
list
.
add
(
objects
);
}
}
}
return
list
;
return
list
;
}
}
...
...
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