|
|
|
@ -434,6 +434,15 @@ public class ErfExpApplyServiceImpl extends ServiceImpl<ErfExpApplyMapper, ErfEx |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageUtils getPendingApplyList(ErfExpApplyData data) { |
|
|
|
// 检查当前用户是否拥有"工程实验申请管理员"角色,若是则可查看所有待办 |
|
|
|
if (data.getCurrentUserId() != null) { |
|
|
|
List<UserRoleDto> adminRoles = sysUserDao.getUserRolesByRoleNames( |
|
|
|
data.getCurrentUserId(), List.of("工程实验申请管理员")); |
|
|
|
if (!adminRoles.isEmpty()) { |
|
|
|
data.setIsAdmin(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
PageHelper.startPage(data.getPage(), data.getLimit()); |
|
|
|
List<ErfExpApplyData> list = erfExpApplyMapper.getPendingApplyList(data); |
|
|
|
PageInfo<ErfExpApplyData> pageInfo = new PageInfo<>(list); |
|
|
|
|