Roc il y a 2 ans
Parent
commit
73b54d9049

+ 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
 }