|
|
@@ -299,6 +299,7 @@ type QueryTradeOrderDetailReq struct {
|
|
|
OrderStatus string `form:"orderStatus"`
|
|
|
TradeMode string `form:"tradeMode"`
|
|
|
OrderID int `form:"orderID"`
|
|
|
+ IncOrderID string `form:"incOrderID"`
|
|
|
}
|
|
|
|
|
|
// QueryTradeOrderDetailRsp 委托单查询返回模型(合约市场)
|
|
|
@@ -377,6 +378,7 @@ func (r *QueryTradeOrderDetailRsp) calc() {
|
|
|
// @Param tradeMode query string false "交易模式 - 格式:1,2,3"
|
|
|
// @Param orderStatus query string false "委托状态 - 格式:1,2,3"
|
|
|
// @Param orderID query int false "委托单号"
|
|
|
+// @Param incOrderID query string false "增量委托单号"
|
|
|
// @Success 200 {object} QueryTradeOrderDetailRsp
|
|
|
// @Failure 500 {object} app.Response
|
|
|
// @Router /Order/QueryTradeOrderDetail [get]
|
|
|
@@ -413,6 +415,9 @@ func QueryTradeOrderDetail(c *gin.Context) {
|
|
|
if req.OrderID > 0 {
|
|
|
s = s.And("TRADE_ORDERDETAIL.ORDERID = ?", req.OrderID)
|
|
|
}
|
|
|
+ if req.IncOrderID != "" {
|
|
|
+ s = s.And(fmt.Sprintf("TRADE_ORDERDETAIL.ORDERID > %v", req.IncOrderID))
|
|
|
+ }
|
|
|
if err := s.Find(&datas); err != nil {
|
|
|
// 查询失败
|
|
|
logger.GetLogger().Errorf("QueryTradeOrderDetail failed: %s", err.Error())
|