org.jooq.TableField.le()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中org.jooq.TableField.le()方法的一些代码示例,展示了TableField.le()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableField.le()方法的具体详情如下:
包路径:org.jooq.TableField
类名称:TableField
方法名:le

TableField.le介绍

暂无

代码示例

代码示例来源:origin: k55k32/cms-admin-end

private Stream<Condition> getCondition(Long start, Long end) {
  return Stream.of(C_PAGE_VIEW.CREATE_TIME.ge(new Timestamp(start)), C_PAGE_VIEW.CREATE_TIME.le(new Timestamp(end)));
}

代码示例来源:origin: rancher/cattle

protected Condition runAfterCondition(String resourceType) {
  if (resourceType == null) {
    return PROCESS_INSTANCE.RUN_AFTER.isNull()
        .or(PROCESS_INSTANCE.RUN_AFTER.le(new Date()));
  }
  return DSL.trueCondition();
}

代码示例来源:origin: rancher/cattle

return field.lt(condition.getValue());
case LTE:
  return field.le(condition.getValue());
case NE:
  return field.ne(condition.getValue());

代码示例来源:origin: com.walmartlabs.concord.server/concord-server

q.START_AT.le(currentTimestamp()))));

代码示例来源:origin: com.walmartlabs.concord.server/concord-server

Map<String, Object> e = tx.select(TRIGGER_SCHEDULE.TRIGGER_ID, TRIGGER_SCHEDULE.FIRE_AT)
    .from(TRIGGER_SCHEDULE)
    .where(TRIGGER_SCHEDULE.FIRE_AT.le(currentTimestamp()))
    .limit(1)
    .forUpdate()

代码示例来源:origin: k55k32/cms-admin-end

public ArticleDetail getDetail(String id) {
  CArticle article = C_ARTICLE.as("a");
  CArticle before = C_ARTICLE.as("b");
  CArticle next = C_ARTICLE.as("n");
  CArticle inner = C_ARTICLE.as("i");
  ArticleDetail a = dao.execute(e -> {
    return e.select(Fields.all(article.fields(),
      before.ID.as("beforeId"),
      before.TITLE.as("beforeTitle"),
      next.ID.as("nextId"),
      next.TITLE.as("nextTitle")
      )).from(article)
      .leftJoin(before).on(before.ID.eq(e.select(inner.ID).from(inner).where(article.CREATE_TIME.ge(inner.CREATE_TIME)).and(inner.ID.ne(article.ID).and(inner.STATUS.eq(Article.STATUS_PUBLISH))).orderBy(inner.CREATE_TIME.desc()).limit(0, 1)))
      .leftJoin(next).on((next.ID.eq(e.select(inner.ID).from(inner).where(article.CREATE_TIME.le(inner.CREATE_TIME)).and(inner.ID.ne(article.ID).and(inner.STATUS.eq(Article.STATUS_PUBLISH))).orderBy(inner.CREATE_TIME).limit(0, 1))))
      .where(article.ID.eq(id))
      .fetchOne(r -> {
        return dao.mapperEntityEx(r, ArticleDetail.class);
      });
  });
  List<Tag> tags = articleTagService.findTags(a.getId());
  a.setTags(tags);
  return a;
}

相关文章