代码调整
This commit is contained in:
parent
01320b9e04
commit
9d3cea8669
|
|
@ -81,6 +81,7 @@ func (p *OrderRepoImpl) Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderB
|
|||
}
|
||||
|
||||
tx := p.DB(ctx).Create(info)
|
||||
|
||||
if tx.Error != nil {
|
||||
return nil, fmt.Errorf("create db fail %w", tx.Error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue