|
@@ -180,6 +180,12 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
productInfoService.attributeAssign(quotationPayVos, QuotationProductVo::getProductId, (item, productInfo) -> {
|
|
|
item.setProductCode(productInfo.getCustomCode());
|
|
|
item.setProductName(productInfo.getName());
|
|
|
+
|
|
|
+ item.setProductLength(productInfo.getLength());
|
|
|
+ item.setProductWidth(productInfo.getWidth());
|
|
|
+ item.setProductWidth(productInfo.getHeight());
|
|
|
+ item.setProductColor(productInfo.getColor());
|
|
|
+
|
|
|
});
|
|
|
Map<Long, List<QuotationProductVo>> pMap = quotationPayVos.stream().collect(Collectors.groupingBy(QuotationProduct::getSaleQuotationId));
|
|
|
|
|
@@ -330,61 +336,6 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
}
|
|
|
|
|
|
return setDetailInfo(Arrays.asList(result)).get(0);
|
|
|
-//
|
|
|
-// //赋值买方公司名称(客户)
|
|
|
-// Customer customer = customerService.getById(result.getBuyCorporationId());
|
|
|
-// if (ObjectUtil.isNotEmpty(customer)) {
|
|
|
-// result.setBuyCorporationName(customer.getName());
|
|
|
-// }
|
|
|
-//
|
|
|
-// //赋值买方公司地址
|
|
|
-// setArea(result);
|
|
|
-// //查询报价-商品表的详情
|
|
|
-// List<QuotationProduct> quotationProductList = quotationProductService.list(Wrappers.<QuotationProduct>lambdaQuery()
|
|
|
-// .eq(QuotationProduct::getSaleQuotationId, result.getId()));
|
|
|
-//
|
|
|
-// List<QuotationProductVo> quotationProductVos = BeanUtil.copyToList(quotationProductList, QuotationProductVo.class);
|
|
|
-// //赋值产品信息
|
|
|
-// productInfoService.attributeAssign(quotationProductVos, QuotationProductVo::getProductId, (item, productInfo) -> {
|
|
|
-// item.setProductCode(productInfo.getCustomCode());
|
|
|
-// item.setProductName(productInfo.getName());
|
|
|
-// item.setProductLength(productInfo.getLength());
|
|
|
-// item.setProductWidth(productInfo.getWidth());
|
|
|
-// item.setProductHeight(productInfo.getHeight());
|
|
|
-// });
|
|
|
-//
|
|
|
-// //获取配件列表
|
|
|
-// Map<Long, List<QuotationProductBomVo>> qpbMap = new HashMap<>();
|
|
|
-// List<Long> ids = quotationProductVos.stream().map(QuotationProduct::getId).collect(Collectors.toList());
|
|
|
-// if (ObjectUtil.isNotEmpty(ids)) {
|
|
|
-// List<QuotationProductBom> list = quotationProductBomService.list(q -> q.in(QuotationProductBom::getQuotationProductId, ids));
|
|
|
-//
|
|
|
-// List<QuotationProductBomVo> quotationProductBomVos = BeanUtil.copyToList(list, QuotationProductBomVo.class);
|
|
|
-// //赋值产品信息
|
|
|
-// productInfoService.attributeAssign(quotationProductBomVos, QuotationProductBom::getMaterialId, (item, productInfo) -> {
|
|
|
-// item.setProductCode(productInfo.getCustomCode());
|
|
|
-// item.setProductName(productInfo.getName());
|
|
|
-// item.setProductLength(productInfo.getLength());
|
|
|
-// item.setProductWidth(productInfo.getWidth());
|
|
|
-// item.setProductHeight(productInfo.getHeight());
|
|
|
-// });
|
|
|
-//
|
|
|
-// qpbMap = quotationProductBomVos.stream().collect(Collectors.groupingBy(QuotationProductBom::getQuotationProductId));
|
|
|
-// }
|
|
|
-// for (QuotationProductVo quotationProductVo : quotationProductVos) {
|
|
|
-// quotationProductVo.setQuotationProductBomList(qpbMap.get(quotationProductVo.getId()));
|
|
|
-// }
|
|
|
-// result.setQuotationProductList(quotationProductVos);
|
|
|
-//
|
|
|
-// //赋值报价金额趋势
|
|
|
-// List<SaleQuotation> quotationTrendList = this.list(q -> q
|
|
|
-// .eq(SaleQuotation::getGroupId, result.getGroupId())
|
|
|
-// .ne(SaleQuotation::getStatus, FlowStatusEnum1.CANCELLATION.getKey())
|
|
|
-// .orderByAsc(SaleQuotation::getCreateTime)
|
|
|
-// );
|
|
|
-// result.setQuotationTrendList(quotationTrendList);
|
|
|
-//
|
|
|
-// return result;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -424,6 +375,7 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
item.setProductLength(productInfo.getLength());
|
|
|
item.setProductWidth(productInfo.getWidth());
|
|
|
item.setProductHeight(productInfo.getHeight());
|
|
|
+ item.setProductColor(productInfo.getColor());
|
|
|
});
|
|
|
//获取配件列表
|
|
|
List<Long> qpIds = productList.stream().map(QuotationProduct::getId).collect(Collectors.toList());
|
|
@@ -438,6 +390,7 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
item.setProductLength(productInfo.getLength());
|
|
|
item.setProductWidth(productInfo.getWidth());
|
|
|
item.setProductHeight(productInfo.getHeight());
|
|
|
+ item.setProductColor(productInfo.getColor());
|
|
|
});
|
|
|
qpbMap = quotationProductBomVos.stream().collect(Collectors.groupingBy(QuotationProductBom::getQuotationProductId));
|
|
|
}
|