...
|
...
|
@@ -67,8 +67,8 @@ func (repository *ColumnSettingRepository) Save(columnSetting *domain.ColumnSett |
|
|
func (repository *ColumnSettingRepository) Remove(columnSetting *domain.ColumnSetting, columnSettings []*domain.ColumnSetting) (*domain.ColumnSetting, []*domain.ColumnSetting, error) {
|
|
|
tx := repository.transactionContext.PgTx
|
|
|
|
|
|
// 单个删除
|
|
|
if columnSetting != nil {
|
|
|
// 单个删除
|
|
|
columnSettingModel := new(models.ColumnSetting)
|
|
|
columnSettingModel.Id = columnSetting.Identify().(int64)
|
|
|
if _, err := tx.Model(columnSettingModel).WherePK().Delete(); err != nil {
|
...
|
...
|
@@ -88,6 +88,7 @@ func (repository *ColumnSettingRepository) Remove(columnSetting *domain.ColumnSe |
|
|
return nil, columnSettings, err
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return columnSetting, columnSettings, nil
|
|
|
}
|
|
|
|
...
|
...
|
|