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
5783b983
Commit
5783b983
authored
Dec 14, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ugp地图接口开发
parent
e96cb6f8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
19 deletions
+72
-19
ProjectDto.java
.../com/yeejoin/amos/boot/module/ugp/api/dto/ProjectDto.java
+12
-0
CompanyController.java
...mos/boot/module/ugp/biz/controller/CompanyController.java
+14
-0
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+10
-0
WeldController.java
...n/amos/boot/module/ugp/biz/controller/WeldController.java
+3
-6
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+33
-1
WeldServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
+0
-12
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/ProjectDto.java
View file @
5783b983
...
...
@@ -114,4 +114,16 @@ public class ProjectDto extends BaseDto {
private
String
companyType
;
private
String
length
;
/**
*经度
*/
@TableField
(
"longitude"
)
private
String
longitude
;
/**
*纬度
*/
@TableField
(
"latitude"
)
private
String
latitude
;
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/CompanyController.java
View file @
5783b983
...
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
...
...
@@ -21,6 +22,7 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Company;
import
com.yeejoin.amos.boot.module.ugp.api.entity.SuperviseRule
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.UnitLicence
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.CompanyMapper
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.*
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
...
...
@@ -560,5 +562,17 @@ public class CompanyController extends BaseController {
orgServiceImpl
.
getReginParams
();
}
/**
* 获取当前登陆人所在单位的区域代码
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getCompanyRegionCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取当前登陆人所在单位的区域代码"
,
notes
=
"获取当前登陆人所在单位的区域代码"
)
@BusinessIdentify
public
ResponseModel
<
Company
>
getCompanyRegionCode
(){
ReginParams
reginParams
=
orgServiceImpl
.
getReginParams
();
return
ResponseHelper
.
buildResponse
(
companyServiceImpl
.
getById
(
reginParams
.
getBusinessInfo
().
getCompanySequenceNbr
()));
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
5783b983
...
...
@@ -432,6 +432,16 @@ public class ProjectController extends BaseController {
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
projectInProgress
());
}
/**
* 获取当前登陆人所在单位下的项目的项目信息(包含经纬度信息)
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取当前登陆人所在单位下的项目的项目信息(包含经纬度信息)"
,
notes
=
"获取当前登陆人所在单位下的项目的项目信息(包含经纬度信息)"
)
@GetMapping
(
value
=
"/getProjectLocation"
)
public
ResponseModel
<
List
<
ProjectDto
>>
getProjectLocation
(){
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
getProjectLocation
());
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WeldController.java
View file @
5783b983
...
...
@@ -218,8 +218,8 @@ public class WeldController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/getWeldList"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取焊口定位信息"
,
notes
=
"获取焊口定位信息"
)
public
ResponseModel
<
List
<
Weld
>>
getWeldList
(
@RequestParam
(
value
=
"
region"
,
required
=
false
)
String
region
){
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
getWeldList
(
region
));
public
ResponseModel
<
List
<
Weld
>>
getWeldList
(
@RequestParam
(
value
=
"
projectId"
,
required
=
false
)
String
projectId
){
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
list
(
new
LambdaQueryWrapper
<
Weld
>().
eq
(
Weld:
:
getProjectId
,
projectId
)
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
@@ -231,11 +231,8 @@ public class WeldController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/getWeldCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取焊口定位信息
"
,
notes
=
"获取焊口定位信息
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取焊口定位信息
List(只有经纬度信息)"
,
notes
=
"获取焊口定位信息List(只有经纬度信息)
"
)
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/ProjectServiceImpl.java
View file @
5783b983
...
...
@@ -57,9 +57,11 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
@Autowired
ProjectResourceMapper
projectResourceMapper
;
@Autowired
AttachmentServiceImpl
attachmentServiceImpl
;
@Autowired
WeldServiceImpl
weldServiceImpl
;
/**
* 分页查询
*/
...
...
@@ -415,4 +417,33 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
}
return
null
;
}
/**
* 获取当前登陆人所在单位下的项目的项目信息(包含经纬度信息)
* @return
*/
public
List
<
ProjectDto
>
getProjectLocation
(){
List
<
Project
>
projectList
=
projectResourceService
.
getProjectList
();
List
<
ProjectDto
>
projectDtoList
=
new
ArrayList
<>();
if
(!
ValidationUtil
.
isEmpty
(
projectList
)){
for
(
Project
project
:
projectList
)
{
ProjectDto
projectDto
=
new
ProjectDto
();
BeanUtils
.
copyProperties
(
project
,
projectDto
);
List
<
Weld
>
weldList
=
weldServiceImpl
.
list
(
new
LambdaQueryWrapper
<
Weld
>().
eq
(
Weld:
:
getProjectId
,
project
.
getSequenceNbr
()));
if
(!
ValidationUtil
.
isEmpty
(
weldList
)){
for
(
Weld
weld
:
weldList
)
{
String
longitude
=
weld
.
getLongitude
();
String
latitude
=
weld
.
getLatitude
();
if
(!
ValidationUtil
.
isEmpty
(
longitude
)
&&
!
ValidationUtil
.
isEmpty
(
latitude
))
{
projectDto
.
setLongitude
(
longitude
);
projectDto
.
setLatitude
(
latitude
);
break
;
}
}
}
projectDtoList
.
add
(
projectDto
);
}
}
return
projectDtoList
;
}
}
\ No newline at end of file
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 @
5783b983
...
...
@@ -357,18 +357,6 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
page
.
setRecords
(
list
);
return
page
;
}
/**
* 获取焊口定位信息
*/
public
List
<
Weld
>
getWeldList
(
String
region
){
List
<
Project
>
projectList
=
projectResourceService
.
getProjectList
();
Set
<
String
>
ids
=
new
HashSet
<>();
for
(
Project
project
:
projectList
)
{
ids
.
add
(
String
.
valueOf
(
project
.
getSequenceNbr
()));
}
List
<
Weld
>
weldList
=
weldMapper
.
getWeldList
(
region
,
ids
);
return
weldList
;
}
public
List
<
List
<
String
>>
getWeldCode
(
String
projectId
){
LambdaQueryWrapper
<
Weld
>
wrapper
=
new
LambdaQueryWrapper
();
...
...
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