aa
This commit is contained in:
@@ -1829,18 +1829,18 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
var (
|
var (
|
||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
vendorThingIDs []int64
|
vendorThingIDs []int64
|
||||||
thingIDs []int
|
// thingIDs []int
|
||||||
)
|
)
|
||||||
storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDJD}, []int{667281}, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "", "320406")
|
storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDJD}, []int{667281}, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "", "320406")
|
||||||
for _, v := range storeMaps {
|
// for _, v := range storeMaps {
|
||||||
storesSkus, _ := dao.GetStoresSkusInfo(db, []int{v.StoreID}, nil)
|
// storesSkus, _ := dao.GetStoresSkusInfo(db, []int{v.StoreID}, nil)
|
||||||
for _, vv := range storesSkus {
|
// for _, vv := range storesSkus {
|
||||||
if vv.Stock > 0 && vv.Status == model.StoreSkuBindStatusNormal {
|
// if vv.Stock > 0 && vv.Status == model.StoreSkuBindStatusNormal {
|
||||||
thingIDs = append(thingIDs, vv.SkuID)
|
// thingIDs = append(thingIDs, vv.SkuID)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
things, _ := dao.GetThingMapList(db, model.ThingTypeSku, []int{model.VendorIDJD}, thingIDs, []string{"320406"})
|
things, _ := dao.GetThingMapList(db, model.ThingTypeSku, []int{model.VendorIDJD}, nil, []string{"320406"})
|
||||||
thingIDmap := make(map[int64]string)
|
thingIDmap := make(map[int64]string)
|
||||||
|
|
||||||
for _, v := range things {
|
for _, v := range things {
|
||||||
|
|||||||
Reference in New Issue
Block a user