Commit 4dc9d8a2 authored by yexiong.wang's avatar yexiong.wang

add talos处理失败的msg

parent 4b69bcd4
......@@ -74,12 +74,12 @@ public class VccServiceImpl implements IVccService {
log.info("queryPage | 请求talos结束,param={},result={}",param,post);
if (StringUtils.isBlank(post)){
log.error("queryPage | 请求talos异常,返回值为空,param={}",query);
return JsonResult.buildErrorStateResult("请求talos获取详情异常");
return JsonResult.buildErrorStateResult("请求talos获取详情异常:没有请求通");
}
JSONObject jsonObject = JSONObject.parseObject(post);
if (!"0000".equals(jsonObject.getString("code")) || !"0000".equals(jsonObject.getString("businessCode"))){
log.error("queryPage | talos没有正确查询出结果");
return JsonResult.buildErrorStateResult("talos没有正确查询出结果");
log.error("queryPage | talos没有正确查询出结果:" + jsonObject.getString("msg"));
return JsonResult.buildErrorStateResult("talos没有正确查询出结果:" + jsonObject.getString("msg"));
}
JSONObject data = jsonObject.getJSONObject("data");
JSONArray list = data.getJSONArray("list");
......@@ -95,6 +95,7 @@ public class VccServiceImpl implements IVccService {
for (OfflineRepaySubmitRecord record:byUserIdEqualsAndRepayTypeEquals){
List<ApplyBill> billList = GSON.fromJson(record.getBills(), new TypeToken<List<ApplyBill>>() {
}.getType());
log.info("billList={}",billList);
if (billList.contains(applyBill)){
voList.get(i).setSerialNo(record.getSerialNo());
voList.get(i).setApprovalStatus(record.getApprovalStatus());
......@@ -125,12 +126,12 @@ public class VccServiceImpl implements IVccService {
log.info("queryRepayCalDetail | 请求talos结束,get={}",get);
if (StringUtils.isBlank(get)){
log.error("queryRepayCalDetail | 请求talos异常,返回值为空");
return JsonResult.buildErrorStateResult("请求talos获取详情异常");
return JsonResult.buildErrorStateResult("请求talos获取详情异常:没有请求通");
}
JSONObject jsonObject = JSONObject.parseObject(get);
if (!"0000".equals(jsonObject.getString("code")) || !"0000".equals(jsonObject.getString("businessCode"))){
log.error("queryRepayCalDetail | talos没有正确查询出结果");
return JsonResult.buildErrorStateResult("talos没有正确查询出结果");
log.error("queryRepayCalDetail | talos没有正确查询出结果:" + jsonObject.getString("msg"));
return JsonResult.buildErrorStateResult("talos没有正确查询出结果:" + jsonObject.getString("msg"));
}
JSONObject data = jsonObject.getJSONObject("data");
return JsonResult.buildSuccessResult("请求成功",data);
......@@ -252,7 +253,7 @@ public class VccServiceImpl implements IVccService {
log.info("queryRepayCalDetail | 请求talos结束,get={}",get);
if (StringUtils.isBlank(get)){
log.error("queryRepayCalDetail | 请求talos异常,返回值为空");
throw new Exception("请求talos异常");
throw new Exception("请求talos异常:没有请求通");
}
JSONObject jsonObject = JSONObject.parseObject(get);
if (!"0000".equals(jsonObject.getString("code")) || !"0000".equals(jsonObject.getString("businessCode"))){
......
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