|
|
@@ -104,10 +104,13 @@ public class CallingUtil {
|
|
|
if (!result.isOk()) throw new SelfException(ResponseCode.RESULT_BAD.getCode() + "", result.getMessage());
|
|
|
|
|
|
//返回数据
|
|
|
+ LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
|
|
|
+ , String.format("请求成功:%s", result)
|
|
|
+ );
|
|
|
return result.getData();
|
|
|
} catch (IOException e) {
|
|
|
LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
|
|
|
- , String.format("拉取数据失败 error:%s", e)
|
|
|
+ , String.format("请求失败 error:%s", e)
|
|
|
);
|
|
|
return null;
|
|
|
}
|
|
|
@@ -171,6 +174,9 @@ public class CallingUtil {
|
|
|
//解析结果
|
|
|
R result = objectMapper.readValue(response.returnContent().toString(), resultType);
|
|
|
if (!result.isOk()) throw new SelfException(ResponseCode.RESULT_BAD.getCode() + "", result.getMessage());
|
|
|
+ LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
|
|
|
+ , String.format("请求成功:%s", result)
|
|
|
+ );
|
|
|
|
|
|
//解析当前页,并存入数据
|
|
|
P page = result.getData();
|
|
|
@@ -184,7 +190,7 @@ public class CallingUtil {
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
LogPrintMgr.getInstance().printLogMsg(LogLevelFlag.LOG_ERROR, mBizType, mStrClassName
|
|
|
- , String.format("拉取拉去数据失败 error:%s", e)
|
|
|
+ , String.format("请求失败 error:%s", e)
|
|
|
);
|
|
|
return Collections.emptyList();
|
|
|
}
|