This commit is contained in:
邹宗楠
2024-09-04 10:53:50 +08:00
parent 1f94f2d841
commit 1f97956850
2 changed files with 2 additions and 2 deletions

View File

@@ -3668,7 +3668,7 @@ func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int, isNeedSync bool) (
for storeID, storeSkuList := range storeSkuMap {
var skuIDs []int
for _, storeSku := range storeSkuList {
if now.Sub(storeSku.AutoSaleAt) > 0 {
if now.Sub(storeSku.AutoSaleAt) >= 0 {
storeSku.AutoSaleAt = utils.DefaultTimeValue
if storeSku.Status != model.SkuStatusNormal {
storeSku.Status = model.SkuStatusNormal