正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -124,7 +124,7 @@ func (repository *ColumnSettingRepository) Find(queryOptions map[string]interfac | @@ -124,7 +124,7 @@ func (repository *ColumnSettingRepository) Find(queryOptions map[string]interfac | ||
124 | columnSettings := make([]*domain.ColumnSetting, 0) | 124 | columnSettings := make([]*domain.ColumnSetting, 0) |
125 | query := tx.Model(&columnSettingModels) | 125 | query := tx.Model(&columnSettingModels) |
126 | if ids, ok := queryOptions["ids"]; ok && len(ids.([]int64)) != 0 { | 126 | if ids, ok := queryOptions["ids"]; ok && len(ids.([]int64)) != 0 { |
127 | - query = query.Where("column_setting.uid IN (?)", ids.([]int64)) | 127 | + query = query.Where("column_setting.uid in(?)", ids) |
128 | } | 128 | } |
129 | if uid, ok := queryOptions["uid"]; ok { | 129 | if uid, ok := queryOptions["uid"]; ok { |
130 | query = query.Where("column_setting.uid = ?", uid) | 130 | query = query.Where("column_setting.uid = ?", uid) |
-
请 注册 或 登录 后发表评论