定时刷新
This commit is contained in:
@@ -662,7 +662,7 @@ func (v *VendorSync) ChangeStoreSkuSaleStatus(ctx *jxcontext.Context, storeID in
|
|||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
storeSkuList, err := dao.GetStoresSkusInfoBySaleTime(db, storeID)
|
storeSkuList, err := dao.GetStoresSkusInfoBySaleTime(db, storeID)
|
||||||
if len(storeSkuList) < 1 || err != nil {
|
if len(storeSkuList) < 1 || err != nil {
|
||||||
return errors.New(fmt.Sprintf("未查询到设置了可售时间的商品 GetStoresSkusInfoBySaleTime!err : %v", err))
|
return nil
|
||||||
}
|
}
|
||||||
for _, v := range storeSkuList {
|
for _, v := range storeSkuList {
|
||||||
storeIDs = append(storeIDs, v.StoreID)
|
storeIDs = append(storeIDs, v.StoreID)
|
||||||
@@ -671,10 +671,7 @@ func (v *VendorSync) ChangeStoreSkuSaleStatus(ctx *jxcontext.Context, storeID in
|
|||||||
vendorIDs := partner.GetPurchasePlatformVendorIDs()
|
vendorIDs := partner.GetPurchasePlatformVendorIDs()
|
||||||
dao.UpdateStoreSkuBindSyncStatus(db, vendorIDs, storeID)
|
dao.UpdateStoreSkuBindSyncStatus(db, vendorIDs, storeID)
|
||||||
v.SyncStoresSkus(ctx, db, vendorIDs, storeIDs, skuIDs, false, isAsync, isContinueWhenError)
|
v.SyncStoresSkus(ctx, db, vendorIDs, storeIDs, skuIDs, false, isAsync, isContinueWhenError)
|
||||||
if err != nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetTimeMixByInt(begin1, end1, begin2, end2 int16) (beginAt, endAt int16) {
|
func GetTimeMixByInt(begin1, end1, begin2, end2 int16) (beginAt, endAt int16) {
|
||||||
|
|||||||
Reference in New Issue
Block a user