Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
67bbd6f4
Commit
67bbd6f4
authored
Feb 23, 2023
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出Excel边框
parent
7d97c77f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
MessageDaoImpl.java
...main/java/com/yanzuoguang/mq/dao/impl/MessageDaoImpl.java
+3
-2
No files found.
yzg-util-mq/src/main/java/com/yanzuoguang/mq/dao/impl/MessageDaoImpl.java
View file @
67bbd6f4
...
@@ -30,6 +30,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
...
@@ -30,6 +30,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
" `RouteKey` varchar(255) NOT NULL DEFAULT '' COMMENT '路由键', "
+
" `RouteKey` varchar(255) NOT NULL DEFAULT '' COMMENT '路由键', "
+
" `Message` text NOT NULL COMMENT '消息内容', "
+
" `Message` text NOT NULL COMMENT '消息内容', "
+
" `DedTime` bigint(20) NOT NULL DEFAULT '0' COMMENT '死信时间', "
+
" `DedTime` bigint(20) NOT NULL DEFAULT '0' COMMENT '死信时间', "
+
" `DedTimeType` int(11) NOT NULL DEFAULT '0' COMMENT '延迟方式:0-自动,1-私有,2-公有', "
+
" `HandleCount` int(11) NOT NULL DEFAULT '0' COMMENT '处理次数', "
+
" `HandleCount` int(11) NOT NULL DEFAULT '0' COMMENT '处理次数', "
+
" `HandleTime` datetime NOT NULL COMMENT '上次处理时间', "
+
" `HandleTime` datetime NOT NULL COMMENT '上次处理时间', "
+
" `BatchId` varchar(32) NOT NULL COMMENT '发送批次', "
+
" `BatchId` varchar(32) NOT NULL COMMENT '发送批次', "
+
...
@@ -38,7 +39,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
...
@@ -38,7 +39,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
" KEY `IndexHandleTime` (`HandleTime`) "
+
" KEY `IndexHandleTime` (`HandleTime`) "
+
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='队列消息表'"
;
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='队列消息表'"
;
private
static
final
String
ALTER_TABLE_SQL
=
"ALTER TABLE queue_message "
+
private
static
final
String
ALTER_TABLE_SQL
=
"ALTER TABLE queue_message "
+
"
MODIFY COLUMN `DedTime` bigint(20) NOT NULL DEFAULT 0 COMMENT '死信时间' AFTER `Messag
e`"
;
"
ADD`DedTimeType` int(11) NOT NULL DEFAULT '0' COMMENT '延迟方式:0-自动,1-私有,2-公有' AFTER `DedTim
e`"
;
@Override
@Override
protected
void
init
()
{
protected
void
init
()
{
...
@@ -71,7 +72,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
...
@@ -71,7 +72,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
if
(
tables
.
isEmpty
())
{
if
(
tables
.
isEmpty
())
{
this
.
getDb
().
update
(
MessageDaoImpl
.
class
,
"CREATE_TABLE_SQL"
,
CREATE_TABLE_SQL
);
this
.
getDb
().
update
(
MessageDaoImpl
.
class
,
"CREATE_TABLE_SQL"
,
CREATE_TABLE_SQL
);
}
else
{
}
else
{
//
this.getDb().update(MessageDaoImpl.class, "ALTER_TABLE_SQL", ALTER_TABLE_SQL);
this
.
getDb
().
update
(
MessageDaoImpl
.
class
,
"ALTER_TABLE_SQL"
,
ALTER_TABLE_SQL
);
}
}
})
})
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment