String hql = "SELECT openId FROM ReadLog where createTime > :startTime group by openId having count(1)>:count";
以上语句报错,原因是hql不允许使用count(1)
正解:
String hql = "SELECT openId FROM ReadLog where createTime > :startTime group by openId having count(openId)>:count";