This commit is contained in:
2026-04-22 18:17:58 +08:00
parent 3d89b59a67
commit 820f3435d3
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
}