Ejemplo n.º 1
0
 private UserInfo FindUserInfo(String SQL, Integer userId) {
   // TODO Auto-generated method stub
   List<Object> list =
       userService
           .getRepository()
           .getImply()
           .searchList(SQL, new Object[] {userId}, new BeanPropertyRowMapper(UserInfo.class));
   if (list != null && list.size() > 0) return (UserInfo) list.get(0);
   return null;
 }
Ejemplo n.º 2
0
 private Degree Find_Degree(Integer user) {
   // TODO Auto-generated method stub
   List<Object> list =
       userService
           .getRepository()
           .getImply()
           .searchList(
               sql.SEARCH_DEGREE, new Object[] {user}, new BeanPropertyRowMapper(Degree.class));
   if (list != null && list.size() > 0) return (Degree) list.get(0);
   return null;
 }
Ejemplo n.º 3
0
 @ResponseBody
 @RequestMapping("SearchOtherMesg")
 public List searchOtherMesg(@RequestParam("type") Integer type, HttpSession session) {
   RowMapper<other_infos> mapper = new BeanPropertyRowMapper<>(other_infos.class);
   List list =
       userService
           .getRepository()
           .getImply()
           .searchList(
               sql.SEARCH_OTHER_INFOS,
               new Object[] {(Integer) session.getAttribute("userID"), type},
               mapper);
   return list;
 }