This commit is contained in:
邹宗楠
2026-05-12 10:09:42 +08:00
parent f2c061465c
commit 098452124c
2 changed files with 7 additions and 4 deletions

View File

@@ -1753,6 +1753,12 @@ func GetMatterStoreOrderCount(ctx *jxcontext.Context, storeID int) (result *Orde
return nil, err
}
orderCount.Count = int(utils.Float64TwoInt64(math.Ceil(utils.Int2Float64(orderCount.Count) * 1.1)))
if orderCount.Count <= 0 {
stores, _ := dao.GetStoreList(db, []int{storeID}, nil, nil, nil, nil, "")
if len(stores) > 0 && time.Since(stores[0].CreatedAt) > 7*24*time.Hour {
flag = false
}
}
orderCount.Flag = flag
// orderCount.Count = 1000
return orderCount, err