Roc 2 年之前
父节点
当前提交
73b54d9049
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/tables/yb_community_question_comment/yb_community_question_comment.go

+ 1 - 1
models/tables/yb_community_question_comment/yb_community_question_comment.go

@@ -85,7 +85,7 @@ func GetCommunityQuestionCommentList(condition string, pars []interface{}, start
 func GetCommunityQuestionCommentListByIds(CommunityQuestionCommentIds string) (list []*YbCommunityQuestionComment, err error) {
 	o := orm.NewOrm()
 	// 列表数据
-	sql := `SELECT q.* FROM yb_community_question_comment q WHERE q.enabled = 0 AND community_question_comment_id in (` + CommunityQuestionCommentIds + `)`
+	sql := `SELECT q.* FROM yb_community_question_comment q WHERE q.enabled = 1 AND community_question_comment_id in (` + CommunityQuestionCommentIds + `)`
 	_, err = o.Raw(sql).QueryRows(&list)
 	return
 }