This commit is contained in:
苏尹岚
2021-02-08 16:21:25 +08:00
parent 80eea88ccb
commit 3afec3e583

View File

@@ -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 {