Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
677d868b
提交
677d868b
编写于
12月 25, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 发布系统代码 [ibz-ou,统一组织单位]
上级
79d5f090
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
52 行删除
+5
-52
RocketMQConfig.java
...main/java/cn/ibizlab/core/util/config/RocketMQConfig.java
+0
-48
h2_table.xml
ibzou-core/src/main/resources/liquibase/h2_table.xml
+4
-4
SysEmployeesaveDeptMemberRule.drl
...rc/main/resources/rules/SysEmployeesaveDeptMemberRule.drl
+1
-0
未找到文件。
ibzou-core/src/main/java/cn/ibizlab/core/util/config/RocketMQConfig.java
浏览文件 @
677d868b
...
...
@@ -52,53 +52,5 @@ public class RocketMQConfig {
return
producer
;
}
// 消费者线程数据量
@Value
(
"${ibiz.rocketmq.consumer.consumeThreadMin:1}"
)
private
Integer
consumeThreadMin
;
@Value
(
"${ibiz.rocketmq.consumer.consumeThreadMax:1}"
)
private
Integer
consumeThreadMax
;
@Value
(
"${ibiz.rocketmq.consumer.consumeMessageBatchMaxSize:1}"
)
private
Integer
consumeMessageBatchMaxSize
;
@Value
(
"${ibiz.rocketmq.topic:default}"
)
private
String
topic
;
@Autowired
@Lazy
private
RocketMQListenerProcessor
listenerProcessor
;
/**
* mq 消费者配置
*
* @return
* @throws MQClientException
*/
@Bean
public
DefaultMQPushConsumer
defaultConsumer
()
{
log
.
info
(
"defaultConsumer 正在创建---------------------------------------"
);
DefaultMQPushConsumer
consumer
=
new
DefaultMQPushConsumer
(
groupName
);
consumer
.
setNamesrvAddr
(
namesrvAddr
);
consumer
.
setConsumeThreadMin
(
consumeThreadMin
);
consumer
.
setConsumeThreadMax
(
consumeThreadMax
);
consumer
.
setConsumeMessageBatchMaxSize
(
consumeMessageBatchMaxSize
);
// 设置监听
consumer
.
registerMessageListener
(
listenerProcessor
);
/**
* 设置consumer第一次启动是从队列头部开始还是队列尾部开始
* 如果不是第一次启动,那么按照上次消费的位置继续消费
*/
consumer
.
setConsumeFromWhere
(
ConsumeFromWhere
.
CONSUME_FROM_FIRST_OFFSET
);
/**
* 设置消费模型,集群还是广播,默认为集群
*/
// consumer.setMessageModel(MessageModel.CLUSTERING);
try
{
consumer
.
subscribe
(
topic
,
"savesysuser"
);
consumer
.
start
();
log
.
info
(
"rocketmq consumer 创建成功 groupName={}, topics={}, namesrvAddr={}"
,
groupName
,
topic
,
namesrvAddr
);
}
catch
(
MQClientException
e
)
{
log
.
error
(
"rocketmq consumer 创建失败!"
+
e
);
}
return
consumer
;
}
}
ibzou-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
677d868b
...
...
@@ -60,7 +60,7 @@
<!--输出实体[SYS_EMP]数据结构 -->
<changeSet
author=
"root"
id=
"tab-sys_emp-8
3
-3"
>
<changeSet
author=
"root"
id=
"tab-sys_emp-8
4
-3"
>
<createTable
tableName=
"IBZEMP"
>
<column
name=
"USERID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_EMP_USERID"
/>
...
...
@@ -238,13 +238,13 @@
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_SYS_DEPTMEMBER_SYS_POST_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[SYS_EMP]外键关系 -->
<changeSet
author=
"root"
id=
"fk-sys_emp-8
3
-13"
>
<changeSet
author=
"root"
id=
"fk-sys_emp-8
4
-13"
>
<addForeignKeyConstraint
baseColumnNames=
"MDEPTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_DEPT_MDEPTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"root"
id=
"fk-sys_emp-8
3
-14"
>
<changeSet
author=
"root"
id=
"fk-sys_emp-8
4
-14"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_ORG_ORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"root"
id=
"fk-sys_emp-8
3
-15"
>
<changeSet
author=
"root"
id=
"fk-sys_emp-8
4
-15"
>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_POST_POSTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[SYS_ORG]外键关系 -->
...
...
ibzou-core/src/main/resources/rules/SysEmployeesaveDeptMemberRule.drl
浏览文件 @
677d868b
...
...
@@ -37,6 +37,7 @@ ruleflow-group "sysemployeesavedeptmemberprepareparam1"
when
then
sysemployeesavedeptmembermember
.
set
(
"deptid"
,
sysemployeesavedeptmemberdefault
.
get
(
"mdeptid"
));
sysemployeesavedeptmembermember
.
set
(
"postid"
,
sysemployeesavedeptmemberdefault
.
get
(
"postid"
));
sysemployeesavedeptmembermember
.
set
(
"userid"
,
sysemployeesavedeptmemberdefault
.
get
(
"userid"
));
update
(
sysemployeesavedeptmemberdefault
);//
更新
fact
中变量值
update
(
sysemployeesavedeptmembermember
);//
更新
fact
中变量值
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录