禁用事务

This commit is contained in:
ziming 2025-03-26 14:15:26 +08:00
parent 258344421d
commit 9bacaf120e
1 changed files with 3 additions and 3 deletions

View File

@ -19,16 +19,16 @@ import (
// OrderRepoImpl .
type OrderRepoImpl struct {
Base[model.Order, bo.OrderBo]
db *data.GormDb
db *data.Db
}
// NewOrderRepoImpl .
func NewOrderRepoImpl(db *data.GormDb) repo.OrderRepo {
func NewOrderRepoImpl(db *data.Db) repo.OrderRepo {
return &OrderRepoImpl{db: db}
}
func (p *OrderRepoImpl) DB(ctx context.Context) *gorm.DB {
return p.db.Client.WithContext(ctx).Model(model.Order{})
return p.db.DB(ctx).Model(model.Order{})
}
func (p *OrderRepoImpl) FindInBatches(ctx context.Context, w *bo.FindInBatchesUseBo, fun func(ctx context.Context, rows []*bo.OrderBo) error) error {