@Override
    public boolean updateLastGenerateTriggerTime(String jobId, Long lastGenerateTriggerTime) {
        Query<JobPo> query = template.createQuery(getTableName(), JobPo.class);

        query.field("jobId").equal(jobId);

        UpdateOperations<JobPo> operations =
                template.createUpdateOperations(JobPo.class)
                        .set("lastGenerateTriggerTime", lastGenerateTriggerTime)
                        .set("gmtModified", SystemClock.now());

        UpdateResults ur = template.update(query, operations);
        return ur.getUpdatedCount() == 1;
    }
@author Robert HG (254963746@qq.com) on 4/4/16.
lts-core/src/main/java/com/github/ltsopensource/queue/mongo/MongoSchedulerJobQueue.java