各位大佬我这DateUtil.getTime()获取的值为啥总是0啊。。。
Cnd cnd = Cnd.NEW();
if (Strings.isNotBlank(beginDate)) {
cnd.and("createAt",">=", DateUtil.getTime(beginDate + "00:00:00"));
}
if (Strings.isNotBlank(endDate)){
cnd.and("createAt", "<=", DateUtil.getTime(endDate + "23:59:59"));
}
return orderService.data(length, start, draw, order, columns, cnd, null);
[DEBUG] 2019-11-05 11:39:02,464 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/platform/home/path 6ms
[DEBUG] 2019-11-05 11:39:02,476 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [POST] path=/platform/cust/order/data : CustOrderController.data(CustOrderController.java:50)
[DEBUG] 2019-11-05 11:39:02,477 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'custOrderController'<class cn.wizzer.app.web.modules.controllers.platform.cust.CustOrderController>
beginDate =================0=================
endDate =================0=================
[DEBUG] 2019-11-05 11:39:02,503 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT COUNT(*) FROM cust_order WHERE createAt >= ? AND createAt <= ?
| 1 | 2 |
|---|---|
| 0 | 0 |
For example:> "SELECT COUNT(*) FROM cust_order WHERE createAt >= 0 AND createAt <= 0"
[DEBUG] 2019-11-05 11:39:02,505 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM cust_order WHERE createAt >= ? AND createAt <= ? ORDER BY createAt DESC LIMIT 0, 10
| 1 | 2 |
|---|---|
| 0 | 0 |
For example:> "SELECT * FROM cust_order WHERE createAt >= 0 AND createAt <= 0 ORDER BY createAt DESC LIMIT 0, 10 "
[DEBUG] 2019-11-05 11:39:02,507 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [POST]URI=/platform/cust/order/data 31ms
[DEBUG] 2019-11-05 11:39:04,359 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[DEBUG] 2019-11-05 11:39:24,364 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.