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
284d1667
Commit
284d1667
authored
Mar 25, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购刷新好友超时时间
parent
d97839a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
FriendSyncNewOperation.java
...an/manage/service/task/friend/FriendSyncNewOperation.java
+9
-4
PreDealLogMapper.xml
...e3-service/src/main/resources/mapper/PreDealLogMapper.xml
+3
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/friend/FriendSyncNewOperation.java
View file @
284d1667
...
@@ -65,6 +65,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
...
@@ -65,6 +65,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
logger
.
info
(
"第三方好友合并:{}"
,
JSONObject
.
toJSONString
(
dataPre
));
logger
.
info
(
"第三方好友合并:{}"
,
JSONObject
.
toJSONString
(
dataPre
));
String
reason
=
"成功"
;
String
reason
=
"成功"
;
boolean
dealFlag
=
true
;
boolean
dealFlag
=
true
;
String
relationKey
=
"-1"
;
try
{
try
{
String
wxEnterpriseId
=
dataPre
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
dataPre
.
getWxEnterpriseId
();
String
wxUserId
=
dataPre
.
getpDataId
();
String
wxUserId
=
dataPre
.
getpDataId
();
...
@@ -78,7 +79,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
...
@@ -78,7 +79,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
return
;
return
;
}
}
//relationkey
//relationkey
String
relationKey
=
SecureUtil
.
md5
(
wxUserId
+
"_"
+
externalUserDTO
.
getName
()
+
"_"
+
externalUserDTO
.
getAddCreateTime
());
relationKey
=
SecureUtil
.
md5
(
wxUserId
+
"_"
+
externalUserDTO
.
getName
()
+
"_"
+
externalUserDTO
.
getAddCreateTime
());
logger
.
info
(
"relationKey:{},{}"
,
relationKey
,
externalUserDTO
.
getExternalUserId
());
logger
.
info
(
"relationKey:{},{}"
,
relationKey
,
externalUserDTO
.
getExternalUserId
());
// 根据关联键relationkey查看自建应用 是否有数据
// 根据关联键relationkey查看自建应用 是否有数据
TabHaobanPreDealLog
selfPre
=
preDealService
.
getByRelationKey
(
taskId
,
PreDealTypeEnum
.
self_friend
.
getVal
(),
relationKey
);
TabHaobanPreDealLog
selfPre
=
preDealService
.
getByRelationKey
(
taskId
,
PreDealTypeEnum
.
self_friend
.
getVal
(),
relationKey
);
...
@@ -110,7 +111,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
...
@@ -110,7 +111,7 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
dealFlag
=
false
;
dealFlag
=
false
;
}
finally
{
}
finally
{
if
(!
dealFlag
)
{
if
(!
dealFlag
)
{
dealException
(
dealParamMqDTO
.
getTaskId
(),
dataPre
.
getDataId
(),
dataPre
.
getpDataId
(),
reason
);
dealException
(
dealParamMqDTO
.
getTaskId
(),
dataPre
.
getDataId
(),
dataPre
.
getpDataId
(),
reason
,
relationKey
);
}
}
}
}
}
}
...
@@ -167,10 +168,14 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
...
@@ -167,10 +168,14 @@ public class FriendSyncNewOperation implements BaseSyncOperation {
return
memberUnionidRelatedApiService
.
addExternal
(
externalUserDTO
);
return
memberUnionidRelatedApiService
.
addExternal
(
externalUserDTO
);
}
}
public
void
dealException
(
String
taskId
,
String
dataId
,
String
pDataId
,
String
reason
,
String
relationKey
)
{
preDealService
.
updateFriendStatusByDataId
(
taskId
,
dataId
,
PreDealStatusEnum
.
exception
.
getVal
(),
reason
,
null
,
relationKey
);
checkDepartmentTask
(
taskId
,
pDataId
);
}
@Override
@Override
public
void
dealException
(
String
taskId
,
String
dataId
,
String
pDataId
,
String
reason
)
{
public
void
dealException
(
String
taskId
,
String
dataId
,
String
pDataId
,
String
reason
)
{
preDealService
.
updateStatusByDataId
(
taskId
,
dataId
,
PreDealStatusEnum
.
exception
.
getVal
(),
reason
);
return
;
checkDepartmentTask
(
taskId
,
pDataId
);
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/resources/mapper/PreDealLogMapper.xml
View file @
284d1667
...
@@ -362,7 +362,9 @@
...
@@ -362,7 +362,9 @@
status_flag = #{status,jdbcType=INTEGER},
status_flag = #{status,jdbcType=INTEGER},
reason=#{reason},
reason=#{reason},
data_content = #{dataContent},
<if
test=
"dataContent !=null"
>
data_content = #{dataContent},
</if>
relation_key=#{relationKey},
relation_key=#{relationKey},
update_time = now()
update_time = now()
</set>
</set>
...
...
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