Exemplo n.º 1
0
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
}
Exemplo n.º 2
0
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
}