Commit 8e39fa7f authored by 杨钧's avatar 杨钧

显示xyqb返回错误信息

parent dbb96b8b
...@@ -441,9 +441,12 @@ public class XyqbServiceImpl implements IXyqbService { ...@@ -441,9 +441,12 @@ public class XyqbServiceImpl implements IXyqbService {
TypeReference<JsonResult> typeToken = new TypeReference<JsonResult>() { TypeReference<JsonResult> typeToken = new TypeReference<JsonResult>() {
}; };
JsonResult<JsonResult> jsonResult = JSONTools.deserialize(result, typeToken); JsonResult<JsonResult> jsonResult = JSONTools.deserialize(result, typeToken);
if (Objects.isNull(jsonResult) || !jsonResult.isSuccess()) { if (Objects.isNull(jsonResult)) {
return JsonResult.buildErrorStateResult("[处理失败]", Boolean.FALSE); return JsonResult.buildErrorStateResult("操作失败,xyqb返回错误", Boolean.FALSE);
} else { } else {
if(!jsonResult.isSuccess()){
return JsonResult.buildErrorStateResult(StringUtils.isNotBlank(jsonResult.getMsg())?jsonResult.getMsg():"操作失败,xyqb返回错误", Boolean.FALSE);
}
return JsonResult.buildSuccessResult("[操作成功]", Boolean.TRUE); return JsonResult.buildSuccessResult("[操作成功]", Boolean.TRUE);
} }
} }
......
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