Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
03dc67fe
提交
03dc67fe
编写于
3月 29, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
hebao1234 部署微服务接口 [ibiz-uaa,micorservice]
上级
0f1e693c
变更
7
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
35 行增加
和
22 行删除
+35
-22
SysRolePermissionServiceImpl.java
...b/core/uaa/service/impl/SysRolePermissionServiceImpl.java
+3
-3
SysRoleServiceImpl.java
.../cn/ibizlab/core/uaa/service/impl/SysRoleServiceImpl.java
+2
-2
SysUserAuthServiceImpl.java
...ibizlab/core/uaa/service/impl/SysUserAuthServiceImpl.java
+2
-2
SysUserRoleServiceImpl.java
...ibizlab/core/uaa/service/impl/SysUserRoleServiceImpl.java
+3
-3
SysUsersaveSysUserRule.drl
...-core/src/main/resources/rules/SysUsersaveSysUserRule.drl
+8
-8
SysUsersaveSysUserRuleFlow.bpmn
.../src/main/resources/rules/SysUsersaveSysUserRuleFlow.bpmn
+4
-4
RedisCacheConfig.java
...src/main/java/cn/ibizlab/util/cache/RedisCacheConfig.java
+13
-0
未找到文件。
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysRolePermissionServiceImpl.java
浏览文件 @
03dc67fe
...
@@ -235,12 +235,12 @@ public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionM
...
@@ -235,12 +235,12 @@ public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionM
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
* @param et
*/
*/
p
rivate
void
fillParentData
(
SysRolePermission
et
){
p
ublic
void
fillParentData
(
SysRolePermission
et
){
//实体关系[DER1N_SYS_ROLE_PERMISSION_SYS_PERMISSION_SYS_PERMISSIONID]
//实体关系[DER1N_SYS_ROLE_PERMISSION_SYS_PERMISSION_SYS_PERMISSIONID]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getPermissionid
())){
if
(!
ObjectUtils
.
isEmpty
(
et
.
getPermissionid
())){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysPermission
permission
=
et
.
getPermission
();
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysPermission
permission
=
et
.
getPermission
();
if
(
ObjectUtils
.
isEmpty
(
permission
)){
if
(
ObjectUtils
.
isEmpty
(
permission
)){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysPermission
majorEntity
=
syspermissionService
.
get
(
et
.
getPermissionid
());
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysPermission
majorEntity
=
syspermissionService
.
get
ById
(
et
.
getPermissionid
());
et
.
setPermission
(
majorEntity
);
et
.
setPermission
(
majorEntity
);
permission
=
majorEntity
;
permission
=
majorEntity
;
}
}
...
@@ -252,7 +252,7 @@ public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionM
...
@@ -252,7 +252,7 @@ public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionM
if
(!
ObjectUtils
.
isEmpty
(
et
.
getRoleid
())){
if
(!
ObjectUtils
.
isEmpty
(
et
.
getRoleid
())){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
role
=
et
.
getRole
();
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
role
=
et
.
getRole
();
if
(
ObjectUtils
.
isEmpty
(
role
)){
if
(
ObjectUtils
.
isEmpty
(
role
)){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
majorEntity
=
sysroleService
.
get
(
et
.
getRoleid
());
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
majorEntity
=
sysroleService
.
get
ById
(
et
.
getRoleid
());
et
.
setRole
(
majorEntity
);
et
.
setRole
(
majorEntity
);
role
=
majorEntity
;
role
=
majorEntity
;
}
}
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysRoleServiceImpl.java
浏览文件 @
03dc67fe
...
@@ -247,12 +247,12 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
...
@@ -247,12 +247,12 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
* @param et
*/
*/
p
rivate
void
fillParentData
(
SysRole
et
){
p
ublic
void
fillParentData
(
SysRole
et
){
//实体关系[DER1N_SYS_ROLE_SYS_ROLE_PROLEID]
//实体关系[DER1N_SYS_ROLE_SYS_ROLE_PROLEID]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getProleid
())){
if
(!
ObjectUtils
.
isEmpty
(
et
.
getProleid
())){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
parent
=
et
.
getParent
();
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
parent
=
et
.
getParent
();
if
(
ObjectUtils
.
isEmpty
(
parent
)){
if
(
ObjectUtils
.
isEmpty
(
parent
)){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
majorEntity
=
sysroleService
.
get
(
et
.
getProleid
());
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
majorEntity
=
sysroleService
.
get
ById
(
et
.
getProleid
());
et
.
setParent
(
majorEntity
);
et
.
setParent
(
majorEntity
);
parent
=
majorEntity
;
parent
=
majorEntity
;
}
}
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysUserAuthServiceImpl.java
浏览文件 @
03dc67fe
...
@@ -213,12 +213,12 @@ public class SysUserAuthServiceImpl extends ServiceImpl<SysUserAuthMapper, SysUs
...
@@ -213,12 +213,12 @@ public class SysUserAuthServiceImpl extends ServiceImpl<SysUserAuthMapper, SysUs
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
* @param et
*/
*/
p
rivate
void
fillParentData
(
SysUserAuth
et
){
p
ublic
void
fillParentData
(
SysUserAuth
et
){
//实体关系[DER1N_SYS_USER_AUTH_SYS_USER_USERID]
//实体关系[DER1N_SYS_USER_AUTH_SYS_USER_USERID]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getUserid
())){
if
(!
ObjectUtils
.
isEmpty
(
et
.
getUserid
())){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
user
=
et
.
getUser
();
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
user
=
et
.
getUser
();
if
(
ObjectUtils
.
isEmpty
(
user
)){
if
(
ObjectUtils
.
isEmpty
(
user
)){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
majorEntity
=
sysuserService
.
get
(
et
.
getUserid
());
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
majorEntity
=
sysuserService
.
get
ById
(
et
.
getUserid
());
et
.
setUser
(
majorEntity
);
et
.
setUser
(
majorEntity
);
user
=
majorEntity
;
user
=
majorEntity
;
}
}
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysUserRoleServiceImpl.java
浏览文件 @
03dc67fe
...
@@ -230,12 +230,12 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
...
@@ -230,12 +230,12 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* 为当前实体填充父数据(外键值文本、外键值附加数据)
* @param et
* @param et
*/
*/
p
rivate
void
fillParentData
(
SysUserRole
et
){
p
ublic
void
fillParentData
(
SysUserRole
et
){
//实体关系[DER1N_SYS_USER_ROLE_SYS_ROLE_SYS_ROLEID]
//实体关系[DER1N_SYS_USER_ROLE_SYS_ROLE_SYS_ROLEID]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getRoleid
())){
if
(!
ObjectUtils
.
isEmpty
(
et
.
getRoleid
())){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
role
=
et
.
getRole
();
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
role
=
et
.
getRole
();
if
(
ObjectUtils
.
isEmpty
(
role
)){
if
(
ObjectUtils
.
isEmpty
(
role
)){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
majorEntity
=
sysroleService
.
get
(
et
.
getRoleid
());
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysRole
majorEntity
=
sysroleService
.
get
ById
(
et
.
getRoleid
());
et
.
setRole
(
majorEntity
);
et
.
setRole
(
majorEntity
);
role
=
majorEntity
;
role
=
majorEntity
;
}
}
...
@@ -245,7 +245,7 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
...
@@ -245,7 +245,7 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
if
(!
ObjectUtils
.
isEmpty
(
et
.
getUserid
())){
if
(!
ObjectUtils
.
isEmpty
(
et
.
getUserid
())){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
user
=
et
.
getUser
();
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
user
=
et
.
getUser
();
if
(
ObjectUtils
.
isEmpty
(
user
)){
if
(
ObjectUtils
.
isEmpty
(
user
)){
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
majorEntity
=
sysuserService
.
get
(
et
.
getUserid
());
cn
.
ibizlab
.
core
.
uaa
.
domain
.
SysUser
majorEntity
=
sysuserService
.
get
ById
(
et
.
getUserid
());
et
.
setUser
(
majorEntity
);
et
.
setUser
(
majorEntity
);
user
=
majorEntity
;
user
=
majorEntity
;
}
}
...
...
ibzuaa-core/src/main/resources/rules/SysUsersaveSysUserRule.drl
浏览文件 @
03dc67fe
...
@@ -20,12 +20,12 @@ ruleflow-group "sysusersavesysuserbegin"
...
@@ -20,12 +20,12 @@ ruleflow-group "sysusersavesysuserbegin"
then
then
end
end
//
逻辑处理节点
[
保存用户
]
//
逻辑处理节点
[
设置用户为管理员
]
rule
"
deaction
1"
rule
"
prepareparam
1"
ruleflow
-
group
"sysusersavesysuser
deaction
1"
ruleflow
-
group
"sysusersavesysuser
prepareparam
1"
when
when
then
then
sysusers
ervice
.
save
(
sysusersavesysuserdefault
);
sysusers
avesysuserdefault
.
set
(
"superuser"
,
"1"
);
update
(
sysusersavesysuserdefault
);//
更新
fact
中变量值
update
(
sysusersavesysuserdefault
);//
更新
fact
中变量值
end
end
...
@@ -38,12 +38,12 @@ ruleflow-group "sysusersavesysuserdeaction2"
...
@@ -38,12 +38,12 @@ ruleflow-group "sysusersavesysuserdeaction2"
update
(
sysusersavesysuserdefault
);//
更新
fact
中变量值
update
(
sysusersavesysuserdefault
);//
更新
fact
中变量值
end
end
//
逻辑处理节点
[
设置用户为管理员
]
//
逻辑处理节点
[
保存用户
]
rule
"
prepareparam
1"
rule
"
deaction
1"
ruleflow
-
group
"sysusersavesysuser
prepareparam
1"
ruleflow
-
group
"sysusersavesysuser
deaction
1"
when
when
then
then
sysusers
avesysuserdefault
.
set
(
"superuser"
,
"1"
);
sysusers
ervice
.
save
(
sysusersavesysuserdefault
);
update
(
sysusersavesysuserdefault
);//
更新
fact
中变量值
update
(
sysusersavesysuserdefault
);//
更新
fact
中变量值
end
end
ibzuaa-core/src/main/resources/rules/SysUsersaveSysUserRuleFlow.bpmn
浏览文件 @
03dc67fe
...
@@ -12,13 +12,13 @@
...
@@ -12,13 +12,13 @@
<tns:global
identifier=
"sysusersavesysuserdefault"
type=
"cn.ibizlab.core.uaa.domain.SysUser"
/>
<tns:global
identifier=
"sysusersavesysuserdefault"
type=
"cn.ibizlab.core.uaa.domain.SysUser"
/>
</extensionElements>
</extensionElements>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"sysusersavesysuserdeaction1"
id=
"deaction1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"保存用户"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"sysusersavesysuserprepareparam1"
id=
"prepareparam1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"设置用户为管理员"
/>
<endEvent
id=
"deaction1_end"
name=
"end"
/>
<sequenceFlow
id=
"deaction1_end_line"
sourceRef=
"deaction1"
targetRef=
"deaction1_end"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"sysusersavesysuserdeaction2"
id=
"deaction2"
implementation=
"http://www.jboss.org/drools/rule"
name=
"保存用户"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"sysusersavesysuserdeaction2"
id=
"deaction2"
implementation=
"http://www.jboss.org/drools/rule"
name=
"保存用户"
/>
<endEvent
id=
"deaction2_end"
name=
"end"
/>
<endEvent
id=
"deaction2_end"
name=
"end"
/>
<sequenceFlow
id=
"deaction2_end_line"
sourceRef=
"deaction2"
targetRef=
"deaction2_end"
/>
<sequenceFlow
id=
"deaction2_end_line"
sourceRef=
"deaction2"
targetRef=
"deaction2_end"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"sysusersavesysuserprepareparam1"
id=
"prepareparam1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"设置用户为管理员"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"sysusersavesysuserdeaction1"
id=
"deaction1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"保存用户"
/>
<endEvent
id=
"deaction1_end"
name=
"end"
/>
<sequenceFlow
id=
"deaction1_end_line"
sourceRef=
"deaction1"
targetRef=
"deaction1_end"
/>
<sequenceFlow
id=
"gateway-begin_prepareparam1"
sourceRef=
"gateway-begin"
targetRef=
"prepareparam1"
>
<sequenceFlow
id=
"gateway-begin_prepareparam1"
sourceRef=
"gateway-begin"
targetRef=
"prepareparam1"
>
<conditionExpression
language=
"http://www.jboss.org/drools/rule"
>
<![CDATA[
<conditionExpression
language=
"http://www.jboss.org/drools/rule"
>
<![CDATA[
$sysusersavesysuserdefault:SysUser();
$sysusersavesysuserdefault:SysUser();
...
...
ibzuaa-util/src/main/java/cn/ibizlab/util/cache/RedisCacheConfig.java
浏览文件 @
03dc67fe
...
@@ -27,6 +27,8 @@ import cn.ibizlab.util.cache.cacheManager.LayeringCacheManager;
...
@@ -27,6 +27,8 @@ import cn.ibizlab.util.cache.cacheManager.LayeringCacheManager;
import
cn.ibizlab.util.cache.listener.RedisMessageListener
;
import
cn.ibizlab.util.cache.listener.RedisMessageListener
;
import
cn.ibizlab.util.cache.redis.CustomJacksonSerializer
;
import
cn.ibizlab.util.cache.redis.CustomJacksonSerializer
;
import
cn.ibizlab.util.enums.RedisChannelTopic
;
import
cn.ibizlab.util.enums.RedisChannelTopic
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.data.redis.LettuceClientConfigurationBuilderCustomizer
;
/**
/**
* 缓存配置类
* 缓存配置类
...
@@ -127,4 +129,15 @@ public class RedisCacheConfig {
...
@@ -127,4 +129,15 @@ public class RedisCacheConfig {
container
.
addMessageListener
(
messageListener
,
RedisChannelTopic
.
REDIS_CACHE_DYNAMICMODEL_TOPIC
.
getChannelTopic
());
container
.
addMessageListener
(
messageListener
,
RedisChannelTopic
.
REDIS_CACHE_DYNAMICMODEL_TOPIC
.
getChannelTopic
());
return
container
;
return
container
;
}
}
@Bean
@ConditionalOnProperty
(
value
=
{
"spring.redis.ssl"
},
havingValue
=
"true"
)
public
LettuceClientConfigurationBuilderCustomizer
lettuceClientConfigurationBuilderCustomizer
(){
return
(
clientConfigurationBuilder
)
->{
clientConfigurationBuilder
.
useSsl
().
disablePeerVerification
();
};
}
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录