订单详情三维看图部件所有板件接口补充cadViewFileId修复

This commit is contained in:
gaoqr
2026-02-24 15:41:10 +08:00
parent 3fe95953cc
commit 8439b57560
@@ -253,7 +253,7 @@ public class OrderComponentServiceImpl implements OrderComponentService {
.in(OrderComponentDO::getTopId, topIds)
.eq(OrderComponentDO::getOrderId, orderId)
.eqIfPresent(OrderComponentDO::getDeleted, pageReqVO.isDeleted())
.select(OrderComponentDO::getId));
.select(OrderComponentDO::getId, OrderComponentDO::getCadViewFileId));
if (CollUtil.isNotEmpty(orderComponentDOS)) {
componentIds = orderComponentDOS.stream().map(OrderComponentDO::getId).collect(Collectors.toSet());
} else {
@@ -269,10 +269,9 @@ public class OrderComponentServiceImpl implements OrderComponentService {
IPage<OrderBodyViewPlatesPageDO> viewPlatesPage = orderItemMapper.selectBodyViewPlatesPage(page, orderId, null,
null, componentIds, true);
List<OrderBodyViewPlatesPageDO> records = viewPlatesPage.getRecords();
long total = viewPlatesPage.getTotal();
List<OrderViewPlatePageRespVO> resultList = new ArrayList<>();
if(total > 0) {
if(CollUtil.isNotEmpty(records)) {
resultList = records.stream().map(item -> {
OrderViewPlatePageRespVO vo = new OrderViewPlatePageRespVO();
BeanUtil.copyProperties(item, vo);