refactor(product):重构产品查询逻辑并新增分类名称字段- 将查询构造器从LambdaQueryWrapper改为QueryWrapper
- 新增image字段用于存储产品图像信息 - 添加categoryName字段并配置Excel导出属性 - 调整buildQueryWrapper方法为buildQueryWrapperPlus
This commit is contained in:
@@ -85,4 +85,8 @@ public class GearProductVo {
|
||||
private String accessory;
|
||||
//新增图像字段
|
||||
private String image;
|
||||
// 分类名称
|
||||
@ExcelProperty(value = "分类名称")
|
||||
private String categoryName;
|
||||
}
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ public class GearProductServiceImpl implements IGearProductService {
|
||||
*/
|
||||
@Override
|
||||
public List<GearProductVo> queryList(GearProductBo bo) {
|
||||
LambdaQueryWrapper<GearProduct> lqw = buildQueryWrapper(bo);
|
||||
QueryWrapper<GearProduct> lqw = buildQueryWrapperPlus(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user