@Override
    public List<JobPo> getNeedGenerateJobPos(Long checkTime, int topSize) {
        Query<JobPo> query = template.createQuery(JobPo.class);
        query.field("relyOnPrevCycle").equal(false);
        query.field("lastGenerateTriggerTime").equal(checkTime);
        query.offset(0).limit(topSize);
        return query.asList();
    }
@author Robert HG (254963746@qq.com) on 4/4/16.
lts-core/src/main/java/com/github/ltsopensource/queue/mongo/MongoSchedulerJobQueue.java