refactor(mall): 更新数据库配置并优化类目查询逻辑

- 更新 ruoyi-admin 和 ruoyi-mall-api 项目的数据库配置,使用新的数据库连接信息
- 修改 TzCategoryServiceImpl 中的 listByParentId 方法,增加对子集状态的查询条件
This commit is contained in:
清晨
2025-05-12 10:02:27 +08:00
parent 2d4e8a497b
commit ad2776df97
5 changed files with 13 additions and 15 deletions

View File

@@ -103,8 +103,6 @@ public class TzCategoryServiceImpl implements ITzCategoryService {
return baseMapper.updateById(update) > 0;
}
/**
* 校验并批量删除产品类目信息
*
@@ -119,7 +117,7 @@ public class TzCategoryServiceImpl implements ITzCategoryService {
@Override
public List<TzCategoryVo> listByParentId(Long parentId) {
return baseMapper.selectVoList(new LambdaQueryWrapper<TzCategory>().eq(TzCategory::getParentId, parentId).eq(TzCategory::getStatus,1));
return baseMapper.selectVoList(new LambdaQueryWrapper<TzCategory>().eq(TzCategory::getParentId, parentId).eq(TzCategory::getStatus,1).eq(TzCategory::getSubset,1));
}
/**