|
@@ -444,7 +444,7 @@ func (repository *ArticleCommentRepository) CommentUserCount(ctx context.Context |
|
@@ -444,7 +444,7 @@ func (repository *ArticleCommentRepository) CommentUserCount(ctx context.Context |
444
|
tx = conn.DB()
|
444
|
tx = conn.DB()
|
445
|
c int64
|
445
|
c int64
|
446
|
)
|
446
|
)
|
447
|
- err = tx.Model(&models.ArticleComment{}).Where("company_id = ? and article_id = ?", companyId, articleId).Group("user_id").Count(&c).Error
|
447
|
+ err = tx.Model(&models.ArticleComment{}).Where("company_id = ? and article_id = ?", companyId, articleId).Group("from_user_id").Count(&c).Error
|
448
|
return c, err
|
448
|
return c, err
|
449
|
}
|
449
|
}
|
450
|
|
450
|
|
|
@@ -455,7 +455,7 @@ func (repository *ArticleCommentRepository) ReplyUserCount(ctx context.Context, |
|
@@ -455,7 +455,7 @@ func (repository *ArticleCommentRepository) ReplyUserCount(ctx context.Context, |
455
|
tx = conn.DB()
|
455
|
tx = conn.DB()
|
456
|
c int64
|
456
|
c int64
|
457
|
)
|
457
|
)
|
458
|
- err = tx.Model(&models.ArticleComment{}).Where("company_id = ? and pid = ?", companyId, commentId).Group("user_id").Count(&c).Error
|
458
|
+ err = tx.Model(&models.ArticleComment{}).Where("company_id = ? and pid = ?", companyId, commentId).Group("from_user_id").Count(&c).Error
|
459
|
return c, err
|
459
|
return c, err
|
460
|
}
|
460
|
}
|
461
|
|
461
|
|