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
fc6a2d8f
Commit
fc6a2d8f
authored
Jun 20, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管
parent
0da3d7dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
OpenStaffServiceImpl.java
...ban/manage/service/service/impl/OpenStaffServiceImpl.java
+10
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/OpenStaffServiceImpl.java
View file @
fc6a2d8f
...
@@ -17,8 +17,11 @@ import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
...
@@ -17,8 +17,11 @@ import com.gic.haoban.manage.api.dto.StaffClerkRelationDTO;
import
com.gic.haoban.manage.api.dto.StoreClerkDTO
;
import
com.gic.haoban.manage.api.dto.StoreClerkDTO
;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.api.qdto.OpenStaffPageQDTO
;
import
com.gic.haoban.manage.api.service.notify.NoticeMessageApiService
;
import
com.gic.haoban.manage.api.util.notify.NoticeMessageUtil
;
import
com.gic.haoban.manage.api.util.notify.NoticeMessageUtil
;
import
com.gic.haoban.manage.service.dao.mapper.OpenStaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.OpenStaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.TabOpenStaff
;
import
com.gic.haoban.manage.service.entity.TabOpenStaff
;
import
com.gic.haoban.manage.service.service.OpenStaffService
;
import
com.gic.haoban.manage.service.service.OpenStaffService
;
import
com.gic.haoban.manage.service.service.StaffClerkRelationService
;
import
com.gic.haoban.manage.service.service.StaffClerkRelationService
;
...
@@ -49,6 +52,10 @@ public class OpenStaffServiceImpl implements OpenStaffService {
...
@@ -49,6 +52,10 @@ public class OpenStaffServiceImpl implements OpenStaffService {
private
StoreService
storeService
;
private
StoreService
storeService
;
@Autowired
@Autowired
private
ClerkService
clerkService
;
private
ClerkService
clerkService
;
@Autowired
private
NoticeMessageApiService
noticeMessageApiService
;
@Autowired
private
StaffMapper
staffMapper
;
@Override
@Override
public
TabOpenStaff
save
(
TabOpenStaff
tab
)
{
public
TabOpenStaff
save
(
TabOpenStaff
tab
)
{
...
@@ -96,11 +103,13 @@ public class OpenStaffServiceImpl implements OpenStaffService {
...
@@ -96,11 +103,13 @@ public class OpenStaffServiceImpl implements OpenStaffService {
// 发送通知
// 发送通知
if
(
StringUtils
.
isNotBlank
(
noticeReason
))
{
if
(
StringUtils
.
isNotBlank
(
noticeReason
))
{
log
.
info
(
"发送退出登录通知,staffId={}"
,
openStaff
.
getStaffId
());
log
.
info
(
"发送退出登录通知,staffId={}"
,
openStaff
.
getStaffId
());
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
openStaff
.
getStaffId
())
;
this
.
noticeMessageApiService
.
sendMessageForOpenStaff
(
openStaff
.
getEnterpriseId
(),
staff
.
getStaffName
()
,
noticeReason
);
// 发送通知
// 发送通知
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"reason"
,
noticeReason
);
map
.
put
(
"reason"
,
noticeReason
);
int
messageType
=
NoticeMessageTypeEnum
.
HAOBAN_OPEN_STAFF_LOGOUT
.
getType
();
int
messageType
=
NoticeMessageTypeEnum
.
HAOBAN_OPEN_STAFF_LOGOUT
.
getType
();
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
openStaff
.
getEnterpriseId
(),
openStaff
.
getStaffId
(),
null
,
messageType
,
null
,
map
,
null
);
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
openStaff
.
getEnterpriseId
(),
openStaff
.
getStaffId
(),
"-1"
,
messageType
,
null
,
map
,
null
);
}
}
}
}
...
...
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