func (obj *_BaseMgr) UpdateDB(db *gorm.DB) {
	obj.DB = db
}
UpdateDB update gorm.DB info
package po
import (
	"context"
	"fmt"
	"time"
	"gorm.io/gorm"
)
var globalIsRelated bool = true  
type _BaseMgr struct {
	*gorm.DB
	ctx       context.Context
	cancel    context.CancelFunc
	timeout   time.Duration
	isRelated bool
}
func (obj *_BaseMgr) SetTimeOut(timeout time.Duration) {
	obj.ctx, obj.cancel = context.WithTimeout(context.Background(), timeout)
	obj.timeout = timeout
}
func (obj *_BaseMgr) SetCtx(c context.Context) {
	if c != nil {
		obj.ctx = c
	}
}
func (obj *_BaseMgr) GetCtx() context.Context {
	return obj.ctx
}
func (obj *_BaseMgr) Cancel(c context.Context) {
	obj.cancel()
}
func (obj *_BaseMgr) GetDB() *gorm.DB {
	return obj.DB
}