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
c160d32c
Commit
c160d32c
authored
Mar 20, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.7-friend-改为批量
parent
526b225b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
TSocialFriendBackLog.java
...loud/plus/v1/yifu/social/entity/TSocialFriendBackLog.java
+1
-1
TSocialFriendServiceImpl.java
...v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
+16
-16
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TSocialFriendBackLog.java
View file @
c160d32c
...
@@ -65,7 +65,7 @@ public class TSocialFriendBackLog {
...
@@ -65,7 +65,7 @@ public class TSocialFriendBackLog {
@ExcelAttribute
(
name
=
"类型"
)
@ExcelAttribute
(
name
=
"类型"
)
@ExcelProperty
(
"类型"
)
@ExcelProperty
(
"类型"
)
@Schema
(
description
=
"类型1社保增 2社保减 3医保增 4医保减 5推送的日志 6社保图片路径7医保图片路径"
)
@Schema
(
description
=
"类型1社保增 2社保减 3医保增 4医保减 5推送的日志 6社保图片路径7医保图片路径
11社保增拉取 12社保减拉取 13医保增拉取 14医保减拉取
"
)
private
Integer
type
;
private
Integer
type
;
/**
/**
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
View file @
c160d32c
...
@@ -112,17 +112,18 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
...
@@ -112,17 +112,18 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
logList
=
new
ArrayList
<>();
logList
=
new
ArrayList
<>();
resultMap
=
new
HashMap
<>();
resultMap
=
new
HashMap
<>();
for
(
TSocialInfo
socialInfo
:
socialList
)
{
for
(
TSocialInfo
socialInfo
:
socialList
)
{
backLog
=
new
TSocialFriendBackLog
();
backLog
.
setSocialId
(
socialInfo
.
getId
());
backLog
.
setRequestId
(
socialInfo
.
getYgsRequestId
());
backLog
.
setType
(
1
);
if
(
Common
.
isNotNull
(
socialInfo
.
getDispatchType
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getDispatchType
()))
{
backLog
.
setType
(
2
);
}
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
if
(
info
==
null
)
{
if
(
info
==
null
)
{
backLog
=
new
TSocialFriendBackLog
();
backLog
.
setSocialId
(
socialInfo
.
getId
());
backLog
.
setRequestId
(
socialInfo
.
getYgsRequestId
());
backLog
.
setType
(
11
);
if
(
Common
.
isNotNull
(
socialInfo
.
getDispatchType
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getDispatchType
()))
{
backLog
.
setType
(
12
);
}
resultList
=
socialFriendConfig
.
getFriendByRequestId
(
restTemplate
,
socialInfo
.
getYgsRequestId
()
resultList
=
socialFriendConfig
.
getFriendByRequestId
(
restTemplate
,
socialInfo
.
getYgsRequestId
()
,
backLog
,
socialInfo
.
getDispatchType
());
,
backLog
,
socialInfo
.
getDispatchType
());
logList
.
add
(
backLog
);
if
(
resultList
!=
null
&&
!
resultList
.
isEmpty
())
{
if
(
resultList
!=
null
&&
!
resultList
.
isEmpty
())
{
for
(
FriendResult
result
:
resultList
)
{
for
(
FriendResult
result
:
resultList
)
{
resultMap
.
put
(
result
.
getIdCard
(),
result
);
resultMap
.
put
(
result
.
getIdCard
(),
result
);
...
@@ -130,7 +131,6 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
...
@@ -130,7 +131,6 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
}
}
}
}
logList
.
add
(
backLog
);
if
(
info
!=
null
&&
Common
.
isNotNull
(
info
.
getZt
()))
{
if
(
info
!=
null
&&
Common
.
isNotNull
(
info
.
getZt
()))
{
doCore
(
info
,
socialInfo
,
typeFlag
,
user
,
errorMap
);
doCore
(
info
,
socialInfo
,
typeFlag
,
user
,
errorMap
);
}
}
...
@@ -146,15 +146,15 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
...
@@ -146,15 +146,15 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
logList
=
new
ArrayList
<>();
logList
=
new
ArrayList
<>();
resultMap
=
new
HashMap
<>();
resultMap
=
new
HashMap
<>();
for
(
TSocialInfo
socialInfo
:
socialYsdList
)
{
for
(
TSocialInfo
socialInfo
:
socialYsdList
)
{
backLog
=
new
TSocialFriendBackLog
();
backLog
.
setSocialId
(
socialInfo
.
getId
());
backLog
.
setRequestId
(
socialInfo
.
getYsdRequestId
());
backLog
.
setType
(
3
);
if
(
Common
.
isNotNull
(
socialInfo
.
getDispatchType
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getDispatchType
()))
{
backLog
.
setType
(
4
);
}
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
if
(
info
==
null
)
{
if
(
info
==
null
)
{
backLog
=
new
TSocialFriendBackLog
();
backLog
.
setSocialId
(
socialInfo
.
getId
());
backLog
.
setRequestId
(
socialInfo
.
getYsdRequestId
());
backLog
.
setType
(
13
);
if
(
Common
.
isNotNull
(
socialInfo
.
getDispatchType
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
socialInfo
.
getDispatchType
()))
{
backLog
.
setType
(
14
);
}
resultList
=
socialFriendConfig
.
getFriendByRequestId
(
restTemplate
,
socialInfo
.
getYsdRequestId
()
resultList
=
socialFriendConfig
.
getFriendByRequestId
(
restTemplate
,
socialInfo
.
getYsdRequestId
()
,
backLog
,
socialInfo
.
getDispatchType
());
,
backLog
,
socialInfo
.
getDispatchType
());
if
(
resultList
!=
null
&&
!
resultList
.
isEmpty
())
{
if
(
resultList
!=
null
&&
!
resultList
.
isEmpty
())
{
...
@@ -163,8 +163,8 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
...
@@ -163,8 +163,8 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
}
}
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
info
=
resultMap
.
get
(
socialInfo
.
getEmpIdcard
());
}
}
logList
.
add
(
backLog
);
}
}
logList
.
add
(
backLog
);
if
(
info
!=
null
&&
Common
.
isNotNull
(
info
.
getZt
()))
{
if
(
info
!=
null
&&
Common
.
isNotNull
(
info
.
getZt
()))
{
doCore
(
info
,
socialInfo
,
typeFlag
,
user
,
errorMap
);
doCore
(
info
,
socialInfo
,
typeFlag
,
user
,
errorMap
);
}
}
...
...
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