提交 55dafdf3 authored 作者: Whispa's avatar Whispa

commit commit

上级 54a7da25
......@@ -96,8 +96,8 @@ public class TbCfItemComment{
@Transient
private boolean isLike;
@Formula(value = "(SELECT IFNULL(COUNT(*),0) as num FROM tb_cf_item_like lk where lk.comment_id = id)")
private Integer likeCount;
@Formula(value = "(SELECT IFNULL(COUNT(*),0) FROM tb_cf_item_like lk where lk.comment_id = id)")
private int likeCount;
public boolean isLike() {
return isLike;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论