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
829a77d0
Commit
829a77d0
authored
Jun 05, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
0d7d9e2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
16 deletions
+23
-16
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+23
-16
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
829a77d0
...
...
@@ -25,6 +25,7 @@ import com.gic.haoban.communicate.api.service.SyncHaobanToGicServiceApi;
import
com.gic.haoban.manage.api.dto.AuditDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.enums.AuditRsultType
;
import
com.gic.haoban.manage.api.enums.AuditType
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
...
...
@@ -210,25 +211,31 @@ public class AuditController extends WebBaseController{
if
(
audit
.
getAuditType
()
==
AuditType
.
CLERK_BIND
.
getCode
()){
//导购绑定
StaffClerkRelationDTO
staffClerkRelation
=
staffClerkRelationApiService
.
getByCodeAndEnterpriseId
(
clerkCode
,
enterpriseId
);
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerk
Id
);
if
(
clerkDTO
==
null
){
StaffClerkRelationDTO
have
=
staffClerkRelationApiService
.
getOneByStoreIdAndStaffId
(
storeId
,
auditStaff
Id
);
if
(
have
!=
null
){
audit
.
setAuditStatus
(
5
);
audit
.
setAuditReason
(
"
gic已删除该导购
"
);
audit
.
setAuditReason
(
"
该成员在该门店下已经绑定过一个导购了
"
);
}
else
{
if
(
staffClerkRelation
==
null
){
staffClerkRelation
=
new
StaffClerkRelationDTO
();
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
==
null
){
audit
.
setAuditStatus
(
5
);
audit
.
setAuditReason
(
"gic已删除该导购"
);
}
else
{
if
(
staffClerkRelation
==
null
){
staffClerkRelation
=
new
StaffClerkRelationDTO
();
}
staffClerkRelation
.
setEnterpriseId
(
enterpriseId
);
staffClerkRelation
.
setClerkCode
(
clerkCode
);
staffClerkRelation
.
setClerkId
(
clerkId
);
staffClerkRelation
.
setStoreId
(
storeId
);
staffClerkRelation
.
setWxEnterpriseId
(
wxEnterpriseId
);
staffClerkRelation
.
setWxUserId
(
wxUserId
);
staffClerkRelation
.
setStaffId
(
auditStaffId
);
staffClerkRelationApiService
.
insertOrUpdate
(
staffClerkRelation
);
audit
.
setAuditStatus
(
1
);
//发送消息
staffDepartmentRelatedApiService
.
sendClerkBind
(
clerkId
,
clerkCode
,
auditStatus
,
auditReason
);
}
staffClerkRelation
.
setEnterpriseId
(
enterpriseId
);
staffClerkRelation
.
setClerkCode
(
clerkCode
);
staffClerkRelation
.
setClerkId
(
clerkId
);
staffClerkRelation
.
setStoreId
(
storeId
);
staffClerkRelation
.
setWxEnterpriseId
(
wxEnterpriseId
);
staffClerkRelation
.
setWxUserId
(
wxUserId
);
staffClerkRelation
.
setStaffId
(
auditStaffId
);
staffClerkRelationApiService
.
insertOrUpdate
(
staffClerkRelation
);
audit
.
setAuditStatus
(
1
);
//发送消息
staffDepartmentRelatedApiService
.
sendClerkBind
(
clerkId
,
clerkCode
,
auditStatus
,
auditReason
);
}
}
if
(
audit
.
getAuditType
()
==
AuditType
.
CLERK_ADD
.
getCode
()){
...
...
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