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
ce4f4717
Commit
ce4f4717
authored
Oct 20, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:活码进行是否开启活码功能企业过滤
parent
50746122
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+19
-11
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
ce4f4717
...
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.gic.api.base.commons.Page
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.clerk.api.service.RightService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.common.utils.PageUtil
;
...
...
@@ -66,6 +67,8 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
private
MemberApiService
memberApiService
;
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
RightService
rightService
;
@Override
public
List
<
StaffClerkRelationDTO
>
listBindCode
(
String
wxEnterpriseId
,
String
enterpriseId
,
Set
<
String
>
clerkCodeList
)
{
...
...
@@ -167,23 +170,28 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
if
(
StringUtils
.
isNotBlank
(
staffClerkRelationId
))
{
String
wxEnterpriseId
=
dto
.
getWxEnterpriseId
();
Integer
manageFlag
=
dto
.
getManageFlag
();
String
enterpriseId
=
dto
.
getEnterpriseId
();
//导购和店长需要设置主门店
if
(
manageFlag
!=
null
&&
manageFlag
==
1
)
{
//do nothing
}
else
{
logger
.
info
(
"设置主门店并创建活码:manageFlag:{},staffId:{}"
,
manageFlag
,
staffId
);
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
staffId
,
wxEnterpriseId
);
// 绑定自动创建活码
HmQrcodeQDTO
hmQrcodeQDTO
=
new
HmQrcodeQDTO
();
hmQrcodeQDTO
.
setHmType
(
1
);
hmQrcodeQDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
hmQrcodeQDTO
.
setEnterpriseId
(
dto
.
getEnterpriseId
());
hmQrcodeQDTO
.
setName
(
tabHaobanStaff
.
getStaffName
());
hmQrcodeQDTO
.
setPassFlag
(
1
);
hmQrcodeQDTO
.
setStoreId
(
dto
.
getStoreId
());
hmQrcodeQDTO
.
setClerkIdList
(
Collections
.
singletonList
(
dto
.
getClerkId
()));
hmQrcodeQDTO
.
setInvokingType
(
channelCode
);
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
//有活码权限的企业
boolean
flag
=
rightService
.
hasRightForAdmin
(
enterpriseId
,
"hb_m0206"
);
if
(
flag
)
{
// 绑定自动创建活码
HmQrcodeQDTO
hmQrcodeQDTO
=
new
HmQrcodeQDTO
();
hmQrcodeQDTO
.
setHmType
(
1
);
hmQrcodeQDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
hmQrcodeQDTO
.
setEnterpriseId
(
enterpriseId
);
hmQrcodeQDTO
.
setName
(
tabHaobanStaff
.
getStaffName
());
hmQrcodeQDTO
.
setPassFlag
(
1
);
hmQrcodeQDTO
.
setStoreId
(
dto
.
getStoreId
());
hmQrcodeQDTO
.
setClerkIdList
(
Collections
.
singletonList
(
dto
.
getClerkId
()));
hmQrcodeQDTO
.
setInvokingType
(
channelCode
);
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
}
}
//推入日志
staffClerkBindLogService
.
pushToMq
(
staffId
,
optStaffId
,
BindTypeEnum
.
BIND
.
getVal
(),
channelCode
,
staffClerkRelationId
);
...
...
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