@Override
public Object queryApes(String ApeID, String Name, String Model, String IPAddr, String Port,
String PlaceCode, String IsOnline, String userId, String Password)
{
Map<Object, Object> pMap = new HashMap<Object, Object>();
pMap.put("ApeID", ApeID);
pMap.put("Name", Name);
pMap.put("Model", Model);
pMap.put("IPAddr", IPAddr);
pMap.put("Port", Port);
pMap.put("PlaceCode", PlaceCode);
pMap.put("IsOnline", IsOnline);
pMap.put("UserId", userId);
pMap.put("Password", Password);
String result = HttpClientUtils.getHttplient(Constant.URL_PROTOCOL + Constant.APEs_URI,
HttpClientUtils.getURL(pMap));
ResponseObject responseStatus = new ResponseObject();
JSONObject jsonObject = JSONObject.parseObject(result);//转成object格式
if (jsonObject.containsKey("ApeID")){
return GsonUtils.stringToObject(result, APEListObject.class);
}else {
return responseStatus;
}