1. add mall product
This commit is contained in:
2026-02-06 00:22:54 +08:00
parent 4d18d698df
commit cc812cf1d3
3 changed files with 189 additions and 101 deletions

View File

@@ -25,6 +25,7 @@
*/
package org.springblade.modules.mall.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springblade.modules.api.vo.MallProductApiVO;
import org.springblade.modules.mall.convert.AppMallConvert;
import org.springblade.modules.mall.pojo.entity.MallProductEntity;
@@ -53,7 +54,7 @@ public class MallProductServiceImpl extends BaseServiceImpl<MallProductMapper, M
@Override
public List<MallProductApiVO> apiVoList() {
List<MallProductEntity> list = list();
List<MallProductEntity> list = list(Wrappers.<MallProductEntity>lambdaQuery().eq(MallProductEntity::getStatus, 1).eq(MallProductEntity::getIsDeleted, 0).orderByDesc(MallProductEntity::getRetailPrice));
return AppMallConvert.INSTANCE.convertMallProductApiListVO(list);
}