角色模板返回树形

This commit is contained in:
张松
2025-12-09 15:47:55 +08:00
parent 1d7551dc1d
commit 95f9caac3e
2 changed files with 2 additions and 2 deletions

View File

@@ -246,7 +246,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
@Override
public Boolean saveByTemplate(long shopId, RoleSaveTemplateDTO dto) {
roleTemplateService.list(new QueryWrapper().in(SysRoleTemplate::getId, dto.roleTemplateIdList())).forEach(item -> {
roleTemplateService.list(new QueryWrapper().in(SysRoleTemplate::getId, dto.getRoleTemplateIdList())).forEach(item -> {
SysRole role = getById(item.getRoleId());
role.setShopId(shopId);
role.setCreateTime(null);