|
@@ -19,6 +19,7 @@ import com.ningdatech.pmapi.sys.model.dto.RoleUpdateDTO; |
|
|
import com.ningdatech.pmapi.sys.model.entity.*; |
|
|
import com.ningdatech.pmapi.sys.model.entity.*; |
|
|
import com.ningdatech.pmapi.sys.service.*; |
|
|
import com.ningdatech.pmapi.sys.service.*; |
|
|
import com.ningdatech.pmapi.sys.utils.AuthCacheKeyUtils; |
|
|
import com.ningdatech.pmapi.sys.utils.AuthCacheKeyUtils; |
|
|
|
|
|
import com.ningdatech.pmapi.user.entity.enumeration.RoleEnum; |
|
|
import com.ningdatech.pmapi.user.manage.UserAuthManage; |
|
|
import com.ningdatech.pmapi.user.manage.UserAuthManage; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
@@ -119,6 +120,7 @@ public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IR |
|
|
Role role = BeanUtil.toBean(data, Role.class); |
|
|
Role role = BeanUtil.toBean(data, Role.class); |
|
|
role.setCreateBy(userId); |
|
|
role.setCreateBy(userId); |
|
|
role.setUpdateBy(userId); |
|
|
role.setUpdateBy(userId); |
|
|
|
|
|
role.setCode(RoleEnum.NORMAL_MEMBER.name()); |
|
|
save(role); |
|
|
save(role); |
|
|
saveRoleMenu(data.getMenuIds(), role.getId()); |
|
|
saveRoleMenu(data.getMenuIds(), role.getId()); |
|
|
saveRoleMenuDatascope(data.getMenuDataScopeList(), role.getId()); |
|
|
saveRoleMenuDatascope(data.getMenuDataScopeList(), role.getId()); |
|
|