|
@@ -28,6 +28,7 @@ import com.fjhx.customer.entity.customer.vo.CustomerVo;
|
|
|
import com.fjhx.customer.service.customer.CustomerService;
|
|
|
import com.fjhx.file.entity.FileInfoVo;
|
|
|
import com.fjhx.file.utils.ObsFileUtil;
|
|
|
+import com.fjhx.item.service.product.ProductClassifyService;
|
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
|
import com.fjhx.sale.entity.contract.vo.ContractVo;
|
|
|
import com.fjhx.sale.entity.quotation.dto.QuotationProductBomDto;
|
|
@@ -55,7 +56,6 @@ import com.fjhx.sale.util.code.CodeEnum;
|
|
|
import com.fjhx.socket.core.PushTypeEnum;
|
|
|
import com.fjhx.socket.core.WebSocketPush;
|
|
|
import com.fjhx.tenant.entity.dict.vo.DictTenantDataVo;
|
|
|
-import com.fjhx.tenant.service.dict.DictTenantDataService;
|
|
|
import com.fjhx.tenant.utils.DeptUtils;
|
|
|
import com.fjhx.tenant.utils.DictUtils;
|
|
|
import com.ruoyi.common.core.domain.BasePo;
|
|
@@ -87,22 +87,14 @@ import java.util.stream.Collectors;
|
|
|
public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, SaleQuotation> implements SaleQuotationService {
|
|
|
@Autowired
|
|
|
private QuotationProductService quotationProductService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private QuotationPayService quotationPayService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private ContractService contractService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private CustomerService customerService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private DictTenantDataService dictTenantDataService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private CodingRuleService codingRuleService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private CorporationService corporationService;
|
|
|
@Autowired
|
|
@@ -115,6 +107,8 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
private ISysUserService sysUserService;
|
|
|
@Autowired
|
|
|
private QuotationProductCustomInfoService quotationProductCustomInfoService;
|
|
|
+ @Autowired
|
|
|
+ private ProductClassifyService productClassifyService;
|
|
|
|
|
|
/**
|
|
|
* 报价表分页
|
|
@@ -429,6 +423,10 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
item.setProductWidth(productInfo.getWidth());
|
|
|
item.setProductHeight(productInfo.getHeight());
|
|
|
});
|
|
|
+ //赋值分类信息
|
|
|
+ productClassifyService.attributeAssign(quotationProductVos, QuotationProductVo::getProductClassifyId, (item, pClass) -> {
|
|
|
+ item.setProductClassifyName(pClass.getName());
|
|
|
+ });
|
|
|
//获取配件列表
|
|
|
List<Long> qpIds = productList.stream().map(QuotationProduct::getId).collect(Collectors.toList());
|
|
|
Map<Long, List<QuotationProductBomVo>> qpbMap = new HashMap<>();
|