角色完善

This commit is contained in:
张松 2025-03-11 19:04:08 +08:00
parent e2a2c564e9
commit 0bdfa7b461
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> imp
public Page<SysRole> getList(Long shopId, PageDTO pageDTO, String key, String startTime, String endTime) {
QueryWrapper queryWrapper = new QueryWrapper();
if (!StpKit.USER.isAdmin()) {
queryWrapper.eq(SysRole::getCreateUserId, StpKit.USER.getShopId());
queryWrapper.eq(SysRole::getCreateUserId, StpKit.USER.getLoginIdAsLong());
}
if (StrUtil.isNotBlank(key)) {