try {
tmpResult = dao
.query("select tid,tname,turl,updatetime,sleeptime from task where runable=1 and nextstart<=now()");
for (Object[] tmp : tmpResult) {
Task t = new Task();
t.setTid(tmp[0].toString());
t.setTname(tmp[1].toString());
t.setTurl(tmp[2].toString());
t.setUpdatetime(tmp[3].toString());
t.setSleeptime(tmp[4].toString());
result.add(t);
}
} catch (Exception e) {
logger.error("", e);
}