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

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

View File

@ -91,6 +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)
.page(req.toPage());
List<ProductVO> list = BeanMapper.copyList(page.getRecords(), ProductVO.class);
list.forEach(e -> {