Commit 8aee4b9e authored by yanzg's avatar yanzg

日志只执行1次

parent 65509026
......@@ -24,7 +24,7 @@ public class MessageLogDaoImpl extends BaseDaoImpl implements MessageLogDao, Ini
" `lastTime` datetime NOT NULL COMMENT '消息最后删除时间,默认为24小时之后,但是不会超过25小时', " +
" `createTime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', " +
" PRIMARY KEY (`MessageId`), " +
" INDEX `IndexLastTime` (`lastTime`) " +
" INDEX `IndexLastTime` (`lastTime`), " +
" UNIQUE INDEX `IndexQueueMessageId` (`queue`,`queue`) " +
") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息任务表'";
private static final String REMOVE_TABLE_SQL = "DELETE queue_log WHERE IndexLastTime<NOW()";
......
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