Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
239c4d57
Commit
239c4d57
authored
May 24, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug_0525' into developer
parents
96fff103
9de29aef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+1
-1
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+8
-1
No files found.
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
239c4d57
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
<select
id=
"pageStaff"
resultMap=
"BaseResultMap"
>
<select
id=
"pageStaff"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
a.*
from tab_haoban_staff a
from tab_haoban_staff a
left join tab_haoban_staff_department_related b on a.staff_id = b.staff_id
left join tab_haoban_staff_department_related b on a.staff_id = b.staff_id
where a.status_flag = 1 and a.wx_enterprise_id = #{wxEnterpriseId}
where a.status_flag = 1 and a.wx_enterprise_id = #{wxEnterpriseId}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
239c4d57
...
@@ -146,8 +146,15 @@ public class StaffController extends WebBaseController {
...
@@ -146,8 +146,15 @@ public class StaffController extends WebBaseController {
}
}
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
List
<
String
>
departmentIds
=
new
ArrayList
<>();
DepartmentDTO
departmentDTO
=
departmentApiService
.
selectById
(
departmentId
);
if
(
departmentDTO
!=
null
)
{
String
parentDepartmentId
=
departmentDTO
.
getParentDepartmentId
();
if
(!
"0"
.
equals
(
parentDepartmentId
))
{
// 部门
// 部门
List
<
String
>
departmentIds
=
departmentApiService
.
listSonDeptIdsByDepartmentId
(
departmentId
,
wxEnterpriseId
);
departmentIds
=
departmentApiService
.
listSonDeptIdsByDepartmentId
(
departmentId
,
wxEnterpriseId
);
}
}
//员工
//员工
Page
<
StaffDTO
>
page
=
staffApiService
.
pageStaff
(
departmentIds
,
activeFlag
,
keyWord
,
pageInfo
,
relationFlag
,
wxEnterpriseId
);
Page
<
StaffDTO
>
page
=
staffApiService
.
pageStaff
(
departmentIds
,
activeFlag
,
keyWord
,
pageInfo
,
relationFlag
,
wxEnterpriseId
);
...
...
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