From b0a9e3b690af73fa1c493e151fde2526110c28fa Mon Sep 17 00:00:00 2001
From: jiaosong <jiaosong6760@dingtalk.com>
Date: 星期二, 12 九月 2023 10:26:16 +0800
Subject: [PATCH] 创建角色
---
server/src/main/java/doumeemes/biz/system/impl/SystemRoleBizImpl.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/src/main/java/doumeemes/biz/system/impl/SystemRoleBizImpl.java b/server/src/main/java/doumeemes/biz/system/impl/SystemRoleBizImpl.java
index 5060dbf..8b2228b 100644
--- a/server/src/main/java/doumeemes/biz/system/impl/SystemRoleBizImpl.java
+++ b/server/src/main/java/doumeemes/biz/system/impl/SystemRoleBizImpl.java
@@ -45,7 +45,7 @@
// 楠岃瘉鐢ㄦ埛鍚�
LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal();
systemRole.setDeleted(Boolean.FALSE);
- if(systemRole.getType() ==null){
+ if(systemRole.getType() ==null || Constants.equalsInteger(user.getType(),Constants.USERTYPE.PLAT)){
systemRole.setType(Constants.ROLETYPE.plat);
}
systemRole.setCompanyId(null);
--
Gitblit v1.9.3