Beispiel #1
0
 public List<User> getSubDeptUserList(Integer id) {
   List<User> userList = new ArrayList<User>();
   List<Department> list = getSubDepartmentList(id);
   for (Department dept : list) {
     HashMap<String, String> nameMap = new HashMap<String, String>();
     nameMap.put("deptId", dept.getId().toString());
     List<User> userTempList = userDao.getUserList(nameMap);
     for (User tempUser : userTempList) {
       userList.add(tempUser);
     }
   }
   return userList;
 }
Beispiel #2
0
 public List<User> getCurSubDeptUserList(Integer id) {
   HashMap<String, String> nameMap = new HashMap<String, String>();
   nameMap.put("deptId", id.toString());
   return userDao.getUserList(nameMap);
 }