Excel 一版

This commit is contained in:
807875765@qq.com
2022-03-14 13:06:21 +08:00
parent 0b040d1e72
commit 8caf66eb8a
6 changed files with 277 additions and 2 deletions

View File

@@ -53,6 +53,9 @@ type LoopStoreMapInfo struct {
type VendorSync struct {
}
type ComparePlatform struct {
}
type SyncError struct {
Original error `json:"original"`
Message string `json:"message"`
@@ -73,7 +76,8 @@ type SingleStoreHandlerWrapper struct {
}
var (
CurVendorSync VendorSync
CurVendorSync VendorSync
CurComparePlatform ComparePlatform
)
var (
@@ -549,6 +553,12 @@ func (v *VendorSync) SyncStoresSkus(ctx *jxcontext.Context, parentTask tasksch.I
return v.SyncStoresSkus2(ctx, parentTask, causeFlag, db, vendorIDs, storeIDs, true, skuIDs, nil, setSyncStatus, isAsync, isContinueWhenError)
}
//执行比较店铺与运营商的sku差异
func (c *ComparePlatform) CompareStoreWithOperator(ctx *jxcontext.Context, db *dao.DaoDB, vendorIDs []int, storeIDs []int, syncDisabled bool, excludeSkuIDs []int, isAsync, isContinueWhenError bool) (hint string, err error) {
globals.SugarLogger.Debug("开始执行CompareStoreWithOperator")
return hint, makeSyncError(err)
}
func (v *VendorSync) FullSyncStoresSkus(ctx *jxcontext.Context, db *dao.DaoDB, vendorIDs []int, storeIDs []int, syncDisabled bool, excludeSkuIDs []int, isAsync, isContinueWhenError bool) (hint string, err error) {
globals.SugarLogger.Debug("FullSyncStoresSkus")
hint, err = v.LoopStoresMap(ctx, db, fmt.Sprintf("初始化门店商品信息:%v", storeIDs), isAsync, true, vendorIDs, storeIDs,