aa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user