refactor(mall): 更新数据库配置并优化类目查询逻辑
- 更新 ruoyi-admin 和 ruoyi-mall-api 项目的数据库配置,使用新的数据库连接信息 - 修改 TzCategoryServiceImpl 中的 listByParentId 方法,增加对子集状态的查询条件
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user