feat(REQ-2186): 产品page接口返回数据顺序调整

This commit is contained in:
李昆鹏 2024-05-10 17:12:23 +08:00
parent 0c28899cd1
commit 0af7b3024e

View File

@ -91,7 +91,7 @@ public class ProductServiceImpl implements ProductService {
.eq(Objects.nonNull(req.getDictWorkspaceTypeCode()), ProductModule::getDictWorkspaceTypeCode, req.getDictWorkspaceTypeCode())
.eq(Objects.nonNull(req.getStatus()), ProductModule::getStatus, req.getStatus())
.eq(org.apache.commons.lang3.StringUtils.isNotBlank(req.getProductCategory()), ProductModule::getCategory, req.getProductCategory())
.orderByAsc(BaseEntity::getId)
.orderByDesc(BaseEntity::getId)
.page(req.toPage());
List<ProductVO> list = BeanMapper.copyList(page.getRecords(), ProductVO.class);
list.forEach(e -> {