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
8f3a4259
Commit
8f3a4259
authored
Nov 18, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.17-商险续签待办3
parent
0d436de2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
+23
-7
SocialFriendConfig.java
.../cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
+10
-1
TSocialFriendController.java
...us/v1/yifu/social/controller/TSocialFriendController.java
+3
-2
TSocialFriendService.java
...oud/plus/v1/yifu/social/service/TSocialFriendService.java
+3
-1
TSocialFriendServiceImpl.java
...v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
+7
-3
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/SocialFriendConfig.java
View file @
8f3a4259
...
...
@@ -632,7 +632,16 @@ public class SocialFriendConfig {
if
(
statusCode
!=
200
)
{
throw
new
CheckedException
(
"获取税友结果失败,statusCode="
+
statusCode
);
}
return
response
.
getBody
();
String
dataResultList
=
response
.
getBody
();
try
{
// 组装返回结果
List
<
FriendResult
>
resultList
=
new
ArrayList
<>();
getResultToVo
(
dataResultList
,
resultList
);
resultList
.
clear
();
}
catch
(
Exception
e
)
{
return
requestId
;
}
return
null
;
}
/**
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TSocialFriendController.java
View file @
8f3a4259
...
...
@@ -34,6 +34,7 @@ import lombok.RequiredArgsConstructor;
import
org.springframework.web.bind.annotation.*
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
@@ -73,8 +74,8 @@ public class TSocialFriendController {
@Operation
(
description
=
"测试线上税友接口返回值,慎用"
)
@GetMapping
(
"/testToSocialFriendOnline"
)
@SysLog
(
"测试线上税友接口返回值,慎用"
)
public
String
testToSocialFriendOnline
(
@RequestParam
String
requestId
,
@RequestParam
(
required
=
false
)
String
type
)
{
return
tSocialFriendService
.
testToSocialFriendOnline
(
requestId
,
type
);
public
String
testToSocialFriendOnline
(
@RequestParam
List
<
String
>
requestIdList
,
@RequestParam
(
required
=
false
)
String
type
)
{
return
tSocialFriendService
.
testToSocialFriendOnline
(
requestId
List
,
type
);
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TSocialFriendService.java
View file @
8f3a4259
...
...
@@ -22,6 +22,8 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TSocialInfo
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
* 社保士兵
*
...
...
@@ -41,7 +43,7 @@ public interface TSocialFriendService extends IService<TSocialInfo> {
// 测试税友接口报错
String
testToSocialFriendGet
();
// 测试税友接口线上信息,慎用
String
testToSocialFriendOnline
(
String
requestId
,
String
type
);
String
testToSocialFriendOnline
(
List
<
String
>
requestIdList
,
String
type
);
@Transactional
void
changeSocialHandndleStatus
();
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendServiceImpl.java
View file @
8f3a4259
...
...
@@ -63,9 +63,13 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
private
final
AtomicInteger
atomicGetFriend
=
new
AtomicInteger
(
0
);
@Override
public
String
testToSocialFriendOnline
(
String
requestId
,
String
type
)
{
return
socialFriendConfig
.
getFriendByRequestIdOnlineTest
(
restTemplate
,
requestId
,
type
);
public
String
testToSocialFriendOnline
(
List
<
String
>
requestIdList
,
String
type
)
{
StringBuilder
errorInfo
=
new
StringBuilder
();
for
(
String
requestId
:
requestIdList
)
{
errorInfo
.
append
(
socialFriendConfig
.
getFriendByRequestIdOnlineTest
(
restTemplate
,
requestId
,
type
)).
append
(
";"
);
}
return
errorInfo
.
toString
();
}
@Override
...
...
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