Commit 1068f8c1 authored by 杨钧's avatar 杨钧

bug修复,返回值类型错误

parent 38aefe0e
...@@ -397,10 +397,10 @@ public class XyqbServiceImpl implements IXyqbService { ...@@ -397,10 +397,10 @@ public class XyqbServiceImpl implements IXyqbService {
}; };
JsonResult<List<EarlySettleUpOrder>> jsonResult = JSONTools.deserialize(result, typeToken); JsonResult<List<EarlySettleUpOrder>> jsonResult = JSONTools.deserialize(result, typeToken);
if (Objects.isNull(jsonResult)) { if (Objects.isNull(jsonResult)) {
return JsonResult.buildErrorStateResult("操作失败,xyqb返回错误", Boolean.FALSE); return JsonResult.buildErrorStateResult("操作失败,xyqb返回错误", null);
} else { } else {
if(!jsonResult.isSuccess()){ if(!jsonResult.isSuccess()){
return JsonResult.buildErrorStateResult(StringUtils.isNotBlank(jsonResult.getMsg())?jsonResult.getMsg():"操作失败,xyqb返回错误", Boolean.FALSE); return JsonResult.buildErrorStateResult(StringUtils.isNotBlank(jsonResult.getMsg())?jsonResult.getMsg():"操作失败,xyqb返回错误", null);
} }
return jsonResult; return jsonResult;
} }
...@@ -477,14 +477,14 @@ public class XyqbServiceImpl implements IXyqbService { ...@@ -477,14 +477,14 @@ public class XyqbServiceImpl implements IXyqbService {
} else { } else {
TypeReference<JsonResult<EarlySettleUpTrial>> typeToken = new TypeReference<JsonResult<EarlySettleUpTrial>>() { TypeReference<JsonResult<EarlySettleUpTrial>> typeToken = new TypeReference<JsonResult<EarlySettleUpTrial>>() {
}; };
JsonResult<JsonResult<EarlySettleUpTrial>> jsonResult = JSONTools.deserialize(result, typeToken); JsonResult<EarlySettleUpTrial> jsonResult = JSONTools.deserialize(result, typeToken);
if (Objects.isNull(jsonResult)) { if (Objects.isNull(jsonResult)) {
return JsonResult.buildErrorStateResult("操作失败,xyqb返回错误", Boolean.FALSE); return JsonResult.buildErrorStateResult("操作失败,xyqb返回错误", null);
} else { } else {
if(!jsonResult.isSuccess()){ if(!jsonResult.isSuccess()){
return JsonResult.buildErrorStateResult(StringUtils.isNotBlank(jsonResult.getMsg())?jsonResult.getMsg():"操作失败,xyqb返回错误", Boolean.FALSE); return JsonResult.buildErrorStateResult(StringUtils.isNotBlank(jsonResult.getMsg())?jsonResult.getMsg():"操作失败,xyqb返回错误", null);
} }
return JsonResult.buildSuccessResult("[操作成功]", Boolean.TRUE); return jsonResult;
} }
} }
} }
......
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