|
|
@@ -656,7 +656,7 @@ type QueryCPTradeOrderDetailReq struct {
|
|
|
|
|
|
// QueryCPTradeOrderDetailRsq 产能预售委托单信息
|
|
|
type QueryCPTradeOrderDetailRsq struct {
|
|
|
- Orderid int64 `json:"orderid" xorm:"'ORDERID'" binding:"required"` // 委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
|
|
|
+ Strorderid string `json:"strorderid" xorm:"'STRORDERID'" binding:"required"` // 委托单号
|
|
|
Tradedate string `json:"tradedate" xorm:"'TRADEDATE'" binding:"required"` // 交易日(yyyyMMdd)
|
|
|
Buildtype int64 `json:"buildtype" xorm:"'BUILDTYPE'" binding:"required"` // 委托单据类型 - 1:建仓 2:平仓 3:先平后建
|
|
|
Preorderid int64 `json:"preorderid" xorm:"'PREORDERID'"` // 关联预埋单号(止盈止损单时填写)
|
|
|
@@ -746,7 +746,8 @@ func QueryCPTradeOrderDetail(c *gin.Context) {
|
|
|
// 查询数据
|
|
|
engine := db.GetEngine()
|
|
|
datas := make([]QueryCPTradeOrderDetailRsq, 0)
|
|
|
- sql := `select
|
|
|
+ sql := `select
|
|
|
+ to_char(t.orderid) strOrderID,
|
|
|
t.*
|
|
|
from Trade_OrderDetail t
|
|
|
where t.BuyOrSell = 1 and t.BuildType = 2 and t.MarketID in (40201,41201)`
|