refactor(product):重构产品查询逻辑并新增分类名称字段- 将查询构造器从LambdaQueryWrapper改为QueryWrapper

- 新增image字段用于存储产品图像信息
- 添加categoryName字段并配置Excel导出属性
- 调整buildQueryWrapper方法为buildQueryWrapperPlus
This commit is contained in:
2025-09-24 10:03:08 +08:00
parent ccc5a0410f
commit e11fbd7cab
2 changed files with 5 additions and 1 deletions

View File

@@ -85,4 +85,8 @@ public class GearProductVo {
private String accessory; private String accessory;
//新增图像字段 //新增图像字段
private String image; private String image;
// 分类名称
@ExcelProperty(value = "分类名称")
private String categoryName;
} }

View File

@@ -92,7 +92,7 @@ public class GearProductServiceImpl implements IGearProductService {
*/ */
@Override @Override
public List<GearProductVo> queryList(GearProductBo bo) { public List<GearProductVo> queryList(GearProductBo bo) {
LambdaQueryWrapper<GearProduct> lqw = buildQueryWrapper(bo); QueryWrapper<GearProduct> lqw = buildQueryWrapperPlus(bo);
return baseMapper.selectVoList(lqw); return baseMapper.selectVoList(lqw);
} }