ApplicationContext aContext = new ClassPathXmlApplicationContext("applicationContext-*.xml");
ShopInfoService shopInfoService = (ShopInfoService)aContext.getBean("shopInfoService");
ShopInfo shopinfo = new ShopInfo();
//shopinfo.setBussinessModel("takeaway,compartment");
shopinfo.setShopCuisines("日式自助");
shopinfo.setPositionLat("38.048958");
shopinfo.setPositionLng("114.522083");
shopinfo.setSpace("1");
PageBean pageBean = shopInfoService.queryShopInfoByConstruct(shopinfo, 1, 100000);
List<ShopInfo> shList = pageBean.getList();
for (int i = 0; i < shList.size(); i++) {
ShopInfo shInfo =shList.get(i);
System.out.println(shInfo.getShopName());
System.out.println(shInfo.getDomain());
System.out.println(shInfo.getAndroidShopPhoto());
System.out.println(shInfo.getAddress());
System.out.println(shInfo.getProvince());
System.out.println(shInfo.getCity());
System.out.println(shInfo.getBrough());
ShopInfoService shopInfoService = (ShopInfoService)aContext.getBean("shopInfoService");
ShopInfo shopinfo = new ShopInfo();
//shopinfo.setBussinessModel("takeaway,compartment");
shopinfo.setShopCuisines("日式自助");
shopinfo.setPositionLat("38.048958");
shopinfo.setPositionLng("114.522083");
shopinfo.setSpace("1");
PageBean pageBean = shopInfoService.queryShopInfoByConstruct(shopinfo, 1, 100000);
List<ShopInfo> shList = pageBean.getList();
for (int i = 0; i < shList.size(); i++) {
ShopInfo shInfo =shList.get(i);
System.out.println(shInfo.getShopName());
System.out.println(shInfo.getDomain());
System.out.println(shInfo.getAndroidShopPhoto());
System.out.println(shInfo.getAddress());
System.out.println(shInfo.getProvince());
System.out.println(shInfo.getCity());
System.out.println(shInfo.getBrough());
}
select fs.name from `zanchaoshi`.shop fs ,`zan_society`.society_join sj where fs.name like sj.title;