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
32c2cc96
Commit
32c2cc96
authored
Dec 14, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
bcb7a214
ceb9b205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
WeldController.java
...n/amos/boot/module/ugp/biz/controller/WeldController.java
+8
-0
WeldServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
+15
-0
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 @
32c2cc96
...
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.WeldServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.WeldServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
@@ -228,6 +229,13 @@ public class WeldController extends BaseController {
...
@@ -228,6 +229,13 @@ public class WeldController extends BaseController {
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
list
());
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
list
());
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/getWeldCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取焊口定位信息"
,
notes
=
"获取焊口定位信息"
)
public
ResponseModel
<
List
<
List
<
String
>>>
getWeldCode
(
String
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 @
32c2cc96
...
@@ -25,6 +25,7 @@ import com.yeejoin.amos.boot.module.ugp.api.service.IProjectInitiationService;
...
@@ -25,6 +25,7 @@ import com.yeejoin.amos.boot.module.ugp.api.service.IProjectInitiationService;
import
com.yeejoin.amos.boot.module.ugp.api.service.IWeldService
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IWeldService
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
org.apache.commons.compress.utils.Lists
;
import
org.apache.http.entity.ContentType
;
import
org.apache.http.entity.ContentType
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -369,5 +370,18 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
...
@@ -369,5 +370,18 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
return
weldList
;
return
weldList
;
}
}
public
List
<
List
<
String
>>
getWeldCode
(
String
projectId
){
LambdaQueryWrapper
<
Weld
>
wrapper
=
new
LambdaQueryWrapper
();
wrapper
.
eq
(
Weld:
:
getProjectId
,
projectId
);
List
<
Weld
>
weldList
=
weldMapper
.
selectList
(
wrapper
);
ArrayList
<
List
<
String
>>
list
=
Lists
.
newArrayList
();
for
(
Weld
weld
:
weldList
){
ArrayList
<
String
>
objects
=
Lists
.
newArrayList
();
objects
.
add
(
weld
.
getLatitude
());
objects
.
add
(
weld
.
getLongitude
());
list
.
add
(
objects
);
}
return
list
;
}
}
}
\ 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