diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/base/service/ShopBaseProductTypeService.java b/mall-shop/src/main/java/com/suisung/mall/shop/base/service/ShopBaseProductTypeService.java index 9558cd5f..651793e9 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/base/service/ShopBaseProductTypeService.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/base/service/ShopBaseProductTypeService.java @@ -27,5 +27,5 @@ public interface ShopBaseProductTypeService extends IBaseService queryWrapper = new QueryWrapper<>(); queryWrapper.eq("type_name", typeName); + queryWrapper.eq("store_id", Integer.valueOf(storeId)); return getOne(queryWrapper); } } diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncBaseThirdSxAbstract.java b/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncBaseThirdSxAbstract.java index a7f8f28b..2a1e1480 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncBaseThirdSxAbstract.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/sync/service/impl/SyncBaseThirdSxAbstract.java @@ -149,7 +149,7 @@ public abstract class SyncBaseThirdSxAbstract{ Integer typeId = 1001; if (StrUtil.isNotBlank(o.getStr("product_type"))) { - productType = productTypeService.getProductTypeByName(o.getStr("product_type")); + productType = productTypeService.getProductTypeByName(o.getStr("product_type"),storeId); if (productType != null) { typeId = productType.getType_id(); } else {