正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
@@ -105,7 +105,8 @@ func (repository *ExchangeCashActivityRepository) Find(queryOptions map[string]i | @@ -105,7 +105,8 @@ func (repository *ExchangeCashActivityRepository) Find(queryOptions map[string]i | ||
105 | func (repository *ExchangeCashActivityRepository) Remove(exchangeCashActivity *domain.ExchangeCashActivity) (*domain.ExchangeCashActivity, error) { | 105 | func (repository *ExchangeCashActivityRepository) Remove(exchangeCashActivity *domain.ExchangeCashActivity) (*domain.ExchangeCashActivity, error) { |
106 | tx := repository.transactionContext.PgTx | 106 | tx := repository.transactionContext.PgTx |
107 | exchangeCashActivityModel := new(models.ExchangeCashActivity) | 107 | exchangeCashActivityModel := new(models.ExchangeCashActivity) |
108 | - exchangeCashActivity.ActivityId = exchangeCashActivity.Identity().(int64) | 108 | + //exchangeCashActivity.ActivityId = exchangeCashActivity.Identity().(int64) |
109 | + exchangeCashActivityModel.Id = exchangeCashActivity.ActivityId | ||
109 | if _, err := tx.Model(exchangeCashActivityModel).WherePK().Delete(); err != nil { | 110 | if _, err := tx.Model(exchangeCashActivityModel).WherePK().Delete(); err != nil { |
110 | return exchangeCashActivity, err | 111 | return exchangeCashActivity, err |
111 | } | 112 | } |
@@ -98,7 +98,8 @@ func (repository *ExchangeCashPersonListRepository) Find(queryOptions map[string | @@ -98,7 +98,8 @@ func (repository *ExchangeCashPersonListRepository) Find(queryOptions map[string | ||
98 | func (repository *ExchangeCashPersonListRepository) Remove(exchangeCashList *domain.ExchangeCashPersonList) (*domain.ExchangeCashPersonList, error) { | 98 | func (repository *ExchangeCashPersonListRepository) Remove(exchangeCashList *domain.ExchangeCashPersonList) (*domain.ExchangeCashPersonList, error) { |
99 | tx := repository.transactionContext.PgTx | 99 | tx := repository.transactionContext.PgTx |
100 | exchangeCashListModel := new(models.ExchangeCashPersonList) | 100 | exchangeCashListModel := new(models.ExchangeCashPersonList) |
101 | - exchangeCashList.ListId = exchangeCashList.Identity().(int64) | 101 | + //exchangeCashList.ListId = exchangeCashList.Identity().(int64) |
102 | + exchangeCashListModel.Id = exchangeCashList.ListId | ||
102 | if _, err := tx.Model(exchangeCashListModel).WherePK().Delete(); err != nil { | 103 | if _, err := tx.Model(exchangeCashListModel).WherePK().Delete(); err != nil { |
103 | return exchangeCashList, err | 104 | return exchangeCashList, err |
104 | } | 105 | } |
-
请 注册 或 登录 后发表评论