コード例 #1
0
 @RequestMapping(params = "method=search_querySeeker")
 public @ResponseBody String search_querySeeker() {
   List l = userservice.queryByUserType("1");
   Iterator iter = l.iterator();
   Map data = new HashMap();
   JSONArray json_result = new JSONArray();
   for (int i = 0; i < l.size(); i++) {
     User_Reg userregInstance = (User_Reg) iter.next();
     data.put("user_id", userregInstance.getUser_id());
     data.put("user_name", userregInstance.getUser_name());
     data.put("eng_name", userregInstance.getEng_name());
     data.put("cn_tname", userregInstance.getCn_tname());
     data.put("email", userregInstance.getEmail());
     data.put("password", userregInstance.getPassword());
     data.put("user_type", userregInstance.getUser_type());
     Seeker_Info seeker_infoInstance =
         seekerImpl.queryBySeekerUserId(userregInstance.getUser_id());
     data.put("seekerinfo_id", seeker_infoInstance.getInfo_id());
     data.put("user_id", seeker_infoInstance.getUser_id());
     data.put("age", seeker_infoInstance.getAge());
     data.put("edu_type", seeker_infoInstance.getEdu_type());
     data.put("end_time", seeker_infoInstance.getEnd_time());
     data.put("etp_industry", seeker_infoInstance.getEtp_industry());
     data.put("etp_name", seeker_infoInstance.getEtp_name());
     data.put("gender", seeker_infoInstance.getGender());
     data.put("highest_edu", seeker_infoInstance.getHighest_edu());
     data.put("job_status", seeker_infoInstance.getJob_status());
     data.put("marital_status", seeker_infoInstance.getMarital_status());
     data.put("mobile", seeker_infoInstance.getMobile());
     data.put("seeker_photo", seeker_infoInstance.getSeeker_photo());
     data.put("seeker_profession", seeker_infoInstance.getSeeker_profession());
     data.put("self_intro", seeker_infoInstance.getSelf_intro());
     data.put("start_time", seeker_infoInstance.getStart_time());
     data.put("tech_direction", seeker_infoInstance.getTech_direction());
     data.put("work_place", seeker_infoInstance.getWork_place());
     json_result.put(data);
   }
   String result = "{\"seeker\":" + json_result + "}";
   String result_temp = "error";
   result_temp = encoding.encoding(result);
   return result_temp;
 }
コード例 #2
0
 @RequestMapping(params = "method=search_queryHunter")
 public @ResponseBody String search_queryHunter() {
   List l = userservice.queryByUserType("2");
   Iterator iter = l.iterator();
   Map data = new HashMap();
   JSONArray json_result = new JSONArray();
   for (int i = 0; i < l.size(); i++) {
     User_Reg userregInstance = (User_Reg) iter.next();
     data.put("user_id", userregInstance.getUser_id());
     data.put("user_name", userregInstance.getUser_name());
     data.put("eng_name", userregInstance.getEng_name());
     data.put("cn_tname", userregInstance.getCn_tname());
     data.put("email", userregInstance.getEmail());
     data.put("password", userregInstance.getPassword());
     data.put("user_type", userregInstance.getUser_type());
     Hunter_Info info = hunterImpl.queryByHunterUserId(userregInstance.getUser_id());
     data.put("info_id", info.getInfo_id());
     data.put("business_card", info.getBusiness_card());
     data.put("certificate", info.getCertificate());
     data.put("check_status", info.getCheck_status());
     data.put("etp_intro", info.getEtp_intro());
     data.put("etp_name", info.getEtp_name());
     data.put("gender", info.getGender());
     data.put("hunter_fax", info.getHunter_fax());
     data.put("mobile", info.getMobile());
     data.put("msg_addr", info.getMsg_addr());
     data.put("partner", info.getPartner());
     data.put("self_intro", info.getSelf_intro());
     data.put("t_area", info.getT_area());
     data.put("work_city", info.getWork_place());
     data.put("work_email", info.getWork_email());
     data.put("work_phone", info.getWork_phone());
     data.put("work_time", info.getWork_time());
     json_result.put(data);
   }
   String result = "{\"hunter\":" + json_result + "}";
   String result_temp = "error";
   result_temp = encoding.encoding(result);
   return result_temp;
 }
コード例 #3
0
 @RequestMapping(params = "method=search_queryEtp")
 public @ResponseBody String search_queryEtp() {
   List l = userservice.queryByUserType("3");
   Iterator iter = l.iterator();
   Map data = new HashMap();
   JSONArray json_result = new JSONArray();
   for (int i = 0; i < l.size(); i++) {
     User_Reg userregInstance = (User_Reg) iter.next();
     data.put("user_id", userregInstance.getUser_id());
     data.put("user_name", userregInstance.getUser_name());
     data.put("eng_name", userregInstance.getEng_name());
     data.put("cn_tname", userregInstance.getCn_tname());
     data.put("email", userregInstance.getEmail());
     data.put("password", userregInstance.getPassword());
     data.put("user_type", userregInstance.getUser_type());
     Etp_Info info = etpImpl.queryByEtpUserId(userregInstance.getUser_id());
     data.put("info_id", info.getInfo_id());
     data.put("certificate", info.getCertificate());
     data.put("check_status", info.getCheck_status());
     data.put("etp_intro", info.getEtp_intro());
     data.put("etp_name", info.getEtp_name());
     data.put("msg_addr", info.getMsg_addr());
     data.put("etp_addr", info.getEtp_addr());
     data.put("etp_email", info.getEtp_email());
     data.put("contact_person", info.getContact_person());
     data.put("etp_industry", info.getEtp_industry());
     data.put("etp_nature", info.getEtp_nature());
     data.put("mobile", info.getMobile());
     data.put("etp_size", info.getEtp_size());
     json_result.put(data);
   }
   String result = "{\"etp\":" + json_result + "}";
   String result_temp = "error";
   result_temp = encoding.encoding(result);
   return result_temp;
 }