|
|
@ -298,10 +298,14 @@ public class HttpClientUtil { |
|
|
responseData.setCode(code + ""); |
|
|
responseData.setCode(code + ""); |
|
|
responseData.setMsg(strData); |
|
|
responseData.setMsg(strData); |
|
|
responseData.setCount(resultMap.get("total") == null ? 0 : Integer.parseInt(resultMap.get("total").toString())); |
|
|
responseData.setCount(resultMap.get("total") == null ? 0 : Integer.parseInt(resultMap.get("total").toString())); |
|
|
if (code != 400) { |
|
|
|
|
|
|
|
|
if (code != 400 && resultMap.containsKey("row")) { |
|
|
String objString = String.valueOf(resultMap.get("row")); |
|
|
String objString = String.valueOf(resultMap.get("row")); |
|
|
responseData.setObj(objString); |
|
|
responseData.setObj(objString); |
|
|
} |
|
|
} |
|
|
|
|
|
if (code != 400 && resultMap.containsKey("rows")) { |
|
|
|
|
|
String objString = String.valueOf(resultMap.get("rows")); |
|
|
|
|
|
responseData.setObj(objString); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
responseData.setCode(statusCode + ""); |
|
|
responseData.setCode(statusCode + ""); |
|
|
responseData.setMsg("错误码:" + statusCode); |
|
|
responseData.setMsg("错误码:" + statusCode); |
|
|
|