查询方法
if(searchModel.getStartTime() != null && !"".equals(searchModel.getStartTime())) { countCriteria.add(Restrictions.sqlRestriction("createtime >= to_date(\'"+searchModel.getStartTime()+"\',\'yyyy-mm-dd\')")); listCriteria.add(Restrictions.sqlRestriction("createtime >= to_date(\'"+searchModel.getStartTime()+"\',\'yyyy-mm-dd\')")); }