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
dd13c453
Commit
dd13c453
authored
Oct 26, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购绑定
parent
b13cbb04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+7
-7
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+0
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
dd13c453
...
...
@@ -303,18 +303,18 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
@Override
public
ServiceResponse
wxBindStaffClerk
(
StaffClerkRelationDTO
staffClerkRelation
,
String
optStaffId
,
int
channelCode
)
{
Integer
manageFlag
=
staffClerkRelation
.
getManageFlag
();
logger
.
info
(
"manageFlag={}"
,
manageFlag
);
if
(
manageFlag
!=
null
&&
manageFlag
.
intValue
()
==
1
)
{
ServiceResponse
serviceResponse
=
getManageFlagBind
(
staffClerkRelation
);
if
(!
serviceResponse
.
isSuccess
())
{
return
serviceResponse
;
}
}
String
staffId
=
staffClerkRelation
.
getStaffId
();
List
<
StaffClerkRelationDTO
>
staffClerkRelationDTOS
=
staffClerkRelationService
.
listManageBindByStaffId
(
staffId
);
if
(
CollectionUtils
.
isNotEmpty
(
staffClerkRelationDTOS
))
{
logger
.
info
(
"该导购已绑定区经,不允许绑定导购"
);
return
ServiceResponse
.
failure
(
"3"
,
"该导购已绑定区经,不允许绑定导购"
);
}
else
{
String
staffId
=
staffClerkRelation
.
getStaffId
();
List
<
StaffClerkRelationDTO
>
staffClerkRelationDTOS
=
staffClerkRelationService
.
listManageBindByStaffId
(
staffId
);
if
(
CollectionUtils
.
isNotEmpty
(
staffClerkRelationDTOS
))
{
logger
.
info
(
"该导购已绑定区经,不允许绑定导购"
);
return
ServiceResponse
.
failure
(
"3"
,
"该导购已绑定区经,不允许绑定导购"
);
}
}
if
(
StringUtils
.
isNotBlank
(
staffClerkRelation
.
getStaffClerkRelationId
()))
{
TabHaobanStaffClerkRelation
oldStaffClerkRelation
=
tabHaobanStaffClerkRelationMapper
.
selectByPrimaryKey
(
staffClerkRelation
.
getStaffClerkRelationId
());
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
dd13c453
...
...
@@ -959,11 +959,6 @@ public class WxStaffController extends WebBaseController {
StaffClerkRelationDTO
staffClerkRelation
=
staffClerkRelationApiService
.
getByCodeAndEnterpriseId
(
clerkId
,
enterpriseId
);
if
(
null
!=
staffClerkRelation
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_DEFINE
,
"此导购已绑定成员"
,
null
,
"此导购已绑定成员"
);
}
if
(
auditType
==
2
)
{
// 无需审核
if
(
staffClerkRelation
==
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