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
128df5d5
Commit
128df5d5
authored
Aug 23, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区间删导购
parent
20b4f4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+6
-6
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
128df5d5
...
...
@@ -533,7 +533,7 @@ public class WxStaffController extends WebBaseController {
// 删除店员
@HttpLimit
@RequestMapping
(
"/staff-del"
)
public
HaobanResponse
staffDel
(
String
wxEnterpriseId
,
String
storeId
,
String
clerkIds
,
String
staffId
)
{
public
HaobanResponse
staffDel
(
String
wxEnterpriseId
,
String
storeId
1
,
String
clerkIds
,
String
staffId
)
{
if
(
StringUtils
.
isAnyBlank
(
clerkIds
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
...
...
@@ -547,7 +547,7 @@ public class WxStaffController extends WebBaseController {
logger
.
info
(
"导购不存在"
,
clerkId
);
continue
;
}
com
.
gic
.
enterprise
.
api
.
dto
.
StoreDTO
store
=
storeService
.
getStoreByIdNoStatus
(
storeId
);
com
.
gic
.
enterprise
.
api
.
dto
.
StoreDTO
store
=
storeService
.
getStoreByIdNoStatus
(
clerkDTO
.
getStoreId
()
);
AuditDTO
auditDTO
=
auditApiService
.
findByBindRelatedIdAndAuditType
(
clerkId
,
AuditType
.
CLERK_DEL
.
getCode
(),
wxEnterpriseId
,
store
.
getEnterpriseId
());
if
(
auditDTO
!=
null
)
{
...
...
@@ -559,7 +559,7 @@ public class WxStaffController extends WebBaseController {
audit
.
setCommitStaffName
(
staff
.
getStaffName
());
audit
.
setCommitStaffId
(
staffId
);
audit
.
setCommitStaffImg
(
staff
.
getHeadImg
());
audit
.
setCommitStoreId
(
storeId
);
audit
.
setCommitStoreId
(
clerkDTO
.
getStoreId
()
);
audit
.
setCommitStoreName
(
store
.
getStoreName
());
audit
.
setAuditStatus
(
AuditStatus
.
NO_AUDIT
.
getCode
());
audit
.
setWxEnterpriseId
(
wxEnterpriseId
);
...
...
@@ -587,19 +587,19 @@ public class WxStaffController extends WebBaseController {
logger
.
info
(
"导购不存在:{}"
,
clerkId
);
continue
;
}
if
(
distributeApiService
.
getClerkMemberCount
(
clerkDTO
.
getEnterpriseId
(),
clerkId
,
storeId
)
==
0
)
{
if
(
distributeApiService
.
getClerkMemberCount
(
clerkDTO
.
getEnterpriseId
(),
clerkId
,
clerkDTO
.
getStoreId
()
)
==
0
)
{
if
(
clerkDTO
.
getClerkType
()
==
1
)
{
logger
.
info
(
"店长不能删除:{}"
,
clerkId
);
continue
;
}
}
com
.
gic
.
enterprise
.
api
.
dto
.
StoreDTO
store
=
storeService
.
getStoreByIdNoStatus
(
storeId
);
com
.
gic
.
enterprise
.
api
.
dto
.
StoreDTO
store
=
storeService
.
getStoreByIdNoStatus
(
clerkDTO
.
getStoreId
()
);
StaffDTO
staff
=
staffApiService
.
selectById
(
staffId
);
AuditDTO
audit
=
new
AuditDTO
();
audit
.
setCommitStaffName
(
staff
.
getStaffName
());
audit
.
setCommitStaffId
(
staffId
);
audit
.
setCommitStaffImg
(
staff
.
getHeadImg
());
audit
.
setCommitStoreId
(
storeId
);
audit
.
setCommitStoreId
(
clerkDTO
.
getStoreId
()
);
audit
.
setCommitStoreName
(
store
.
getStoreName
());
audit
.
setAuditStatus
(
AuditStatus
.
NOT_NEED_AUDIT
.
getCode
());
audit
.
setWxEnterpriseId
(
wxEnterpriseId
);
...
...
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