|
|
@@ -659,7 +659,7 @@ func QueryTradeDetail(c *gin.Context) {
|
|
|
GOODS.GOODSCODE, GOODS.GOODSNAME, GOODS.DECIMALPLACE, GOODS.QTYDECIMALPLACE,GOODS.GOODUNITID, MARKET.MARKETNAME, MARKET.TRADEMODE,
|
|
|
TRADE_ORDERDETAIL.LISTINGSELECTTYPE, TRADE_PAYORDER.ADVANCERATIO, TRADE_PAYORDER.PAYAMOUNT, TRADE_PAYORDER.TRADECHARGE`).
|
|
|
Where(fmt.Sprintf("TRADE_TRADEDETAIL.ACCOUNTID in (%s)", req.AccountID)).
|
|
|
- Desc("TRADE_TRADEDETAIL.TRADETIME")
|
|
|
+ Desc("TRADE_TRADEDETAIL.TRADEID")
|
|
|
if req.IncTradeID != "" {
|
|
|
s = s.And(fmt.Sprintf("TRADE_TRADEDETAIL.TRADEID > %v", req.IncTradeID))
|
|
|
}
|
|
|
@@ -786,7 +786,7 @@ func QueryHisTradeDetail(c *gin.Context) {
|
|
|
GOODS.GOODSCODE, GOODS.GOODSNAME,GOODS.DECIMALPLACE, GOODS.QTYDECIMALPLACE, GOODS.GOODUNITID, MARKET.MARKETNAME, MARKET.TRADEMODE,
|
|
|
HIS_TRADE_ORDERDETAIL.LISTINGSELECTTYPE, TRADE_PAYORDER.ADVANCERATIO, TRADE_PAYORDER.PAYAMOUNT, TRADE_PAYORDER.TRADECHARGE`).
|
|
|
Where(fmt.Sprintf("HIS_TRADE_TRADEDETAIL.ISVALIDDATA = 1 and HIS_TRADE_TRADEDETAIL.ACCOUNTID in (%s)", req.AccountID)).
|
|
|
- Desc("HIS_TRADE_TRADEDETAIL.TRADETIME")
|
|
|
+ Desc("HIS_TRADE_TRADEDETAIL.TRADEID")
|
|
|
if req.TradeID > 0 {
|
|
|
s = s.And("HIS_TRADE_TRADEDETAIL.TRADEID = ?", req.TradeID)
|
|
|
}
|