回声结果基于日期UNIX_TIMESTAMP

时间:2016-02-12 02:07:50

标签: php

我正在尝试为我的网站构建case DragEvent.ACTION_DRAG_LOCATION: { removeDragScrollCallBack(); float y = event.getY(); final int scrollAreaHeight = v.getHeight()/4; final int delayMills = 16; int scrollAmount = 0; if (y > v.getHeight() - scrollAreaHeight) { scrollAmount = 10; } else if (y < scrollAreaHeight) { scrollAmount = -10; } if (Math.abs(scrollAmount) > 0) { final int finalScrollAmount = scrollAmount; dragScrollRunnable = new Runnable() { @Override public void run() { if (canScrollVertically(finalScrollAmount)) { scrollBy(0, finalScrollAmount); if (dragScrollHandler != null && dragScrollRunnable != null) { dragScrollHandler.postDelayed(this, delayMills); } } } }; dragScrollRunnable.run(); } return true; } ,以便我的用户可以查看他们的收入和statement view基本上我遇到的问题就是回声这笔交易为期14天。每14天生成一个新语句如何从特定日期的表格中选择所有条目?例如14 day period01/01/2016。有没有我可以用来做这个的特定脚本?

我要上传表格的结构,以帮助您更好地了解我的问题。

enter image description here

1 个答案:

答案 0 :(得分:2)

下面是基于上表的SQL查询,这应该选择两个所需日期之间的所有交易。

@Entity
class A {
  @Id
  private int b;
  @Id
  private int c;
}

@Embeddable
class BKey {
  private int a;
  private int b;
}

@Entity
class B {
  @EmbeddedId
  private BKey primaryKey;

  @ManyToOne(optional = false)
  @JoinColumns(value = {
          @JoinColumn(name = "b", referencedColumnName = "b", insertable= false, updatable= false),
          @JoinColumn(name = "c", referencedColumnName = "c") }, )
  private A entityA;
}