权限 shopId

This commit is contained in:
2025-12-18 10:52:31 +08:00
parent ff9b8729c9
commit d9e8c96792

View File

@@ -105,7 +105,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
@Override
public Page<SysRole> getList(Long shopId, PageDTO pageDTO, String key, String startTime, String endTime) {
QueryWrapper queryWrapper = new QueryWrapper();
queryWrapper.eq(SysRole::getCreateUserId, StpKit.USER.getLoginIdAsLong());
queryWrapper.eq(SysRole::getShopId, shopId);
if (StrUtil.isNotBlank(key)) {
queryWrapper.and(column(SysRole::getName).like(key).or(column(SysRole::getDescription).like(key)));