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
27f81b1a
Commit
27f81b1a
authored
May 28, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
1537c818
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+8
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
27f81b1a
...
@@ -160,6 +160,7 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -160,6 +160,7 @@ public class AuditApiServiceImpl implements AuditApiService{
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
}
}
}
else
if
(
auditType
==
AuditType
.
CLERK_BIND
.
getCode
()){
}
else
if
(
auditType
==
AuditType
.
CLERK_BIND
.
getCode
()){
//门店导购绑定
String
oldValue
=
tab
.
getOldValue
();
String
oldValue
=
tab
.
getOldValue
();
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
StaffClerkRelationDTO
staffClerkRelation
=
staffClerkRelationApiService
.
getByCodeAndEnterpriseId
(
obj
.
getClerkCode
(),
tab
.
getEnterpriseId
());
StaffClerkRelationDTO
staffClerkRelation
=
staffClerkRelationApiService
.
getByCodeAndEnterpriseId
(
obj
.
getClerkCode
(),
tab
.
getEnterpriseId
());
...
@@ -176,31 +177,33 @@ public class AuditApiServiceImpl implements AuditApiService{
...
@@ -176,31 +177,33 @@ public class AuditApiServiceImpl implements AuditApiService{
staffClerkRelation
.
setWxUserId
(
obj
.
getWxUserId
());
staffClerkRelation
.
setWxUserId
(
obj
.
getWxUserId
());
staffClerkRelationApiService
.
insert
(
staffClerkRelation
);
staffClerkRelationApiService
.
insert
(
staffClerkRelation
);
}
}
//门店导购绑定
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
}
}
}
else
if
(
auditType
==
AuditType
.
CLERK_ADD
.
getCode
()){
}
else
if
(
auditType
==
AuditType
.
CLERK_ADD
.
getCode
()){
//门店导购新增
String
oldValue
=
tab
.
getOldValue
();
String
oldValue
=
tab
.
getOldValue
();
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
boolean
flag
=
syncHaobanToGicServiceApi
.
syncClerkToGicClerkAdd
(
tab
.
getCommitStoreId
(),
obj
.
getClerkCode
(),
obj
.
getSex
(),
obj
.
getStaffName
(),
obj
.
getPhoneNumber
(),
obj
.
getNationCode
(),
null
);
boolean
flag
=
syncHaobanToGicServiceApi
.
syncClerkToGicClerkAdd
(
tab
.
getCommitStoreId
(),
obj
.
getClerkCode
(),
obj
.
getSex
(),
obj
.
getStaffName
(),
obj
.
getPhoneNumber
(),
obj
.
getNationCode
(),
null
);
if
(!
flag
){
if
(!
flag
){
//
门店导购新增
//
失败
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
AuditRsultType
.
fail
.
getCode
(),
tab
);
insertBatchLog
(
batchId
,
AuditRsultType
.
fail
.
getCode
(),
tab
);
return
"0"
;
return
"0"
;
}
}
}
}
else
{
//门店导购新增
//成功
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
1
,
tab
);
insertBatchLog
(
batchId
,
1
,
tab
);
}
}
}
}
else
if
(
auditType
==
AuditType
.
CLERK_DEL
.
getCode
()){
}
else
if
(
auditType
==
AuditType
.
CLERK_DEL
.
getCode
()){
//门店导购删除
String
oldValue
=
tab
.
getOldValue
();
String
oldValue
=
tab
.
getOldValue
();
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
AuditStaffDTO
obj
=
JSONObject
.
parseObject
(
oldValue
,
AuditStaffDTO
.
class
);
syncHaobanToGicServiceApi
.
delGicClerk
(
obj
.
getClerkId
());
syncHaobanToGicServiceApi
.
delGicClerk
(
obj
.
getClerkId
());
//门店导购删除
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
batchId
)){
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
insertBatchLog
(
batchId
,
AuditRsultType
.
success
.
getCode
(),
tab
);
}
}
...
...
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