合并分支 'dev' 到 'test'
test:测试删除用户 查看合并请求 !35
正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
@@ -2,7 +2,6 @@ package repository | @@ -2,7 +2,6 @@ package repository | ||
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "fmt" | 4 | "fmt" |
5 | - "github.com/go-pg/pg" | ||
6 | "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/domain" | 5 | "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/domain" |
7 | 6 | ||
8 | "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/infrastructure/pg/models" | 7 | "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/infrastructure/pg/models" |
@@ -125,7 +124,7 @@ func (repository *ColumnSettingRepository) Find(queryOptions map[string]interfac | @@ -125,7 +124,7 @@ func (repository *ColumnSettingRepository) Find(queryOptions map[string]interfac | ||
125 | columnSettings := make([]*domain.ColumnSetting, 0) | 124 | columnSettings := make([]*domain.ColumnSetting, 0) |
126 | query := tx.Model(&columnSettingModels) | 125 | query := tx.Model(&columnSettingModels) |
127 | if ids, ok := queryOptions["ids"]; ok && len(ids.([]int64)) != 0 { | 126 | if ids, ok := queryOptions["ids"]; ok && len(ids.([]int64)) != 0 { |
128 | - query = query.Where("column_setting.uid IN (?)", pg.In(ids.([]int64))) | 127 | + query = query.Where("column_setting.uid IN (?)", ids.([]int64)) |
129 | } | 128 | } |
130 | if uid, ok := queryOptions["uid"]; ok { | 129 | if uid, ok := queryOptions["uid"]; ok { |
131 | query = query.Where("column_setting.uid = ?", uid) | 130 | query = query.Where("column_setting.uid = ?", uid) |
-
请 注册 或 登录 后发表评论