1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user