lisai17@sina.com 2020-11-17 13:33:58 +08:00
parent 0ce568d273
commit 1aae66c5e1
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class CheckExceptionDataJob implements Job {
if (!onlineids.isEmpty()) {
sync = Db.queryInt("select count(t.id) cnt from sync_task t \n" +
" where t.state = 0 \n" +
" and t.create_time < date_add(now(), interval -5 minute) \n" +
" and t.supermarket_id in(" + StrKit.join(onlineids, ",") + ") ");
if (sync > 0) {