商品价格分类同步改为更新不修改发版状态

This commit is contained in:
liyj 2025-10-29 10:16:31 +08:00
parent 311a82a32f
commit 76e4b86357
2 changed files with 4 additions and 1 deletions

View File

@ -218,6 +218,7 @@ public abstract class SyncBaseThirdSxAbstract{
} else{ } else{
// 新增一个第一级父类 // 新增一个第一级父类
ShopBaseProductCategory firstCate = new ShopBaseProductCategory(); ShopBaseProductCategory firstCate = new ShopBaseProductCategory();
firstCate.setCategory_is_enable(1);
firstCate.setCategory_name(firstCategoryName); firstCate.setCategory_name(firstCategoryName);
firstCate.setParent_id(0); firstCate.setParent_id(0);
firstCate.setStore_id(storeId); firstCate.setStore_id(storeId);
@ -274,6 +275,7 @@ public abstract class SyncBaseThirdSxAbstract{
} else { } else {
// 新增一个第二级父类 // 新增一个第二级父类
ShopBaseProductCategory secondCate = new ShopBaseProductCategory(); ShopBaseProductCategory secondCate = new ShopBaseProductCategory();
secondCate.setCategory_is_enable(1);
secondCate.setCategory_name(secondCategoryName); secondCate.setCategory_name(secondCategoryName);
secondCate.setCategory_parent_id(firstParentId); secondCate.setCategory_parent_id(firstParentId);
secondCate.setStore_id(storeId); secondCate.setStore_id(storeId);
@ -310,6 +312,7 @@ public abstract class SyncBaseThirdSxAbstract{
} else { } else {
continue; continue;
} }
list.get(i).setCategory_is_enable(productCategoryTemp.getCategory_is_enable());
} }
List<LibraryProductDTO> libraryProductDTOS=libraryProductService.matchLibraryProducts(null,list.get(i).getCategory_name(),new ArrayList<>()); List<LibraryProductDTO> libraryProductDTOS=libraryProductService.matchLibraryProducts(null,list.get(i).getCategory_name(),new ArrayList<>());
if(CollectionUtil.isNotEmpty(libraryProductDTOS)){ if(CollectionUtil.isNotEmpty(libraryProductDTOS)){

View File

@ -1 +1 @@
ALTER table product_mapping add column premium_rate decimal(18,4) NOT NULL default '100' COMMENT '线上溢价率'; ALTER table product_mapping add column premium_rate decimal(18,4) NOT NULL default '0' COMMENT '线上溢价率';