diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index bf72ffd4..53468243 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -225,6 +225,9 @@ public class ResourceServiceImpl extends CrudServiceImpl params, HttpServletResponse response) throws Exception { List list = sysUserService.list(params); - + params.put("export", true); ExcelUtils.exportExcelToTarget(response, null, "用户管理", list, SysUserExcel.class); } diff --git a/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java index c5047c0b..b1aaf7fb 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java @@ -97,7 +97,7 @@ public class SysUserServiceImpl extends BaseServiceImpl list(Map params) { - //普通管理员,只能查询所属部门及子部门的数据 + // 普通管理员,只能查询所属部门及子部门的数据 UserDetail user = SecurityUser.getUser(); if (user.getSuperAdmin() == SuperAdminEnum.NO.value()) { params.put("deptIdList", sysDeptService.getSubDeptIdList(user.getDeptId())); @@ -106,6 +106,9 @@ public class SysUserServiceImpl extends BaseServiceImpl entityList = baseDao.getList(params); return ConvertUtils.sourceToTarget(entityList, SysUserDTO.class);