This commit is contained in:
hailin 2025-06-20 17:03:51 +08:00
parent 4dce056c5f
commit 84fa5c338e
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ func (dao *NewsDAO) QueryPullNew(cond *NewsPullNewCondition) (dos []*models.News
if len(cond.Pairs) > 0 {
orgIDs := make([]int64, 0, len(cond.Pairs))
for _, p := range cond.Pairs {
orgIDs = append(orgIDs, p.OrgID)
orgIDs = append(orgIDs, p.OrgId)
}
e.Where(fmt.Sprintf("%s NOT IN (?)", models.NEWS_COLUMN_ORG_ID), orgIDs)
}