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
61879d6c
Commit
61879d6c
authored
Jun 03, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
e52bc609
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
32 deletions
+15
-32
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+10
-21
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+5
-11
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
61879d6c
...
...
@@ -216,32 +216,21 @@ public class AuditApiServiceImpl implements AuditApiService{
//门店导购新增
String
oldValue
=
tab
.
getOldValue
();
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
obj
.
getClerkId
());
if
(
clerkDTO
==
null
){
boolean
flag
=
syncHaobanToGicServiceApi
.
syncClerkToGicClerkAdd
(
tab
.
getCommitStoreId
(),
obj
.
getClerkCode
(),
obj
.
getSex
(),
obj
.
getStaffName
(),
obj
.
getPhoneNumber
(),
obj
.
getNationCode
(),
null
);
if
(!
flag
){
//失败
tab
.
setAuditStatus
(
5
);
tab
.
setAuditReason
(
"gic已删除该导购"
);
auditMapper
.
updateByPrimaryKeySelective
(
tab
);
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
AuditRsultType
.
fail
.
getCode
(),
tab
);
}
return
"0"
;
insertBatchLog
(
batchId
,
AuditRsultType
.
fail
.
getCode
(),
tab
);
return
"0"
;
}
}
else
{
boolean
flag
=
syncHaobanToGicServiceApi
.
syncClerkToGicClerkAdd
(
tab
.
getCommitStoreId
(),
obj
.
getClerkCode
(),
obj
.
getSex
(),
obj
.
getStaffName
(),
obj
.
getPhoneNumber
(),
obj
.
getNationCode
(),
null
);
if
(!
flag
){
//失败
tab
.
setAuditStatus
(
5
);
auditMapper
.
updateByPrimaryKeySelective
(
tab
);
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
AuditRsultType
.
fail
.
getCode
(),
tab
);
return
"0"
;
}
}
else
{
//成功
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
1
,
tab
);
}
staffDepartmentRelatedApiService
.
sendClerkAdd
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
1
,
""
);
//成功
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
1
,
tab
);
}
staffDepartmentRelatedApiService
.
sendClerkAdd
(
obj
.
getClerkId
(),
obj
.
getClerkCode
(),
1
,
""
);
}
}
else
if
(
auditType
==
AuditType
.
CLERK_DEL
.
getCode
()){
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
61879d6c
...
...
@@ -231,18 +231,12 @@ public class AuditController extends WebBaseController{
}
if
(
audit
.
getAuditType
()
==
AuditType
.
CLERK_ADD
.
getCode
()){
//导购新增
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
==
null
){
audit
.
setAuditStatus
(
5
);
audit
.
setAuditReason
(
"gic已删除该导购"
);
}
else
{
boolean
flag
=
syncHaobanToGicServiceApi
.
syncClerkToGicClerkAdd
(
storeId
,
clerkCode
,
sex
,
staff
.
getStaffName
(),
phoneNumber
,
nationCode
,
null
);
if
(!
flag
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10010
);
}
audit
.
setAuditStatus
(
1
);
staffDepartmentRelatedApiService
.
sendClerkAdd
(
clerkId
,
clerkCode
,
auditStatus
,
auditReason
);
boolean
flag
=
syncHaobanToGicServiceApi
.
syncClerkToGicClerkAdd
(
storeId
,
clerkCode
,
sex
,
staff
.
getStaffName
(),
phoneNumber
,
nationCode
,
null
);
if
(!
flag
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10010
);
}
audit
.
setAuditStatus
(
1
);
staffDepartmentRelatedApiService
.
sendClerkAdd
(
clerkId
,
clerkCode
,
auditStatus
,
auditReason
);
}
if
(
audit
.
getAuditType
()
==
AuditType
.
CLERK_DEL
.
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