角色完善

This commit is contained in:
张松
2025-03-11 19:03:57 +08:00
parent ed70ee00c2
commit e2a2c564e9

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.getLoginIdAsLong());
queryWrapper.eq(SysRole::getCreateUserId, StpKit.USER.getShopId());
}
if (StrUtil.isNotBlank(key)) {