为了账号安全,请及时绑定邮箱和手机立即绑定

在s2sh中遇到的问题 初学者

在s2sh中遇到的问题 初学者

梵蒂冈之花 2019-03-28 22:19:29
我就是敲了这些代码之后报的错误private String getCondition() {String whereHQL = "";if (messagestatisticsForm.getSendMobileID() != null) {whereHQL = " where sendMobileID="+ messagestatisticsForm.getSendMobileID();}    if (!StringUtils.isBlank(messagestatisticsForm.getCreateTimeStart())) {         if ("".equals(whereHQL)) {             whereHQL = " where createTimeStart>='"                     + messagestatisticsForm.getCreateTimeStart() + "'";         } else {             whereHQL = " and createTimeStart>='"                     + messagestatisticsForm.getCreateTimeStart() + "'";         }     }     if (!StringUtils.isBlank(messagestatisticsForm.getCreateTimeEnd())) {         if ("".equals(whereHQL)) {             whereHQL = " where createTimeEnd<='"                     + messagestatisticsForm.getCreateTimeEnd() + "'";         } else {             whereHQL = " and createTimeEnd<='"                     + messagestatisticsForm.getCreateTimeEnd() + "'";         }     }     // whereHQL += " order by id";     return whereHQL; }控制台中报的错误ERROR [org.hibernate.hql.PARSER] - line 1:56: unexpected token: and
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 429 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号