优化获取抖音门店信息

This commit is contained in:
richboo111
2023-03-24 11:14:51 +08:00
parent 826b80ca8a
commit 75a23adab0
2 changed files with 86 additions and 0 deletions

View File

@@ -1478,6 +1478,11 @@ func GetStoreVendorMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, vend
if vendorID != -1 {
cond[model.FieldVendorID] = vendorID
}
if vendorID == model.VendorIDDD {
if err1 := dao.GetEntitiesByKV(db, &storeMaps, cond, false); err1 == nil && len(storeMaps) > 0 {
_ = tiktok_store.GetRemoteStoreSth(storeMaps[0].VendorOrgCode, storeMaps[0].VendorStoreID, storeID)
}
}
return storeMaps, dao.GetEntitiesByKV(db, &storeMaps, cond, false)
}