...
|
...
|
@@ -162,7 +162,7 @@ func (repository *AppPageRepository) Find(ctx context.Context, conn transaction. |
|
|
total int64
|
|
|
)
|
|
|
queryFunc := func() (interface{}, error) {
|
|
|
tx = tx.Model(&ms).Order("id desc")
|
|
|
tx = tx.Model(&ms).Order("updated_at desc")
|
|
|
if v, ok := queryOptions["tenantId"]; ok {
|
|
|
tx.Where("tenant_id = ?", v)
|
|
|
}
|
...
|
...
|
|