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
322895fe
Commit
322895fe
authored
Mar 19, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不记录系统日志
parent
3db07cce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
MessageDaoImpl.java
...main/java/com/yanzuoguang/mq/dao/impl/MessageDaoImpl.java
+4
-0
No files found.
yzg-util-mq/src/main/java/com/yanzuoguang/mq/dao/impl/MessageDaoImpl.java
View file @
322895fe
...
...
@@ -35,6 +35,8 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
" PRIMARY KEY (`MessageId`), "
+
" KEY `IndexHandleTime` (`HandleTime`) "
+
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='队列消息表'"
;
private
static
final
String
ALTER_TABLE_SQL
=
"ALTER TABLE `tbd_system`.`queue_message` "
+
"MODIFY COLUMN `DedTime` bigint(0) NOT NULL DEFAULT 0 COMMENT '死信时间' AFTER `Message`"
;
@Override
protected
void
init
()
{
...
...
@@ -65,6 +67,8 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
List
<
MapRow
>
tables
=
this
.
getDb
().
query
(
MessageDaoImpl
.
class
,
"QUERY_TABLE_SQL"
,
QUERY_TABLE_SQL
);
if
(
tables
.
isEmpty
())
{
this
.
getDb
().
update
(
MessageDaoImpl
.
class
,
"CREATE_TABLE_SQL"
,
CREATE_TABLE_SQL
);
}
else
{
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