update go mo

This commit is contained in:
2023-10-13 22:18:21 +08:00
3 changed files with 21 additions and 46 deletions

View File

@ -157,7 +157,7 @@ func (b *BaseDao) setTxCondition(tx *gorm.DB, optionFuncList ...SetOption) *gorm
// 指定查询的表
if len(o.Table) > 0 {
tx.Table(o.Table)
tx = tx.Table(o.Table)
} else {
tx = tx.Table(b.TableName)
}