正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -77,7 +77,7 @@ func (repository *ColumnSettingRepository) Remove(columnSetting *domain.ColumnSe | @@ -77,7 +77,7 @@ func (repository *ColumnSettingRepository) Remove(columnSetting *domain.ColumnSe | ||
77 | func (repository *ColumnSettingRepository) FindOne(queryOptions map[string]interface{}) (*domain.ColumnSetting, error) { | 77 | func (repository *ColumnSettingRepository) FindOne(queryOptions map[string]interface{}) (*domain.ColumnSetting, error) { |
78 | tx := repository.transactionContext.PgTx | 78 | tx := repository.transactionContext.PgTx |
79 | columnSettingModel := new(models.ColumnSetting) | 79 | columnSettingModel := new(models.ColumnSetting) |
80 | - query := tx.Model(&columnSettingModel) | 80 | + query := tx.Model(columnSettingModel) |
81 | if columnSettingId, ok := queryOptions["column_settingId"]; ok { | 81 | if columnSettingId, ok := queryOptions["column_settingId"]; ok { |
82 | query = query.Where("column_setting.id = ?", columnSettingId) | 82 | query = query.Where("column_setting.id = ?", columnSettingId) |
83 | } | 83 | } |
-
请 注册 或 登录 后发表评论