角色完善
This commit is contained in:
parent
f3d4aa2da8
commit
ed70ee00c2
|
|
@ -47,7 +47,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> imp
|
|||
|
||||
@Override
|
||||
public Page<SysRole> getList(Long shopId, PageDTO pageDTO, String key, String startTime, String endTime) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper().eq(SysRole::getShopId, shopId);
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
if (!StpKit.USER.isAdmin()) {
|
||||
queryWrapper.eq(SysRole::getCreateUserId, StpKit.USER.getLoginIdAsLong());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue