postDoWherepostDALTitleLike + postQueryKeyword + OrpostDALOriginalContentLike + postQueryKeyword + 这段代码怎么改才能在生成sql中加上括号
(postDo.Where(postDAL.Title.Like("%" + *postQuery.Keyword + "%")).Or(postDAL.OriginalContent.Like("%" + *postQuery.Keyword + "%"))).Group() 改成这样即可在生成的 SQL 查询中加上括号。
原文地址: https://www.cveoy.top/t/topic/efON 著作权归作者所有。请勿转载和采集!