角色完善
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user