This commit is contained in:
2025-02-18 15:40:45 +08:00
parent 08a7da607f
commit 935fc36b5a
7 changed files with 95 additions and 53 deletions

View File

@ -527,7 +527,7 @@ func processTakeProfitAndStopLossOrders(db *gorm.DB, preOrder *models.LinePreOrd
num := getSpotPositionAvailableQuantity(db, apiInfo, preOrder, tradeSet)
if err := db.Model(&DbModels.LinePreOrder{}).
Where("pid = ? AND order_category = 1 AND order_type > 0 AND status = '0' ", preOrder.Id).
Where("pid = ? AND order_type > 0 AND status = '0' ", preOrder.Id).
Find(&orders).Error; err != nil && errors.Is(err, gorm.ErrRecordNotFound) {
logger.Error("订单回调查询止盈止损单失败:", err)
return