@@ -48,9 +48,8 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
...
@@ -48,9 +48,8 @@ public class MessageDaoImpl extends BaseDaoImpl implements MessageDao, Initializ
.add("batchId","AND a.batchId=?")
.add("batchId","AND a.batchId=?")
;
;
table.add(UPDATE_BATCH_SQL,"UPDATE Queue_Message AS a "+
table.add(UPDATE_BATCH_SQL,"UPDATE (SELECT * FROM Queue_Message WHERE (HandleTime IS NULL OR HandleTime < NOW()) ORDER BY HandleTime ASC,MessageId ASC {LIMIT} ) AS b "+
"INNER JOIN ( SELECT * FROM Queue_Message WHERE (HandleTime IS NULL OR HandleTime < NOW()) "+
"INNER JOIN Queue_Message AS a ON a.MessageId = b.MessageId "+
"ORDER BY HandleTime ASC,MessageId ASC {LIMIT} ) AS b ON a.MessageId = b.MessageId "+