示例#1
0
文件: sale_rep.go 项目: jacobxk/go2o
func (this *saleRep) GetSale(partnerId int) sale.ISale {
	v, ok := this._cache[partnerId]
	if !ok {
		v = saleImpl.NewSale(partnerId, this, this._goodsRep, this._tagRep, this._promRep)
		this._cache[partnerId] = v
	}
	return v
}
示例#2
0
文件: sale_rep.go 项目: honj51/go2o
func (this *saleRep) GetSale(partnerId int) sale.ISale {
	v, ok := this.cache[partnerId]
	if !ok {
		v = saleImpl.NewSale(partnerId, this)
		this.cache[partnerId] = v
	}
	return v
}