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
ad672332
Commit
ad672332
authored
Mar 07, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.7-项目
parent
4d6ec441
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
147 additions
and
135 deletions
+147
-135
SocialFriendConfig.java
.../cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
+146
-135
TSocialFriendPushServiceImpl.java
...ifu/social/service/impl/TSocialFriendPushServiceImpl.java
+1
-0
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
View file @
ad672332
...
@@ -67,13 +67,15 @@ public class SocialFriendConfig {
...
@@ -67,13 +67,15 @@ public class SocialFriendConfig {
private
static
final
String
VERSION
=
"version"
;
private
static
final
String
VERSION
=
"version"
;
/**
/**
* @param : listVo 同一类(户、增减)的前100个
* @param : vo 第一个,存账密等信息
* @param : type 1社保增 2社保减 3医保增 4医保减
* @param : type 1社保增 2社保减 3医保增 4医保减
* @Description: 推送任务接口
* @Description: 推送任务接口
* @Author: hgw
* @Author: hgw
* @Date: 2024-12-9 16:54:31
* @Date: 2024-12-9 16:54:31
* @return: java.lang.String
* @return: java.lang.String
**/
**/
public
String
pushFriendByInfo
(
RestTemplate
restTemplate
,
SociaFriendYgsAddVo
vo
,
int
type
,
String
thisTime
public
String
pushFriendByInfo
(
RestTemplate
restTemplate
,
SociaFriendYgsAddVo
vo
,
List
<
SociaFriendYgsAddVo
>
listVo
,
int
type
,
String
thisTime
,
List
<
TSocialFriendBackLog
>
backLogList
)
{
,
List
<
TSocialFriendBackLog
>
backLogList
)
{
String
addId
=
""
;
String
addId
=
""
;
String
appAddUrl
=
urlPre
;
String
appAddUrl
=
urlPre
;
...
@@ -137,7 +139,7 @@ public class SocialFriendConfig {
...
@@ -137,7 +139,7 @@ public class SocialFriendConfig {
}
}
json
.
put
(
"ywblzhlb"
,
ywblzhlbArr
);
json
.
put
(
"ywblzhlb"
,
ywblzhlbArr
);
// type 1社保增 2社保减 3医保增 4医保减
// type 1社保增 2社保减 3医保增 4医保减
setEmpInfo
(
json
,
v
o
,
type
);
setEmpInfo
(
json
,
listV
o
,
type
);
HttpEntity
<
String
>
formEntity
=
new
HttpEntity
<>(
json
.
toString
(),
headers
);
HttpEntity
<
String
>
formEntity
=
new
HttpEntity
<>(
json
.
toString
(),
headers
);
// 推的json
// 推的json
...
@@ -153,7 +155,11 @@ public class SocialFriendConfig {
...
@@ -153,7 +155,11 @@ public class SocialFriendConfig {
if
(
Common
.
isNotNull
(
dataResultList
))
{
if
(
Common
.
isNotNull
(
dataResultList
))
{
// 拉取的数据日志
// 拉取的数据日志
backLog
=
new
TSocialFriendBackLog
();
backLog
=
new
TSocialFriendBackLog
();
backLog
.
setSocialId
(
vo
.
getSocialId
());
StringBuilder
ids
=
new
StringBuilder
();
for
(
SociaFriendYgsAddVo
tempVo
:
listVo
)
{
ids
=
ids
.
append
(
tempVo
).
append
(
","
);
}
backLog
.
setSocialId
(
ids
.
toString
());
backLog
.
setType
(
type
);
backLog
.
setType
(
type
);
backLog
.
setLogInfo
(
dataResultList
);
backLog
.
setLogInfo
(
dataResultList
);
backLog
.
setCreateTime
(
LocalDateTime
.
now
());
backLog
.
setCreateTime
(
LocalDateTime
.
now
());
...
@@ -242,9 +248,9 @@ public class SocialFriendConfig {
...
@@ -242,9 +248,9 @@ public class SocialFriendConfig {
* @Date: 2024/12/11 10:24
* @Date: 2024/12/11 10:24
* @return: void
* @return: void
**/
**/
private
void
setEmpInfo
(
JSONObject
json
,
SociaFriendYgsAddVo
v
o
,
int
type
)
{
private
void
setEmpInfo
(
JSONObject
json
,
List
<
SociaFriendYgsAddVo
>
listV
o
,
int
type
)
{
if
(
type
==
1
||
type
==
3
)
{
if
(
type
==
1
||
type
==
3
)
{
setEmpInfoAdd
(
json
,
v
o
,
type
);
setEmpInfoAdd
(
json
,
listV
o
,
type
);
}
else
{
}
else
{
setEmpInfoReduce
(
json
,
vo
,
type
);
setEmpInfoReduce
(
json
,
vo
,
type
);
}
}
...
@@ -257,10 +263,14 @@ public class SocialFriendConfig {
...
@@ -257,10 +263,14 @@ public class SocialFriendConfig {
* @Date: 2024/12/10 18:05
* @Date: 2024/12/10 18:05
* @return: void
* @return: void
**/
**/
private
void
setEmpInfoAdd
(
JSONObject
json
,
SociaFriendYgsAddVo
v
o
,
int
type
)
{
private
void
setEmpInfoAdd
(
JSONObject
json
,
List
<
SociaFriendYgsAddVo
>
listV
o
,
int
type
)
{
// 参保人员名单 数组
// 参保人员名单 数组
JSONArray
cbrymdArr
=
new
JSONArray
();
JSONArray
cbrymdArr
=
new
JSONArray
();
JSONObject
cbrymdOne
=
new
JSONObject
();
JSONObject
cbrymdOne
;
// 2025-3-6 15:44:32 单个改造为批量
for
(
SociaFriendYgsAddVo
vo
:
listVo
)
{
cbrymdOne
=
new
JSONObject
();
// 姓名
// 姓名
cbrymdOne
.
put
(
"xm"
,
vo
.
getEmpName
());
cbrymdOne
.
put
(
"xm"
,
vo
.
getEmpName
());
// 证件类型
// 证件类型
...
@@ -393,6 +403,7 @@ public class SocialFriendConfig {
...
@@ -393,6 +403,7 @@ public class SocialFriendConfig {
jyxx
.
put
(
"ldhtjzrq"
,
vo
.
getContractEnd
());
jyxx
.
put
(
"ldhtjzrq"
,
vo
.
getContractEnd
());
cbrymdOne
.
put
(
"jyxx"
,
jyxx
);
cbrymdOne
.
put
(
"jyxx"
,
jyxx
);
cbrymdArr
.
add
(
cbrymdOne
);
cbrymdArr
.
add
(
cbrymdOne
);
}
// 人员名单
// 人员名单
String
buyType
=
"cbrymd"
;
String
buyType
=
"cbrymd"
;
json
.
put
(
buyType
,
cbrymdArr
);
json
.
put
(
buyType
,
cbrymdArr
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendPushServiceImpl.java
View file @
ad672332
...
@@ -190,6 +190,7 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
...
@@ -190,6 +190,7 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
logList
.
add
(
socialLog
);
logList
.
add
(
socialLog
);
}
}
}
}
List
<
SociaFriendYgsAddVo
>
listVo
,
if
(!
backLogList
.
isEmpty
())
{
if
(!
backLogList
.
isEmpty
())
{
tSocialFriendBackLogService
.
saveBatch
(
backLogList
);
tSocialFriendBackLogService
.
saveBatch
(
backLogList
);
...
...
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