{
Sql sqlRoleIds = Sqls.create("select topicid from $table $condition");
sqlRoleIds.vars().set("table", "t_forum_reply");
sqlRoleIds.setCondition(Cnd.where("userId", "=", user.getId()).groupBy("topicid"));
sqlRoleIds.setCallback(Sqls.callback.strList());
dao.execute(sqlRoleIds);
List<String> topicIds = sqlRoleIds.getObject(List.class);
createPager.setRecordCount(topicIds.size());
}
int count = dao.count("t_forum_reply",Cnd.where("userId", "=", user.getId()).groupBy("topicid"));
createPager.setRecordCount(count);