if("省会".equals(type)){
shop.setProvince(date);
System.out.print("action");
ArrayList ShopList =shopSi.ShopFindS(shop);if(ShopList.isEmpty()){
out.print("查询错误");//传值,否则查不到数据会报错
}else{
JSONArray ShopListMsg=JSONArray.fromObject(ShopList);
out.print(ShopListMsg);
System.out.print(ShopListMsg);
}}else if("城市".equals(type)){
shop.setCity(date);
ArrayList ShopList2 =shopSi.CityFindS(shop);if(ShopList2.isEmpty()){
out.print("查询错误");//传值,否则查不到数据会报错
}else{
JSONArray ShopListMsg=JSONArray.fromObject(ShopList2);
out.print(ShopListMsg);
System.out.print(ShopListMsg);
}
}else if("市区".equals(type)){
shop.setArea(date);
ArrayList ShopList3 =shopSi.AreaFindS(shop);if(ShopList3.isEmpty()){
out.print("查询错误");//传值,否则查不到数据会报错
}else{
JSONArray ShopListMsg=JSONArray.fromObject(ShopList3);
out.print(ShopListMsg);
System.out.print(ShopListMsg);
}
}//多的话可以继续联动