@ -187,6 +187,10 @@ func (b *BaseDao) setTxCondition(tx *gorm.DB, optionFuncList ...SetOption) *gorm
tx = tx.Table(b.TableName)
}
if nil != o.Model {
tx = tx.Model(o.Model)
// 设置where条件
if nil != o.Where && len(o.Where) > 0 {
tx = tx.Where(o.Where)
The note is not visible to the blocked user.