NutDao.query(Task.class, Cnd.where("createTime", "=", new Date()));
查询当天所有任务
要用between
能写一下示例吗,createTime为当天的数据,感谢
Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); long dayBegin = calendar.getTimeInMillis(); dao.query(Task.class, Cnd.where("createTime", ">", new Date(dayBegin)));