This commit is contained in:
邹宗楠
2024-09-19 09:39:08 +08:00
parent df4c364817
commit bec588adf6

View File

@@ -244,7 +244,7 @@ const (
maxStoreNameBind = 10000 // 最大门店SkuName bind个数
maxStoreNameBind2 = 10000 // 最大门店乘SkuName个数
AutoSaleAtStr = "09:35:00"
AutoSaleAtStr = "09:42:00"
)
var (
@@ -3677,8 +3677,8 @@ func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int, isNeedSync bool) (
}
}
if isNeedSync && len(skuIDs) > 0 {
globals.SugarLogger.Debugf("---------------AutoSaleStoreSku- := %s", utils.Format4Output(skuIDs, false))
if _, err = CurVendorSync.SyncStoresSkus(ctx, nil, model.SyncFlagSaleMask, db, nil, []int{storeID}, skuIDs, false, true, true); err != nil {
globals.SugarLogger.Debugf("---------------AutoSaleStoreSku- := %s, :%s", utils.Format4Output(skuIDs, false), utils.Format4Output(storeID, false))
if _, err = CurVendorSync.SyncStoresSkus(ctx, nil, model.SyncFlagSaleMask, db, nil, []int{storeID}, skuIDs, true, true, true); err != nil {
return err
}
}