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";