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