|
@@ -1492,18 +1492,18 @@ func (r *Ermcp8RunningHedgeditem) ParseFromProto(p *pb.Ermcp2HedgedItemInfo) {
|
|
|
r.MiddleGoodsList = make([]Ermcp2himiddlegoods, 0)
|
|
r.MiddleGoodsList = make([]Ermcp2himiddlegoods, 0)
|
|
|
for _, goods := range p.Himiddlegoodsext {
|
|
for _, goods := range p.Himiddlegoodsext {
|
|
|
g := Ermcp2himiddlegoods{
|
|
g := Ermcp2himiddlegoods{
|
|
|
- HEDGEDITEMID: int64(*goods.Middlegoods.HedgedItemID),
|
|
|
|
|
- MIDDLEGOODSID: int64(*goods.Middlegoods.MiddleGoodsID),
|
|
|
|
|
- DELIVERYGOODSID: int64(*goods.Middlegoods.DeliveryGoodsID),
|
|
|
|
|
|
|
+ HEDGEDITEMID: int64(goods.Middlegoods.GetHedgedItemID()),
|
|
|
|
|
+ MIDDLEGOODSID: int64(goods.Middlegoods.GetMiddleGoodsID()),
|
|
|
|
|
+ DELIVERYGOODSID: int64(goods.Middlegoods.GetDeliveryGoodsID()),
|
|
|
WRSTANDARDID: int64(*goods.Middlegoods.WrstandardID),
|
|
WRSTANDARDID: int64(*goods.Middlegoods.WrstandardID),
|
|
|
- VATRATE: *goods.Middlegoods.VatRate,
|
|
|
|
|
- SPOTCONVERTRATIO: *goods.Middlegoods.SpotConvertRatio,
|
|
|
|
|
- UNEXESPOTQTY: *goods.Middlegoods.UnexeSpotQty,
|
|
|
|
|
- UNEXEHEDGEQTY: *goods.Middlegoods.UnexeHedgeQty,
|
|
|
|
|
- FUTUREHEDGEQTY: *goods.Middlegoods.FutureHedgeQty,
|
|
|
|
|
- HIEXPSOURE: *goods.Middlegoods.HIExpsoure,
|
|
|
|
|
- TRADEUSERID: int64(*goods.Middlegoods.TradeUserID),
|
|
|
|
|
- AREAUSERID: int64(*goods.Middlegoods.AreaUserID),
|
|
|
|
|
|
|
+ VATRATE: goods.Middlegoods.GetVatRate(),
|
|
|
|
|
+ SPOTCONVERTRATIO: goods.Middlegoods.GetSpotConvertRatio(),
|
|
|
|
|
+ UNEXESPOTQTY: goods.Middlegoods.GetUnexeSpotQty(),
|
|
|
|
|
+ UNEXEHEDGEQTY: goods.Middlegoods.GetUnexeHedgeQty(),
|
|
|
|
|
+ FUTUREHEDGEQTY: goods.Middlegoods.GetFutureHedgeQty(),
|
|
|
|
|
+ HIEXPSOURE: goods.Middlegoods.GetFutureHedgeQty(),
|
|
|
|
|
+ TRADEUSERID: int64(goods.Middlegoods.GetTradeUserID()),
|
|
|
|
|
+ AREAUSERID: int64(goods.Middlegoods.GetAreaUserID()),
|
|
|
CREATETIME: goods.Middlegoods.GetCreateTime().GetDateStr(),
|
|
CREATETIME: goods.Middlegoods.GetCreateTime().GetDateStr(),
|
|
|
UPDATETIME: goods.Middlegoods.GetUpdateTime().GetDateStr(),
|
|
UPDATETIME: goods.Middlegoods.GetUpdateTime().GetDateStr(),
|
|
|
}
|
|
}
|