作者 陈志颖

fix:go-pg版本兼容性问题修复

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