func (this *Item) SetValue(v *sale.ValueItem) error { if v.Id == this._value.Id { v.CreateTime = this._value.CreateTime v.GoodsNo = this._value.GoodsNo this._value = v } this._value.UpdateTime = time.Now().Unix() return nil }