|
|
@@ -2660,6 +2660,7 @@ type Ermcp3ExposureFutuDetail struct {
|
|
|
MIDDLEGOODSCODE string `json:"middlegoodscode"` // 套保商品代码
|
|
|
MIDDLEGOODSNAME string `json:"middlegoodsname"` // 套保商品名称
|
|
|
ENUMDICNAME string `json:"enumdicname"` // 单位名称
|
|
|
+ USERNAME string `json:"username"` // 用户名称(交易用户)
|
|
|
|
|
|
USERID int64 `json:"-"` // 用户id
|
|
|
RECKONDATE string `json:"tradedate"` // 交易日
|
|
|
@@ -2765,6 +2766,7 @@ func (r *Ermcp3ExposureFutuDetail) GetDataEx() (interface{}, error) {
|
|
|
val.fromOutPositionBuy(&v)
|
|
|
val.BeginDate = r.BeginDate
|
|
|
val.EndDate = r.EndDate
|
|
|
+ val.USERNAME = mtpcache.GetUserNameByUserId(r.USERID)
|
|
|
sData = append(sData, val)
|
|
|
}
|
|
|
if v.YDSELLPOSITION > 0 || v.CURSELLPOSITION > 0 {
|
|
|
@@ -2772,6 +2774,7 @@ func (r *Ermcp3ExposureFutuDetail) GetDataEx() (interface{}, error) {
|
|
|
val.fromOutPositionSell(&v)
|
|
|
val.BeginDate = r.BeginDate
|
|
|
val.EndDate = r.EndDate
|
|
|
+ val.USERNAME = mtpcache.GetUserNameByUserId(r.USERID)
|
|
|
sData = append(sData, val)
|
|
|
}
|
|
|
}
|
|
|
@@ -2786,6 +2789,7 @@ func (r *Ermcp3ExposureFutuDetail) GetDataEx() (interface{}, error) {
|
|
|
val.fromTradePositionBuy(&v)
|
|
|
val.BeginDate = r.BeginDate
|
|
|
val.EndDate = r.EndDate
|
|
|
+ val.USERNAME = mtpcache.GetUserNameByUserId(r.USERID)
|
|
|
sData = append(sData, val)
|
|
|
}
|
|
|
if v.SELLPOSITIONQTY > 0 || v.SELLCURPOSITIONQTY > 0 {
|
|
|
@@ -2793,6 +2797,7 @@ func (r *Ermcp3ExposureFutuDetail) GetDataEx() (interface{}, error) {
|
|
|
val.fromTradePositionSell(&v)
|
|
|
val.BeginDate = r.BeginDate
|
|
|
val.EndDate = r.EndDate
|
|
|
+ val.USERNAME = mtpcache.GetUserNameByUserId(r.USERID)
|
|
|
sData = append(sData, val)
|
|
|
}
|
|
|
}
|