Compare commits

...

1 Commits

Author SHA1 Message Date
820f3435d3 fix bug 2026-04-22 18:17:58 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ func SaveData(status *types.StatusData) error {
// 查询是否存在
var cnt int64
impl.DBService.Where("account_id = ? AND order_id = ? AND ymd = ?", status.Data.Assets.AccountID, order.OrderID, ymd).Count(&cnt)
impl.DBService.Model(&models.CollectorOrder{}).Where("account_id = ? AND order_id = ? AND ymd = ?", status.Data.Assets.AccountID, order.OrderID, ymd).Count(&cnt)
if cnt > 0 {
continue
}

View File

@@ -9,7 +9,7 @@ type StatusData struct {
// Data 数据部分
type Data struct {
Assets Assets `json:"assets"`
Orders []Order `json:"order"`
Orders []Order `json:"orders"`
Positions []Position `json:"positions"`
TickData map[string]Tick `json:"tick_data"`
}