测试去掉

This commit is contained in:
苏尹岚
2020-08-18 15:07:56 +08:00
parent 1157ac711b
commit 0b48fc2f9a
2 changed files with 1 additions and 3 deletions

View File

@@ -1564,8 +1564,6 @@ 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
@@ -1600,7 +1598,6 @@ 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)
}

View File

@@ -1889,6 +1889,7 @@ func CreateOrderByPriceDefend(ctx *jxcontext.Context) {
if _, err := CreateOrder(ctx, jxOrder, v.AddressID, OrderCreateTypeNormal, 0, false); err == nil {
err = SettleDiscountActByPriceDefend(ctx, v)
}
// dao.GetStoresSkusInfo(db, []int{v.StoreID}, []int{v.SkuID})
}
}