This commit is contained in:
邹宗楠
2025-02-21 14:39:27 +08:00
parent f90e72a53b
commit eb0d2129d0

View File

@@ -2197,9 +2197,9 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
list1, _ := dao.GetStoresMapList(db, []int{model.VendorIDJD}, []int{storeID}, nil, model.StoreStatusAll, 1, "", "", "")
//表示这个门店绑定了京东
if len(list1) > 0 {
globals.SugarLogger.Debugf("--list1--- %s", utils.Format4Output(list1, false))
globals.SugarLogger.Debugf("-----------------%s", utils.Format4Output(list1, false))
globals.SugarLogger.Debugf("---------------v--%s", utils.Format4Output(v, false))
vendorOrgCodes, _ := dao.GetVendorOrgCode(db, model.VendorIDJD, list1[0].VendorOrgCode, model.VendorOrgTypePlatform)
globals.SugarLogger.Debugf("--list1--- %s", utils.Format4Output(vendorOrgCodes, false))
//thingmap里肯定存在再判断有没有同步上去
thingMaps, _ := dao.GetThingMapList(db, model.ThingTypeSku, []int{model.VendorIDJD}, []int{v.RealSkuID}, []string{list1[0].VendorOrgCode})
if len(thingMaps) > 0 {