Commit 67bbd6f4 authored by yanzg's avatar yanzg

导出Excel边框

parent 7d97c77f
......@@ -30,6 +30,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
" `RouteKey` varchar(255) NOT NULL DEFAULT '' COMMENT '路由键', " +
" `Message` text NOT NULL 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 '处理次数', " +
" `HandleTime` datetime NOT NULL COMMENT '上次处理时间', " +
" `BatchId` varchar(32) NOT NULL COMMENT '发送批次', " +
......@@ -38,7 +39,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
" KEY `IndexHandleTime` (`HandleTime`) " +
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='队列消息表'";
private static final String ALTER_TABLE_SQL = "ALTER TABLE queue_message " +
"MODIFY COLUMN `DedTime` bigint(20) NOT NULL DEFAULT 0 COMMENT '死信时间' AFTER `Message`";
"ADD`DedTimeType` int(11) NOT NULL DEFAULT '0' COMMENT '延迟方式:0-自动,1-私有,2-公有' AFTER `DedTime`";
@Override
protected void init() {
......@@ -71,7 +72,7 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
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);
this.getDb().update(MessageDaoImpl.class, "ALTER_TABLE_SQL", ALTER_TABLE_SQL);
}
})
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment