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
d3297dc5
Commit
d3297dc5
authored
Sep 09, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改根据登陆人获取机场人员信息
parent
d4aff270
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+1
-1
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+6
-3
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+15
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IOrgUsrService.java
View file @
d3297dc5
...
@@ -223,7 +223,7 @@ public interface IOrgUsrService {
...
@@ -223,7 +223,7 @@ public interface IOrgUsrService {
/**
/**
* 获取登陆人关联机场单位人员信息,部门信息
* 获取登陆人关联机场单位人员信息,部门信息
*/
*/
List
<
Map
<
String
,
Object
>>
getLoginUserDetails
(
AgencyUserModel
user
);
List
<
Map
<
String
,
Object
>>
getLoginUserDetails
(
String
userId
);
List
<
OrgUsr
>
getPersonListByParentId
(
Long
id
);
List
<
OrgUsr
>
getPersonListByParentId
(
Long
id
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
d3297dc5
...
@@ -402,10 +402,13 @@ public class OrgUsrController extends BaseController {
...
@@ -402,10 +402,13 @@ public class OrgUsrController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getLoginUserDetails"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getLoginUserDetails"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取登陆人绑定的人员关系"
,
notes
=
"获取登陆人绑定的人员关系"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取登陆人绑定的人员关系"
,
notes
=
"获取登陆人绑定的人员关系"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getLoginUserDetails
()
{
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getLoginUserDetails
(
@RequestParam
(
value
=
"userId"
,
required
=
false
)
String
userId
)
{
// 获取登陆人角色
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
List
<
Map
<
String
,
Object
>>
loginUserDetails
=
iOrgUsrService
.
getLoginUserDetails
(
user
);
String
userIds
=
userId
;
if
(
StringUtils
.
isEmpty
(
userIds
))
{
userIds
=
user
.
getUserId
();
}
List
<
Map
<
String
,
Object
>>
loginUserDetails
=
iOrgUsrService
.
getLoginUserDetails
(
userIds
);
return
ResponseHelper
.
buildResponse
(
loginUserDetails
);
return
ResponseHelper
.
buildResponse
(
loginUserDetails
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
d3297dc5
...
@@ -1348,10 +1348,10 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -1348,10 +1348,10 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getLoginUserDetails
(
AgencyUserModel
user
)
{
public
List
<
Map
<
String
,
Object
>>
getLoginUserDetails
(
String
userId
)
{
// 获取登陆人关联账号
// 获取登陆人关联账号
List
<
OrgUsr
>
orgUsrs
=
orgUsrList
(
user
);
List
<
OrgUsr
>
orgUsrs
=
getUsrList
(
userId
);
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
orgUsrs
))
{
if
(!
ObjectUtils
.
isEmpty
(
orgUsrs
))
{
orgUsrs
.
forEach
(
orgUsr
->
{
orgUsrs
.
forEach
(
orgUsr
->
{
...
@@ -1370,6 +1370,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -1370,6 +1370,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
return
list
;
return
list
;
}
}
/**
* 获取登陆人关联账号
*/
private
List
<
OrgUsr
>
getUsrList
(
String
userId
)
{
// 获取登陆人角色
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
OrgUsr:
:
getIsDelete
,
false
);
wrapper
.
eq
(
OrgUsr:
:
getAmosOrgId
,
userId
);
wrapper
.
eq
(
OrgUsr:
:
getBizOrgType
,
OrgPersonEnum
.
人员
.
getKey
());
List
<
OrgUsr
>
orgUsrList
=
this
.
baseMapper
.
selectList
(
wrapper
);
return
orgUsrList
;
}
}
}
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