|
|
@@ -267,6 +267,7 @@ type ReportReckonDayPosition struct {
|
|
|
DECIMALPLACE int32 `json:"decimalplace" xorm:"DECIMALPLACE"` // 报价小数位
|
|
|
BUYORSELLDISPLAY string `json:"buyorselldisplay" xorm:"BUYORSELLDISPLAY"` // 方向
|
|
|
AVAGEPRICEDISPLAY string `json:"avagepricedisplay" xorm:"AVAGEPRICEDISPLAY"` // 均价
|
|
|
+ BUYORSELL int32 `json:"buyorsell" xorm:"'BUYORSELL'" form:"buyorsell"` // 买卖方向 0-买 1-卖
|
|
|
|
|
|
ReportType int `form:"reporttype" binding:"required"` // 报表类型 日报表-1 月报表-2
|
|
|
|
|
|
@@ -423,6 +424,8 @@ type ReportTradeDetail struct {
|
|
|
GOODSID int32 `json:"goodsid" xorm:"GOODSID"` // 期货合约ID(自增ID SEQ_GOODS)
|
|
|
DECIMALPLACE int32 `json:"decimalplace" xorm:"DECIMALPLACE"` // 报价小数位
|
|
|
HISTRADEDATE string `json:"histradedate" xorm:"HISTRADEDATE" form:"histradedate" binding:"required"` // 查询日期 日报表-yyyyMMdd 月报表-yyyyMM
|
|
|
+ BUYORSELL int32 `json:"buyorsell" xorm:"BUYORSELL"` // 买卖方向 - 0:买 1:卖
|
|
|
+ BUILDTYPE int32 `json:"buildtype" xorm:"BUILDTYPE"` // 委托单据类型 - 1:建仓 2:平仓 3:先平后建
|
|
|
|
|
|
ReportType int `form:"reporttype" binding:"required"` // 报表类型 日报表-1 月报表-2
|
|
|
|
|
|
@@ -446,7 +449,9 @@ func (r *ReportTradeDetail) buildSql() string {
|
|
|
t.tradeid,
|
|
|
g.decimalplace,
|
|
|
g.goodsid,
|
|
|
- t.accountid
|
|
|
+ t.accountid,
|
|
|
+ t.buyorsell,
|
|
|
+ t.buildtype
|
|
|
from his_trade_tradedetail t
|
|
|
left join goods g
|
|
|
on g.goodsid = t.goodsid
|