...
|
...
|
@@ -152,11 +152,11 @@ func (repository *NoticePersonalRepository) Find(queryOptions map[string]interfa |
|
|
query := sqlbuilder.BuildQuery(tx.Model(¬icePersonalModels), queryOptions)
|
|
|
query.SetOffsetAndLimit(20)
|
|
|
query.SetOrderDirect("notice_personal_id", "DESC")
|
|
|
query.SetWhereByQueryOption("notice_personal.user_id", "userId")
|
|
|
query.SetWhereByQueryOption("notice_personal.org_id", "orgId")
|
|
|
query.SetWhereByQueryOption("notice_personal.company_id", "companyId")
|
|
|
query.SetWhereByQueryOption("notice_personal.is_read", "isRead")
|
|
|
query.SetWhereByQueryOption("notice_personal.user_base_id", "userBaseId")
|
|
|
query.SetWhereByQueryOption("notice_personal.user_id=?", "userId")
|
|
|
query.SetWhereByQueryOption("notice_personal.org_id=?", "orgId")
|
|
|
query.SetWhereByQueryOption("notice_personal.company_id=?", "companyId")
|
|
|
query.SetWhereByQueryOption("notice_personal.is_read=?", "isRead")
|
|
|
query.SetWhereByQueryOption("notice_personal.user_base_id=?", "userBaseId")
|
|
|
if count, err := query.SelectAndCount(); err != nil {
|
|
|
return 0, noticePersonals, err
|
|
|
} else {
|
...
|
...
|
|