修改前:
String saleBrandstr = "";
List<DealerInfo.SaleBrand> saleBrandList = Lists.newArrayList();
try{
saleBrandstr = "{"saleBrand":" + saleBrand + "}";
} catch (Exception ex) {
ex;
}
return saleBrandstr;
修改后:
String saleBrandstr = "";
List<DealerInfo.SaleBrand> saleBrandList = Lists.newArrayList();
try{
if (dealerType == 2 || dealerType == 1) {
if (pamra.equals("")) {
return saleBrandstr;
}
}
saleBrandstr = "{"saleBrand":" + saleBrand + "}";
DealerInfo saleBrandVo = JSONObject.parseObject(saleBrandstr, DealerInfo.class);
saleBrandList = saleBrandVo.getSaleBrand();
} catch (Exception ex) {
ex;
}
return saleBrandstr;
这样改之后是不是返回结果就变了。
网友评论