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
512f3a44
Commit
512f3a44
authored
Jun 09, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
本地缓存
parent
8d2fe7df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+7
-0
StaffServiceImpl.java
.../haoban/manage/service/service/impl/StaffServiceImpl.java
+1
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+9
-0
InfoController.java
.../com/gic/haoban/manage/web/controller/InfoController.java
+4
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
512f3a44
...
...
@@ -93,4 +93,11 @@ public interface StaffApiService {
List
<
String
>
listBindClerkUserId
(
String
storeId
);
public
List
<
StaffClerkRelationDTO
>
listBindRelationUserId
(
String
storeId
);
/**
* 激活
* @param staffId
* @return
*/
public
boolean
activeStaff
(
String
staffId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffServiceImpl.java
View file @
512f3a44
...
...
@@ -66,6 +66,7 @@ public class StaffServiceImpl implements StaffService {
@Override
public
void
updateByPrimaryKey
(
TabHaobanStaff
tab
)
{
tab
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
tab
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
512f3a44
...
...
@@ -1460,6 +1460,15 @@ public class StaffApiServiceImpl implements StaffApiService {
return
bindList
;
}
@Override
public
boolean
activeStaff
(
String
staffId
)
{
TabHaobanStaff
staff
=
new
TabHaobanStaff
();
staff
.
setStaffId
(
staffId
);
staff
.
setActiveFlag
(
1
);
staffService
.
updateByPrimaryKey
(
staff
);
return
true
;
}
// private String getMobile(String phoneNumber,String nationcode){
// String mobile = nationcode + phoneNumber;
// return mobile;
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/InfoController.java
View file @
512f3a44
...
...
@@ -130,6 +130,10 @@ public class InfoController extends WebBaseController{
}
}
//激活状态
if
(
loginStaff
.
getActiveFlag
()==
0
)
{
staffApiService
.
activeStaff
(
loginStaff
.
getStaffId
());
}
String
wxEnterpriseId
=
loginStaff
.
getWxEnterpriseId
();
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
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