Commit 8f3a4259 authored by hongguangwu's avatar hongguangwu

MVP1.7.17-商险续签待办3

parent 0d436de2
...@@ -632,7 +632,16 @@ public class SocialFriendConfig { ...@@ -632,7 +632,16 @@ public class SocialFriendConfig {
if (statusCode != 200) { if (statusCode != 200) {
throw new CheckedException("获取税友结果失败,statusCode=" + statusCode); 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; ...@@ -34,6 +34,7 @@ import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
...@@ -73,8 +74,8 @@ public class TSocialFriendController { ...@@ -73,8 +74,8 @@ public class TSocialFriendController {
@Operation(description = "测试线上税友接口返回值,慎用") @Operation(description = "测试线上税友接口返回值,慎用")
@GetMapping("/testToSocialFriendOnline") @GetMapping("/testToSocialFriendOnline")
@SysLog("测试线上税友接口返回值,慎用") @SysLog("测试线上税友接口返回值,慎用")
public String testToSocialFriendOnline(@RequestParam String requestId, @RequestParam(required = false) String type) { public String testToSocialFriendOnline(@RequestParam List<String> requestIdList, @RequestParam(required = false) String type) {
return tSocialFriendService.testToSocialFriendOnline(requestId, type); return tSocialFriendService.testToSocialFriendOnline(requestIdList, type);
} }
......
...@@ -22,6 +22,8 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R; ...@@ -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 com.yifu.cloud.plus.v1.yifu.social.entity.TSocialInfo;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/** /**
* 社保士兵 * 社保士兵
* *
...@@ -41,7 +43,7 @@ public interface TSocialFriendService extends IService<TSocialInfo> { ...@@ -41,7 +43,7 @@ public interface TSocialFriendService extends IService<TSocialInfo> {
// 测试税友接口报错 // 测试税友接口报错
String testToSocialFriendGet(); String testToSocialFriendGet();
// 测试税友接口线上信息,慎用 // 测试税友接口线上信息,慎用
String testToSocialFriendOnline(String requestId, String type); String testToSocialFriendOnline(List<String> requestIdList, String type);
@Transactional @Transactional
void changeSocialHandndleStatus(); void changeSocialHandndleStatus();
......
...@@ -63,9 +63,13 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T ...@@ -63,9 +63,13 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
private final AtomicInteger atomicGetFriend = new AtomicInteger(0); private final AtomicInteger atomicGetFriend = new AtomicInteger(0);
@Override @Override
public String testToSocialFriendOnline(String requestId, String type) { public String testToSocialFriendOnline(List<String> requestIdList, String type) {
return socialFriendConfig.getFriendByRequestIdOnlineTest(restTemplate, requestId StringBuilder errorInfo = new StringBuilder();
, type); for (String requestId : requestIdList) {
errorInfo.append(socialFriendConfig.getFriendByRequestIdOnlineTest(restTemplate, requestId
, type)).append(";");
}
return errorInfo.toString();
} }
@Override @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