Commit c3a442fd by wuwenlong

获取用户信息接口

parent a2ab3845
...@@ -12,7 +12,9 @@ import org.apache.commons.collections.CollectionUtils; ...@@ -12,7 +12,9 @@ import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils; import org.apache.commons.collections.MapUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentMap;
...@@ -96,5 +98,45 @@ public class UserSessionUtils extends UserSession { ...@@ -96,5 +98,45 @@ public class UserSessionUtils extends UserSession {
} }
return factoryCodes; return factoryCodes;
} }
/**
* TODO *
* *获取登录用户所有角色的公司列表
* @return
*/
public static List<Map<String,String>> getRoleCompany(){
Map<String,String> map = new HashMap<String,String>(){{
put("companyCode","001");
put("companyName","公司A");
}};
return new ArrayList<Map<String,String>>(){{add(map);}};
}
/**
* TODO *
* *获取指定公司的部门列表
* @return
*/
public static List<Map<String,String>> getDeptByCompany(String companyCode){
Map<String,String> map = new HashMap<String,String>(){{
put("deptCode","001");
put("deptName","公司A");
}};
return new ArrayList<Map<String,String>>(){{add(map);}};
}
/**
* TODO *
* *获取指定公司的人员列表
* @return
*/
public static List<Map<String,String>> getUserByCompany(String companyCode){
Map<String,String> map = new HashMap<String,String>(){{
put("userCode","");//工号
put("userName","");//用户名称
put("deptCode","");//所属部门编码
put("deptName","");//所属部门名称
}};
return new ArrayList<Map<String,String>>(){{add(map);}};
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment