合并分支 'dev' 到 'test'
fix:栏目设置查询批量id类型修改 查看合并请求 !23
正在显示
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 { | 126 | if ids, ok := queryOptions["ids"]; ok { |
127 | - query = query.Where("column_setting.uid IN (?)", pg.In(ids.(int))) | 127 | + query = query.Where("column_setting.uid IN (?)", pg.In(ids.(int64))) |
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) |
-
请 注册 或 登录 后发表评论