在where子句中排序访问列

时间:2018-12-17 14:12:15

标签: sequelize.js momentjs

这是我的@Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { Map<String, String> props = new HashMap<String, String>(); if(msg instanceof HttpResponse) { logger.debug("channelRead()"); HttpResponse httpRes = (HttpResponse) msg; HttpResponseStatus httpStatus = httpRes.status(); props.put(REQUEST_ID, this.Request.getRequestId()); props.put(CLIENT_RESPONSE_CODE, String.valueOf(httpStatus.code())); JmsService.getInstance(DESTINATION).sendTextMessage(props, ""); logger.debug("channelRead() HttpResponse Code: " + httpStatus.code()); ctx.close(); } } @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { Map<String, String> props = new HashMap<String, String>(); logger.error("exceptionCaught()", cause); if(cause instanceof ReadTimeoutException) { //If read-timeout, send back the response props.put(REQUEST_ID, this.Request.getRequestId()); props.put(CLIENT_RESPONSE_CODE, String.valueOf(HttpResponseStatus.REQUEST_TIMEOUT.code())); JmsService.getInstance(DESTINATION).sendTextMessage(props, ""); ctx.close(); } else { logger.error("Exception: ", cause); } } 模型:

Program:DATETIME airDate:整数

我想找到完成它们的程序。所以我这样做:

duration

但它返回查询中的当前时间,未减去。

0 个答案:

没有答案