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
d73b5685
Commit
d73b5685
authored
Dec 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每日处理群主离职
parent
45e3478d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+3
-1
GroupChatOwnerMapper.xml
...e/src/main/resources/mapper/chat/GroupChatOwnerMapper.xml
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
d73b5685
...
...
@@ -370,7 +370,9 @@ public class GroupChatServiceImpl implements GroupChatService {
@Override
public
void
ownerDimission
(
String
staffId
)
{
logger
.
info
(
"群主离职,刷新群状态,staffId={}"
,
staffId
);
if
(
null
!=
this
.
groupChatOwnerMapper
.
selectByStaffId
(
staffId
))
{
TabGroupChatOwner
owner
=
this
.
groupChatOwnerMapper
.
selectByStaffId
(
staffId
)
;
if
(
null
!=
owner
)
{
this
.
groupChatOwnerMapper
.
updateChatCount
(
staffId
,
owner
.
getChatCount
())
;
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
);
this
.
dimissionOwner
(
staff
.
getWxEnterpriseId
(),
staff
.
getWxUserId
(),
staff
.
getWxOpenUseId
());
}
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatOwnerMapper.xml
View file @
d73b5685
...
...
@@ -82,7 +82,7 @@
SELECT a.staff_id staffId , b.`staff_name` staffName , a.wx_enterprise_id wxEnterpriseId ,
b.wx_user_id wxUserId , b.wx_open_user_id wxOpenUserId
FROM tab_haoban_group_chat_owner a LEFT JOIN tab_haoban_staff b ON a.`staff_id` = b.`staff_id`
where
b.status_flag = 0 and b.update_time > DATE_ADD(CURDATE(), INTERVAL -1 DAY)
where
a.update_time > DATE_ADD(CURDATE(), INTERVAL -1 DAY) and b.status_flag = 0
</select>
</mapper>
\ No newline at end of file
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