|
|
@@ -814,6 +814,7 @@ type InternalUncorrelatedTradeDetail struct {
|
|
|
ACCOUNTNAME string `json:"accountname" xorm:"ACCOUNTNAME" form:"accountname"` // 套期主体
|
|
|
ENABLEQTY float64 `json:"enableqty" xorm:"ENABLEQTY"` // 项目可关联数量 = 套保品种数量 - 关联数量
|
|
|
EnumdicName string `json:"enumdicname" xorm:"ENUMDICNAME"` // 单位
|
|
|
+ TRADEUSERID int64 `json:"tradeuserid" xorm:"TRADEUSERID"` // 交易用户ID
|
|
|
|
|
|
USERID int64 `json:"-" form:"userid" binding:"required"` // 用户编号
|
|
|
BEGINDATE string `json:"-" form:"begindate"` // 起始日期, 格式:yyyymmdd
|
|
|
@@ -845,7 +846,8 @@ func (r *InternalUncorrelatedTradeDetail) buildSql() string {
|
|
|
ta.accountname TAACCOUNTNAME,
|
|
|
ept.ACCOUNTID,
|
|
|
ept.CHANNELBUILDTYPE,
|
|
|
- (ept.MIDDLEGOODSQTY - ept.RELATEDQTY) ENABLEQTY
|
|
|
+ (ept.MIDDLEGOODSQTY - ept.RELATEDQTY) ENABLEQTY,
|
|
|
+ ta.RELATEDUSERID TRADEUSERID
|
|
|
FROM ERMCP_PA_TRADELINK ept
|
|
|
LEFT JOIN goods g ON ept.goodsid = g.goodsid
|
|
|
LEFT JOIN taaccount ta ON ta.accountid = ept.accountid
|