Ver Fonte

修改“执行中项目”接口BUG

zhou.xiaoning há 3 anos atrás
pai
commit
34c4c27466
1 ficheiros alterados com 11 adições e 11 exclusões
  1. 11 11
      models/ermcp8.go

+ 11 - 11
models/ermcp8.go

@@ -1492,18 +1492,18 @@ func (r *Ermcp8RunningHedgeditem) ParseFromProto(p *pb.Ermcp2HedgedItemInfo) {
 	r.MiddleGoodsList = make([]Ermcp2himiddlegoods, 0)
 	for _, goods := range p.Himiddlegoodsext {
 		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),
-			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(),
 			UPDATETIME:       goods.Middlegoods.GetUpdateTime().GetDateStr(),
 		}