From 3afec3e58307e6f79c1c16d72ef35ecaa94f864d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 8 Feb 2021 16:21:25 +0800 Subject: [PATCH] aa --- business/jxstore/tempop/tempop.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index c25ab1817..445c3ced6 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1829,18 +1829,18 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { var ( db = dao.GetDB() vendorThingIDs []int64 - thingIDs []int + // thingIDs []int ) storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDJD}, []int{667281}, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "", "320406") - for _, v := range storeMaps { - storesSkus, _ := dao.GetStoresSkusInfo(db, []int{v.StoreID}, nil) - for _, vv := range storesSkus { - if vv.Stock > 0 && vv.Status == model.StoreSkuBindStatusNormal { - thingIDs = append(thingIDs, vv.SkuID) - } - } - } - things, _ := dao.GetThingMapList(db, model.ThingTypeSku, []int{model.VendorIDJD}, thingIDs, []string{"320406"}) + // for _, v := range storeMaps { + // storesSkus, _ := dao.GetStoresSkusInfo(db, []int{v.StoreID}, nil) + // for _, vv := range storesSkus { + // if vv.Stock > 0 && vv.Status == model.StoreSkuBindStatusNormal { + // thingIDs = append(thingIDs, vv.SkuID) + // } + // } + // } + things, _ := dao.GetThingMapList(db, model.ThingTypeSku, []int{model.VendorIDJD}, nil, []string{"320406"}) thingIDmap := make(map[int64]string) for _, v := range things {