测试去掉
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user