Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
916f1848
Commit
916f1848
authored
Mar 19, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.7-friend-改为批量
parent
97a65874
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
SocialFriendConfig.java
.../cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
+17
-8
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
View file @
916f1848
...
...
@@ -144,22 +144,31 @@ public class SocialFriendConfig {
HttpEntity
<
String
>
formEntity
=
new
HttpEntity
<>(
json
.
toString
(),
headers
);
// 推的json
TSocialFriendBackLog
backLog
=
new
TSocialFriendBackLog
();
backLog
.
setSocialId
(
vo
.
getSocialId
());
backLog
.
setType
(
5
);
backLog
.
setLogInfo
(
json
.
toString
());
backLog
.
setCreateTime
(
LocalDateTime
.
now
());
backLogList
.
add
(
backLog
);
TSocialFriendBackLog
backLog
Push
=
new
TSocialFriendBackLog
();
backLog
Push
.
setSocialId
(
vo
.
getSocialId
());
backLog
Push
.
setType
(
5
);
backLog
Push
.
setLogInfo
(
json
.
toString
());
backLog
Push
.
setCreateTime
(
LocalDateTime
.
now
());
backLogList
.
add
(
backLog
Push
);
String
dataResultList
=
restTemplate
.
postForObject
(
appAddUrl
,
formEntity
,
String
.
class
);
// {"head":{"code":"00000000","description":"成功","msg":"成功","time":"2024-12-06 17:10:26","status":"Y"
// ,"body":{"requestId":"85440b327d71466abcd9c5c81d5bb172"
if
(
Common
.
isNotNull
(
dataResultList
))
{
// 拉取的数据日志
backLog
=
new
TSocialFriendBackLog
();
TSocialFriendBackLog
backLog
=
new
TSocialFriendBackLog
();
StringBuilder
ids
=
new
StringBuilder
();
String
idTemp
;
for
(
SociaFriendYgsAddVo
tempVo
:
listVo
)
{
ids
=
ids
.
append
(
tempVo
).
append
(
","
);
if
(
Common
.
isNotNull
(
tempVo
.
getEmpIdcard
()))
{
idTemp
=
tempVo
.
getEmpIdcard
();
}
else
if
(
Common
.
isNotNull
(
tempVo
.
getSocialId
()))
{
idTemp
=
tempVo
.
getSocialId
();
}
else
{
idTemp
=
vo
.
getSocialId
();
}
ids
.
append
(
idTemp
).
append
(
","
);
}
backLogPush
.
setSocialId
(
ids
.
toString
());
backLog
.
setSocialId
(
ids
.
toString
());
backLog
.
setType
(
type
);
backLog
.
setLogInfo
(
dataResultList
);
...
...
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