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
150c59d2
Commit
150c59d2
authored
Nov 26, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9347eb9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
FriendSyncOperation.java
...m/gic/haoban/manage/service/task/FriendSyncOperation.java
+3
-3
SelfFriendSyncOperation.java
...c/haoban/manage/service/task/SelfFriendSyncOperation.java
+3
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/FriendSyncOperation.java
View file @
150c59d2
...
...
@@ -61,7 +61,7 @@ public class FriendSyncOperation implements BaseSyncOperation {
String
externalUserId
=
dataPre
.
getDataContent
();
ExternalUserDTO
pojo
=
memberUnionidRelatedApiService
.
getExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserId
);
if
(
pojo
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"好友不存在"
);
preDealService
.
updateStatusByDataId
(
taskId
,
dataPre
.
getDataId
()
,
PreDealStatusEnum
.
exception
.
getVal
(),
"好友不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
...
...
@@ -69,7 +69,7 @@ public class FriendSyncOperation implements BaseSyncOperation {
json
.
put
(
"name"
,
pojo
.
getName
());
json
.
put
(
"externalUserId"
,
pojo
.
getExternalUserId
());
json
.
put
(
"addCreateTime"
,
pojo
.
getAddCreateTime
());
dealSuccess
(
taskId
,
externalUserId
,
JSON
.
toJSONString
(
json
),
wxEnterpriseId
);
dealSuccess
(
taskId
,
dataPre
.
getDataId
()
,
JSON
.
toJSONString
(
json
),
wxEnterpriseId
);
try
{
checkStaffTask
(
taskId
,
wxUserId
);
}
catch
(
Exception
e
)
{
...
...
@@ -79,7 +79,7 @@ public class FriendSyncOperation implements BaseSyncOperation {
dealFlag
=
false
;
}
finally
{
if
(!
dealFlag
)
{
dealException
(
dealParamMqDTO
.
getTaskId
(),
d
ealParamMqDTO
.
getData
(),
dataPre
.
getEnterpriseId
(),
reason
);
dealException
(
dealParamMqDTO
.
getTaskId
(),
d
ataPre
.
getDataId
(),
dataPre
.
getEnterpriseId
(),
reason
);
}
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/SelfFriendSyncOperation.java
View file @
150c59d2
...
...
@@ -72,7 +72,7 @@ public class SelfFriendSyncOperation implements BaseSyncOperation{
String
externalUserId
=
dataPre
.
getDataContent
();
ExternalUserDTO
pojo
=
memberUnionidRelatedApiService
.
getCorpSelfExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserId
);
if
(
pojo
==
null
){
dealException
(
taskId
,
externalUserId
,
null
,
"好友不存在"
);
dealException
(
taskId
,
dataPre
.
getDataId
()
,
null
,
"好友不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
...
...
@@ -81,7 +81,7 @@ public class SelfFriendSyncOperation implements BaseSyncOperation{
json
.
put
(
"unionId"
,
pojo
.
getUnionId
());
json
.
put
(
"addCreateTime"
,
pojo
.
getAddCreateTime
());
try
{
dealSuccess
(
taskId
,
externalUserId
,
json
.
toJSONString
(),
wxEnterpriseId
);
dealSuccess
(
taskId
,
dataPre
.
getDataId
()
,
json
.
toJSONString
(),
wxEnterpriseId
);
checkStaffTask
(
taskId
,
wxUserId
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
@@ -90,7 +90,7 @@ public class SelfFriendSyncOperation implements BaseSyncOperation{
dealFlag
=
false
;
}
finally
{
if
(!
dealFlag
)
{
dealException
(
dealParamMqDTO
.
getTaskId
(),
d
ealParamMqDTO
.
getData
(),
dataPre
.
getEnterpriseId
(),
reason
);
dealException
(
dealParamMqDTO
.
getTaskId
(),
d
ataPre
.
getDataId
(),
dataPre
.
getEnterpriseId
(),
reason
);
}
}
}
...
...
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