diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 0dfbbf1fb..b6b2f8e30 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -236,7 +236,8 @@ func FullSyncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo func isStoreSkuSyncNeedDelete(storeSku *dao.StoreSkuSyncInfo) bool { if model.IsSyncStatusDelete(storeSku.SkuSyncStatus) || storeSku.BindDeletedAt != utils.DefaultTimeValue || storeSku.BindID == 0 || - storeSku.NameID == 0 || storeSku.NameStatus != model.SkuStatusNormal { + storeSku.NameID == 0 { + //|| storeSku.NameStatus != model.SkuStatusNormal { return true } // if storeSku.Status != model.SkuStatusNormal { diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 88595d474..b0b840a16 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1848,11 +1848,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDJD}, nil, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "", "320406") things, _ := dao.GetThingMapList(db, model.ThingTypeSku, []int{model.VendorIDJD}, nil, []string{"320406"}) thingIDmap := make(map[int64]string) + thingIDmap2 := make(map[string]int) // for _, v := range things { if v.VendorThingID != "" { //vendorThingIDs = append(vendorThingIDs, utils.Str2Int64(v.VendorThingID)) thingIDmap[v.ThingID] = v.VendorThingID + thingIDmap2[v.VendorThingID] = int(v.ThingID) } } task := tasksch.NewParallelTask("uuuuu", tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx, @@ -1871,7 +1873,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { for _, vv := range priceInfo { if vv.VipPrice != 0 { list = append(list, &jdapi.SkuIdEntity{ - OutSkuId: thingIDmap[vv.SkuID], + OutSkuId: utils.Int2Str(thingIDmap2[utils.Int64ToStr(vv.SkuID)]), }) // result = []bool{true} // return result, 0, err