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
ada001db
Commit
ada001db
authored
Oct 25, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增人员信息查询接口
parent
ce18026f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+3
-1
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+7
-1
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+11
-0
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 @
ada001db
...
...
@@ -386,7 +386,7 @@ public interface IOrgUsrService {
* @return
*/
String
deleteFirefighterPeopleById
(
Long
id
,
String
type
);
OrgUsr
selectParentOrgUsr
(
OrgUsr
orgUsr
);
List
<
OrgMenuDto
>
companyUserTreeByUserAndType
(
ReginParams
reginParams
);
...
...
@@ -413,4 +413,6 @@ public interface IOrgUsrService {
IPage
<
Map
<
String
,
Object
>>
queryPersonPage
(
IPage
<
Map
<
String
,
Object
>>
page
,
String
bizOrgCode
,
String
peopleTypeCode
);
IPage
<
Map
<
String
,
Object
>>
getCenterPersonInfoPage
(
IPage
<
Map
<
String
,
Object
>>
page
,
String
bizOrgCode
,
String
stationType
);
OrgUsr
getByAmosOrgId
(
String
amosOrgId
);
}
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 @
ada001db
...
...
@@ -1296,5 +1296,10 @@ public class OrgUsrController extends BaseController {
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getUnitByOrgCode
(
bizOrgCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据amosOrgId查询"
,
notes
=
"根据amosOrgId查询"
)
@GetMapping
(
value
=
"/find/amos-org/id/{amosOrgId}"
)
public
ResponseModel
<
OrgUsr
>
getByAmosOrgId
(
@PathVariable
(
"amosOrgId"
)
String
amosOrgId
)
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getByAmosOrgId
(
amosOrgId
));
}
}
\ 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 @
ada001db
...
...
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.base.Joiner
;
import
com.google.common.collect.Lists
;
...
...
@@ -3929,4 +3930,13 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
IPage
<
Map
<
String
,
Object
>>
iPage
=
this
.
baseMapper
.
getCenterPersonInfoPage
(
page
,
bizOrgCode
,
stationType
);
return
iPage
;
}
@Override
public
OrgUsr
getByAmosOrgId
(
String
amosOrgId
)
{
return
this
.
baseMapper
.
selectOne
(
Wrappers
.<
OrgUsr
>
lambdaQuery
()
.
eq
(
OrgUsr:
:
getAmosOrgId
,
amosOrgId
)
.
eq
(
OrgUsr:
:
getIsDelete
,
false
)
);
}
}
\ 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