京西折扣

This commit is contained in:
苏尹岚
2020-08-10 17:36:40 +08:00
parent 3eb3bc8c62
commit 569be7133b

View File

@@ -1517,6 +1517,23 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) {
} }
if len(page.Data) == 0 { if len(page.Data) == 0 {
return return
}
for _, act := range page.Data {
_, actStoreSkus, _ := dao.GetActStoreSkuVendorList(db, act.ID, nil, nil, nil, "", 0, pageSize)
if len(actStoreSkus) == 0 {
continue
}
var (
storeIDs, skuIDs []int
)
for _, actStoreSku := range actStoreSkus {
storeIDs = append(storeIDs, actStoreSku.StoreID)
skuIDs = append(skuIDs, actStoreSku.SkuID)
}
storeSkus, _ := dao.GetStoresSkusInfo(db, storeIDs, skuIDs)
for _, storeSku := range storeSkus {
if storeSku.SkuID == 0 {
} }
//第一档时间内 //第一档时间内
if (time.Now().Hour() >= 10 && time.Now().Hour() < 20) || (time.Now().Hour() == 20 && time.Now().Minute() < 1) { if (time.Now().Hour() >= 10 && time.Now().Hour() < 20) || (time.Now().Hour() == 20 && time.Now().Minute() < 1) {
@@ -1525,3 +1542,5 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) {
} }
} }
}
}