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
d4c04e2a
Commit
d4c04e2a
authored
Jan 17, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已离职成员激活账号
parent
e7c1dd55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+2
-0
StaffServiceImpl.java
.../haoban/manage/service/service/impl/StaffServiceImpl.java
+3
-0
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+10
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
d4c04e2a
...
@@ -22,6 +22,8 @@ public interface StaffMapper {
...
@@ -22,6 +22,8 @@ public interface StaffMapper {
TabHaobanStaff
selectByUserIdAndEnterpriseId
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
TabHaobanStaff
selectByUserIdAndEnterpriseId
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
TabHaobanStaff
getDeleteUser
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
)
;
List
<
TabHaobanStaff
>
listByUserIdsAndWxEnterpriseId
(
@Param
(
"userIds"
)
List
<
String
>
userIds
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
List
<
TabHaobanStaff
>
listByUserIdsAndWxEnterpriseId
(
@Param
(
"userIds"
)
List
<
String
>
userIds
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffServiceImpl.java
View file @
d4c04e2a
...
@@ -223,6 +223,9 @@ public class StaffServiceImpl implements StaffService {
...
@@ -223,6 +223,9 @@ public class StaffServiceImpl implements StaffService {
Date
start
=
new
Date
(
item
.
getActiveTime
()*
1000L
)
;
Date
start
=
new
Date
(
item
.
getActiveTime
()*
1000L
)
;
Date
end
=
new
Date
(
item
.
getExpireTime
()*
1000L
)
;
Date
end
=
new
Date
(
item
.
getExpireTime
()*
1000L
)
;
TabHaobanStaff
staff
=
this
.
mapper
.
selectByUserIdAndEnterpriseId
(
userId
,
wxEnterpriseId
)
;
TabHaobanStaff
staff
=
this
.
mapper
.
selectByUserIdAndEnterpriseId
(
userId
,
wxEnterpriseId
)
;
if
(
null
==
staff
&&
end
.
getTime
()>
System
.
currentTimeMillis
())
{
staff
=
this
.
mapper
.
getDeleteUser
(
userId
,
wxEnterpriseId
)
;
}
if
(
null
!=
staff
)
{
if
(
null
!=
staff
)
{
this
.
updateActiveStatusById
(
staff
.
getStaffId
(),
start
,
end
,
new
Date
(),
1
)
;
this
.
updateActiveStatusById
(
staff
.
getStaffId
(),
start
,
end
,
new
Date
(),
1
)
;
}
else
{
}
else
{
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
d4c04e2a
...
@@ -349,6 +349,16 @@
...
@@ -349,6 +349,16 @@
and wx_enterprise_id = #{wxEnterpriseId}
and wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1 limit 1
and status_flag = 1 limit 1
</select>
</select>
<select
id=
"getDeleteUser"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff
where (wx_user_id = #{userId,jdbcType=VARCHAR} or wx_open_user_id = #{userId,jdbcType=VARCHAR})
and wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 0 order by create_time desc limit 1
</select>
<select
id=
"listByUserIdsAndWxEnterpriseId"
resultMap=
"BaseResultMap"
>
<select
id=
"listByUserIdsAndWxEnterpriseId"
resultMap=
"BaseResultMap"
>
select
select
...
...
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