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
1f84b6a7
Commit
1f84b6a7
authored
Dec 09, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据amos userid模糊匹配获取对应机场单位人员信息列表 接口
parent
0d7d9a5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+15
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+9
-0
No files found.
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 @
1f84b6a7
...
...
@@ -583,4 +583,18 @@ public class OrgUsrController extends BaseController {
public
ResponseModel
<
List
<
OrgUsr
>>
getPersonListByCompanyId
(
@PathVariable
String
companyId
)
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getPersonListByCompanyId
(
companyId
));
}
/**
* 根据id获取单位人员列表
*
* @param amosUserId
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getOrgUser/byAmosUserId"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据amos userid模糊匹配获取对应机场单位人员信息列表"
,
notes
=
"根据amos userid模糊匹配获取对应机场单位人员信息列表"
)
public
ResponseModel
<
Object
>
getOrgUserByAmosUserId
(
@RequestParam
String
amosUserId
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getOrgUserByAmosUserId
(
amosUserId
));
}
}
\ No newline at end of file
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 @
1f84b6a7
...
...
@@ -77,6 +77,7 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
ch.qos.logback.core.joran.conditional.IfAction
;
import
net.bytebuddy.asm.Advice.This
;
/**
* 机构/部门/人员表 服务实现类
...
...
@@ -2055,4 +2056,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
jsonObject
.
put
(
"map"
,
collect
);
return
jsonObject
;
}
public
Object
getOrgUserByAmosUserId
(
String
amosUserId
)
throws
Exception
{
LambdaQueryWrapper
<
OrgUsr
>
wrapper
=
new
LambdaQueryWrapper
<
OrgUsr
>();
wrapper
.
eq
(
OrgUsr:
:
getIsDelete
,
false
);
wrapper
.
eq
(
OrgUsr:
:
getBizOrgType
,
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
wrapper
.
like
(
StringUtils
.
isNotBlank
(
amosUserId
),
OrgUsr:
:
getAmosOrgId
,
amosUserId
);
return
this
.
baseMapper
.
selectList
(
wrapper
);
}
}
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