Commit 8f3a4259 authored by hongguangwu's avatar hongguangwu

MVP1.7.17-商险续签待办3

parent 0d436de2
......@@ -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;
}
/**
......
......@@ -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(requestIdList, type);
}
......
......@@ -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();
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment