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 05447fd4..91695f7c 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 @@ -218,6 +218,7 @@ public abstract class SyncBaseThirdSxAbstract{ } else{ // 新增一个(第一级)父类 ShopBaseProductCategory firstCate = new ShopBaseProductCategory(); + firstCate.setCategory_is_enable(1); firstCate.setCategory_name(firstCategoryName); firstCate.setParent_id(0); firstCate.setStore_id(storeId); @@ -274,6 +275,7 @@ public abstract class SyncBaseThirdSxAbstract{ } else { // 新增一个(第二级)父类 ShopBaseProductCategory secondCate = new ShopBaseProductCategory(); + secondCate.setCategory_is_enable(1); secondCate.setCategory_name(secondCategoryName); secondCate.setCategory_parent_id(firstParentId); secondCate.setStore_id(storeId); @@ -310,6 +312,7 @@ public abstract class SyncBaseThirdSxAbstract{ } else { continue; } + list.get(i).setCategory_is_enable(productCategoryTemp.getCategory_is_enable()); } List libraryProductDTOS=libraryProductService.matchLibraryProducts(null,list.get(i).getCategory_name(),new ArrayList<>()); if(CollectionUtil.isNotEmpty(libraryProductDTOS)){ diff --git a/sql/shop/dev/20251028_dml.sql b/sql/shop/dev/20251028_dml.sql index 7821e4bd..f5037989 100644 --- a/sql/shop/dev/20251028_dml.sql +++ b/sql/shop/dev/20251028_dml.sql @@ -1 +1 @@ -ALTER table product_mapping add column premium_rate decimal(18,4) NOT NULL default '100' COMMENT '线上溢价率'; \ No newline at end of file +ALTER table product_mapping add column premium_rate decimal(18,4) NOT NULL default '0' COMMENT '线上溢价率'; \ No newline at end of file