|
@@ -668,6 +668,7 @@ type WrOrderDetail struct {
|
|
|
|
|
|
|
|
BEGINDATE string `json:"begindate" form:"begindate"` // 开始交易日(yyyymmdd)
|
|
BEGINDATE string `json:"begindate" form:"begindate"` // 开始交易日(yyyymmdd)
|
|
|
ENDDATE string `json:"enddate" form:"enddate"` // 结束交易日(yyyymmdd)
|
|
ENDDATE string `json:"enddate" form:"enddate"` // 结束交易日(yyyymmdd)
|
|
|
|
|
+ BCancel int32 `json:"bcancel" form:"bcancel"` // 是否仅查可撤单据 1:可撤 注:此参数仅对当前记录有效, 且不含47模式市场
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (r *WrOrderDetail) calc() {
|
|
func (r *WrOrderDetail) calc() {
|
|
@@ -789,6 +790,12 @@ select t.HASWR,
|
|
|
sqlId.And("t.USERID", r.USERID)
|
|
sqlId.And("t.USERID", r.USERID)
|
|
|
sqlId.And("t.haswr", r.HASWR)
|
|
sqlId.And("t.haswr", r.HASWR)
|
|
|
sqlId.AndEx("t.marketid", r.MARKETID, r.MARKETID > 0)
|
|
sqlId.AndEx("t.marketid", r.MARKETID, r.MARKETID > 0)
|
|
|
|
|
+
|
|
|
|
|
+ if r.BCancel == 1 {
|
|
|
|
|
+ // 只查委托状态=3 委托成功的单, 且不含47模式的
|
|
|
|
|
+ sqlId.Join(" and t.WRTRADEORDERSTATUS=3 and t.marketid not in(select marketid from market where trademode = 47)")
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
sqlId.Join(" order by t.ORDERTIME desc")
|
|
sqlId.Join(" order by t.ORDERTIME desc")
|
|
|
sqlId.Page(r.Page, r.PageSize)
|
|
sqlId.Page(r.Page, r.PageSize)
|
|
|
return sqlId.String()
|
|
return sqlId.String()
|