// 传入字符串,解析并返回
 @Test
 public void testGetbyidForString() {
   FindCompany find = new FindCompanyServices();
   String a = "6,7,2";
   List list = find.FindCompanyForString(a);
   if (list != null) {
     for (int i = 0; i < list.size(); i++) {
       System.out.println(list.get(i));
     }
   } else {
     System.out.println("查找失败");
   }
 }
 // 通过地址模糊查询
 @Test
 public void testByAddress() {
   FindCompany find = new FindCompanyServices();
   List<Company> list = find.FindCompanyByaddress("珠峰大街");
   if (list != null) {
     for (int i = 0; i < list.size(); i++) {
       System.out.println(list.get(i).getId());
       System.out.println(list.get(i).getCompanyName());
       System.out.println(list.get(i).getUsable());
       System.out.println(list.get(i).getPos());
     }
   } else {
     System.out.println("查找失败");
   }
 }
 // 通过城市id查询
 @Test
 public void testByCityId() {
   FindCompany find = new FindCompanyServices();
   List<Company> list = find.FindCompanyByCityId(6);
   // System.out.println(list.size());
   if (list != null) {
     for (int i = 0; i < list.size(); i++) {
       // System.out.println(list.get(i));
       // System.out.println("11111");for(int i
       // =0;i<listcom.size();i++){
       System.out.println(list.get(i).getId());
       System.out.println(list.get(i).getCompanyName());
       System.out.println(list.get(i).getUsable());
       System.out.println(list.get(i).getPos());
     }
   } else {
     System.out.println("查找失败");
   }
 }