Commit 4ce7e71a authored by 赵啸非's avatar 赵啸非

添加部门信息表

parent 5f5fae43
...@@ -45,11 +45,14 @@ public class ResourceController extends BaseCRUDJsonBodyMappingController<Resour ...@@ -45,11 +45,14 @@ public class ResourceController extends BaseCRUDJsonBodyMappingController<Resour
Map<String, Object> statsus = new HashMap<String, Object>(); Map<String, Object> statsus = new HashMap<String, Object>();
statsus.put("authType", AuthType.getEnumMap()); statsus.put("authType", AuthType.getEnumMap());
statsus.put("sourceType", SourceType.getEnumMap()); statsus.put("sourceType", SourceType.getEnumMap());
if (!ObjectUtils.isEmpty(context.getUser())&&context.getUser().isAdmin()) { if(!ObjectUtils.isEmpty(context.getUser())){
statsus.put("userType", IBaseEnum.getEnumMap(UserType.class)); if (context.getUser().isAdmin()) {
} else { statsus.put("userType", IBaseEnum.getEnumMap(UserType.class));
statsus.put("userType", UserType.findByValue(getCurUser().getUserType())); } else {
statsus.put("userType", UserType.findByValue(getCurUser().getUserType()));
}
} }
model.put(KEY_RESULT_DICT, statsus); model.put(KEY_RESULT_DICT, statsus);
} }
......
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