作者 陈志颖

test:测试删除用户

@@ -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)