From 268c7f0c76a7806a5ec3845f05a0c0fb94a47e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 18 Aug 2020 14:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=98=E6=89=A32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/act/act.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 58d242aec..60953ce77 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -1515,7 +1515,6 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) { pageSize = 9999 ) globals.SugarLogger.Debug("ChangeJxPriceByDiscountAct begin:") - fmt.Println("111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111") page, err := dao.QueryActs(db, 0, 0, pageSize, -1, "", model.VendorIDJX, []int{model.YES}, []int{model.ActSkuDiscount}, nil, 0, nil, 0, utils.ZeroTimeValue, utils.ZeroTimeValue, time.Now().AddDate(0, -3, 0), time.Now()) if err != nil { return @@ -1523,7 +1522,6 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) { if len(page.Data) == 0 { return } - fmt.Println("122222222222222222222222222222222222222222222222222222222222222222222222222222", utils.Format4Output(page.Data, false)) for _, act := range page.Data { _, actStoreSkus, _ := dao.GetActStoreSkuVendorList(db, act.ID, nil, nil, nil, "", 0, pageSize) if len(actStoreSkus) == 0 { @@ -1553,7 +1551,6 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) { if storeSku.Stock == 0 { continue } - fmt.Println("33333333333333333333333333333333333333333333333333333333333333", utils.Format4Output(actStoreSku, false)) actualStockOut, err = dao.GetOrderStoreSkusCount(db, actStoreSku.StoreID, actStoreSku.SkuID, time.Now().Add(-time.Minute*10), time.Now()) dao.Begin(db) defer func() { @@ -1564,6 +1561,8 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) { } } }() + fmt.Println("33333333333333333333333333333333333333333333333333333333333333", actualStockOut) + fmt.Println("4444444444444444444444444444444444444444444444444444444444", shouldStockOut) //第一档时间内 if (time.Now().Hour() >= 10 && time.Now().Hour() < 20) || (time.Now().Hour() == 20 && time.Now().Minute() < 1) { pricePercentage = 0.02 @@ -1598,6 +1597,7 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) { actStoreSku.TrendType = model.TrendTypeNothing } actStoreSku.TrendPrcie = int(actualPrice) + fmt.Println("555555555555555555555555555555555555555555555555555555555", utils.Format4Output(actStoreSku, false)) if _, err = dao.UpdateEntity(db, actStoreSku, "TrendType", "TrendPrcie"); err != nil { dao.Rollback(db) }