去除多余代码

This commit is contained in:
liyj 2025-05-29 17:04:15 +08:00
parent 214f568f94
commit b8b1930e57
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ public class ShopBaseProductBrandServiceImpl extends BaseServiceImpl<ShopBasePro
public boolean saveOrUpdateBrand(ShopBaseProductBrand shopBaseProductBrand) { public boolean saveOrUpdateBrand(ShopBaseProductBrand shopBaseProductBrand) {
//shopBaseProductBrand.setBrand_name_pinyin("qi ta pin pai"); //shopBaseProductBrand.setBrand_name_pinyin("qi ta pin pai");
shopBaseProductBrand.setBrand_name_pinyin(PinyinUtil.getPinyin(shopBaseProductBrand.getBrand_name()," ")); shopBaseProductBrand.setBrand_name_pinyin(PinyinUtil.getPinyin(shopBaseProductBrand.getBrand_name()));
shopBaseProductBrand.setBrand_initial(Convert.toStr(shopBaseProductBrand.getBrand_name_pinyin().charAt(0))); shopBaseProductBrand.setBrand_initial(Convert.toStr(shopBaseProductBrand.getBrand_name_pinyin().charAt(0)));
//shopBaseProductBrand.setBrand_initial("q"); //shopBaseProductBrand.setBrand_initial("q");

View File

@ -1246,7 +1246,7 @@ public class ShopBaseProductCategoryServiceImpl extends BaseServiceImpl<ShopBase
if (CollUtil.isEmpty(map)) { if (CollUtil.isEmpty(map)) {
QueryWrapper<ShopBaseProductCategory> queryWrapper = new QueryWrapper<>(); QueryWrapper<ShopBaseProductCategory> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("store_id", storeId); queryWrapper.eq("store_id", storeId);
queryWrapper.eq("data_source", 2); // queryWrapper.eq("data_source", 2);
List<ShopBaseProductCategory> categoryList = find(queryWrapper); List<ShopBaseProductCategory> categoryList = find(queryWrapper);
// 类似数据可以放到前端整理 // 类似数据可以放到前端整理
List<Map> category_tmp_rows = Convert.toList(Map.class, categoryList); List<Map> category_tmp_rows = Convert.toList(Map.class, categoryList);