正在显示
1 个修改的文件
包含
0 行增加
和
4 行删除
| @@ -44,11 +44,7 @@ func (repository *ArticleRepository) Update(ctx context.Context, conn transactio | @@ -44,11 +44,7 @@ func (repository *ArticleRepository) Update(ctx context.Context, conn transactio | ||
| 44 | return nil, err | 44 | return nil, err |
| 45 | } | 45 | } |
| 46 | queryFunc := func() (interface{}, error) { | 46 | queryFunc := func() (interface{}, error) { |
| 47 | -<<<<<<< HEAD | ||
| 48 | - tx = tx.Model(m).Save(m) | ||
| 49 | -======= | ||
| 50 | tx = tx.Model(m).Select("*").Updates(m) | 47 | tx = tx.Model(m).Select("*").Updates(m) |
| 51 | ->>>>>>> dev | ||
| 52 | return nil, tx.Error | 48 | return nil, tx.Error |
| 53 | } | 49 | } |
| 54 | if _, err = repository.Query(queryFunc, m.CacheKeyFunc()); err != nil { | 50 | if _, err = repository.Query(queryFunc, m.CacheKeyFunc()); err != nil { |
-
请 注册 或 登录 后发表评论