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
7388d94a
Commit
7388d94a
authored
Feb 26, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
eb33fd2f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
2 deletions
+24
-2
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+2
-0
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+3
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+6
-0
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+11
-0
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+2
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
7388d94a
...
...
@@ -12,6 +12,8 @@ public interface StaffApiService {
public
StaffDTO
selectById
(
String
staffId
);
public
StaffDTO
selectSuperByWxEnterpriseId
(
String
wxEnterpriseId
);
public
List
<
StaffDTO
>
listByIds
(
List
<
String
>
staffIds
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
7388d94a
...
...
@@ -28,4 +28,6 @@ public interface StaffMapper {
Page
<
TabHaobanStaff
>
pageStaff
(
@Param
(
"staffIds"
)
Set
<
String
>
staffIds
,
@Param
(
"activeFlag"
)
Integer
activeFlag
,
@Param
(
"keyword"
)
String
keyword
);
TabHaobanStaff
selectByUserId
(
@Param
(
"userId"
)
String
userId
);
TabHaobanStaff
selectSuperByWxEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
7388d94a
...
...
@@ -382,4 +382,10 @@ public class StaffApiServiceImpl implements StaffApiService {
return
staffDepartmentRelatedService
.
countByDepartmentId
(
departmentId
);
}
@Override
public
StaffDTO
selectSuperByWxEnterpriseId
(
String
wxEnterpriseId
)
{
TabHaobanStaff
tab
=
staffMapper
.
selectSuperByWxEnterpriseId
(
wxEnterpriseId
);
return
EntityUtil
.
changeEntityByJSON
(
StaffDTO
.
class
,
tab
);
}
}
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
7388d94a
...
...
@@ -290,4 +290,14 @@
where wx_user_id = #{userId,jdbcType=VARCHAR}
and status_flag = 1
</select>
<select
id=
"selectSuperByWxEnterpriseId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff
where status_flag = 1
and wx_enterprise_id = #{wxEnterpriseId}
and super_manager_flag = 1
</select>
</mapper>
\ No newline at end of file
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
7388d94a
...
...
@@ -106,8 +106,8 @@ public class LoginController extends WebBaseController{
@RequestMapping
(
"yw-login"
)
public
void
ywLogin
(
String
wxEnterpriseId
,
HttpServletResponse
response
)
{
//TODO 获取超级管理员账号接口
StaffDTO
staff
=
staffApiService
.
selectById
(
"1"
);
StaffDTO
staff
=
staffApiService
.
selectSuperByWxEnterpriseId
(
wxEnterpriseId
);
//
StaffDTO staff = staffApiService.selectById("1");
LoginVO
loginVO
=
new
LoginVO
();
loginVO
.
setWxEnterpriseId
(
wxEnterpriseId
);
loginVO
.
setStaffDTO
(
staff
);
...
...
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