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
70e59060
Commit
70e59060
authored
Nov 09, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购解绑
parent
3c031fc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+1
-1
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+1
-1
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+4
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
70e59060
...
...
@@ -107,7 +107,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
public
boolean
delBind
(
String
oldClerkId
,
String
optStaffId
,
int
channelCode
,
String
newClerkId
,
String
wxEnterpriseId
)
{
boolean
changeClerkFlag
=
StringUtils
.
isNotEmpty
(
newClerkId
)
;
logger
.
info
(
"导购解绑/换导购={},oldClerkId={},optStaffId={}"
,
changeClerkFlag
,
oldClerkId
,
optStaffId
);
if
(
StringUtils
.
isNotEmpty
(
optStaffId
)
&&
"-1"
.
equals
(
optStaffId
))
{
if
(
StringUtils
.
isNotEmpty
(
optStaffId
)
&&
!
"-1"
.
equals
(
optStaffId
))
{
TabHaobanStaff
staff
=
this
.
staffService
.
selectById
(
optStaffId
)
;
if
(
null
!=
staff
)
{
wxEnterpriseId
=
staff
.
getWxEnterpriseId
()
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
70e59060
...
...
@@ -395,7 +395,7 @@ public class MessageApiServiceImpl implements MessageApiService {
.
listByStaffId
(
wxEnterpriseId
,
staffId
);
if
(
CollectionUtils
.
isNotEmpty
(
staffClerkRelationDTOS
))
{
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
staffClerkRelationDTOS
)
{
staffClerkRelationApiService
.
unbindByStaffAndClerkId
(
staffId
,
staffClerkRelationDTO
.
getClerkId
(),
staffClerkRelationApiService
.
unbindByStaffAndClerkId
(
"-1"
,
staffClerkRelationDTO
.
getClerkId
(),
ChannelCodeEnum
.
QW_DEL_UNBIND
.
getCode
(),
wxEnterpriseId
);
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
70e59060
...
...
@@ -22,6 +22,7 @@ import com.gic.haoban.manage.api.enums.ChannelCodeEnum;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanStaffClerkRelationMapper
;
import
com.gic.haoban.manage.service.entity.MemberClerkChatConfig
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
...
...
@@ -76,6 +77,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
private
HmQrcodeService
hmQrcodeService
;
@Autowired
private
StoreRangeService
storeRangeService
;
@Autowired
private
StaffMapper
staffMapper
;
@Override
public
void
bindLogMq
(
String
params
)
{
...
...
@@ -355,7 +358,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
Page
<
StaffClerkBindLogDetailDTO
>
retList
=
staffClerkBindLogService
.
pageBindLog
(
wxEnterpriseId
,
enterpriseId
,
optType
,
search
,
pageInfo
);
if
(
CollectionUtils
.
isNotEmpty
(
retList
.
getResult
()))
{
retList
.
getResult
().
forEach
(
item
->
{
TabHaobanStaff
haobanStaff
=
staff
Service
.
selectById
(
item
.
getStaffId
());
TabHaobanStaff
haobanStaff
=
staff
Mapper
.
selectByPrimaryKeyNoStatus
(
item
.
getStaffId
());
if
(
null
!=
haobanStaff
)
{
item
.
setStaffName
(
haobanStaff
.
getStaffName
());
item
.
setWxUserId
(
haobanStaff
.
getWxUserId
());
...
...
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