-
Notifications
You must be signed in to change notification settings - Fork 451
Open
Description
internal/logic/admin/notice.go的UnreadCount方法
read, err := dao.AdminNoticeRead.Ctx(ctx).As("nr"). LeftJoin("admin_notice n", "nr.notice_id=n.id"). Where("n.type", t). WhereIn("n.id", in.MessageIds). Where("nr.member_id", in.MemberId). Count()
LeftJoin应该使用
LeftJoin(dao.AdminNotice.Table()+" n", "nr.notice_id=n.id").
这种方式吧。上面的方式直接报错,表admin_notice不存在
Metadata
Metadata
Assignees
Labels
No labels