NutzCN Logo
问答 关于DateUtil.getTime的问题
发布于 1874天前 作者 wx_o374j2qp4gae3dbu5kbe 1597 次浏览 复制 上一个帖子 下一个帖子
标签:

各位大佬我这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.
5 回复

是不是缺了空格

beginDate + " 00:00:00"
添加回复
请先登陆
回到顶部