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