两个时间点之间的记录查询
crit.add(Restrictions.sqlRestriction("{alias}.LogTime between ? and ?",
new String[]{this.smf1.format( conditionExample.getStartTime()),smf2.format(conditionExample.getEndTime())}
,new Type[]{Hibernate.STRING,Hibernate.STRING}));
crit.add(Restrictions.sqlRestriction("{alias}.LogTime between ? and ?",
new String[]{this.smf1.format( conditionExample.getStartTime()),smf2.format(conditionExample.getEndTime())}
,new Type[]{Hibernate.STRING,Hibernate.STRING}));