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
8dc9932d
Commit
8dc9932d
authored
Nov 18, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门管理 新增、修改、查看 人员下拉框获取单位下所有人员
parent
bf1bf8d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+1
-1
OrgServiceImpl.java
...amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
+12
-4
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
8dc9932d
...
@@ -253,7 +253,7 @@ public class ProjectController extends BaseController {
...
@@ -253,7 +253,7 @@ public class ProjectController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询下拉选择框的值"
,
notes
=
"查询下拉选择框的值"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询下拉选择框的值"
,
notes
=
"查询下拉选择框的值"
)
@GetMapping
(
value
=
"/getCharge"
)
@GetMapping
(
value
=
"/getCharge"
)
public
ResponseModel
<
List
<
OrgUsr
>>
getCharge
(){
public
ResponseModel
<
List
<
List
<
OrgUsr
>
>>
getCharge
(){
return
ResponseHelper
.
buildResponse
(
orgServiceImpl
.
getCharge
());
return
ResponseHelper
.
buildResponse
(
orgServiceImpl
.
getCharge
());
}
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
View file @
8dc9932d
...
@@ -376,11 +376,19 @@ public class OrgServiceImpl {
...
@@ -376,11 +376,19 @@ public class OrgServiceImpl {
* @return
* @return
*/
*/
@BusinessIdentify
@BusinessIdentify
public
List
<
OrgUsr
>
getCharge
(){
public
List
<
List
<
OrgUsr
>>
getCharge
()
{
List
<
List
<
OrgUsr
>>
orgUsrs
=
new
ArrayList
<>();
LambdaQueryWrapper
<
OrgUsr
>
personWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OrgUsr
>
personWrapper
=
new
LambdaQueryWrapper
<>();
personWrapper
.
eq
(
OrgUsr:
:
getParentId
,
String
.
valueOf
(
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
()))
//获取单位下人员
.
eq
(
OrgUsr
::
getBizOrgType
,
OrgEnum
.
普通人员
.
getKey
());
personWrapper
.
eq
(
OrgUsr:
:
getParentId
,
String
.
valueOf
(
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
()))
return
orgUsrServiceImpl
.
list
(
personWrapper
);
.
eq
(
OrgUsr:
:
getBizOrgType
,
OrgEnum
.
普通人员
.
getKey
());
orgUsrs
.
add
(
orgUsrServiceImpl
.
list
(
personWrapper
));
//获取单位下的部门人员
LambdaQueryWrapper
<
OrgUsr
>
lambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
lambdaQueryWrapper
.
eq
(
OrgUsr:
:
getParentId
,
String
.
valueOf
(
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
())).
eq
(
OrgUsr:
:
getBizOrgType
,
"DEPARTMENT"
);
orgUsrs
.
add
(
orgUsrServiceImpl
.
list
(
lambdaQueryWrapper
));
return
orgUsrs
;
}
}
/**
/**
...
...
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