|
@@ -265,9 +265,14 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
//查询这个客户的销售额(合同总金额)及成交合同数量
|
|
//查询这个客户的销售额(合同总金额)及成交合同数量
|
|
ContractVo contractVo = contractService.getSalesTotal(dto.getId());
|
|
ContractVo contractVo = contractService.getSalesTotal(dto.getId());
|
|
map.put("contractVo", contractVo);
|
|
map.put("contractVo", contractVo);
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ List<ContractVo> contractVoList = contractService.getSalesTotalList(dto.getId());
|
|
|
|
+ // 赋值用户名称
|
|
|
|
+ UserUtil.assignmentNickName(contractVoList, BasePo::getCreateUser, ContractVo::setUserName);
|
|
|
|
+ // 赋值买方公司名称(客户)
|
|
|
|
+ customerService.attributeAssign(contractVoList, ContractVo::getBuyCorporationId, (item, customer) -> {
|
|
|
|
+ item.setBuyCorporationName(customer.getName());
|
|
|
|
+ });
|
|
|
|
+ map.put("contractList",contractVoList);
|
|
//查询这个客户的报价次数
|
|
//查询这个客户的报价次数
|
|
Integer count = this.getCount(dto.getId());
|
|
Integer count = this.getCount(dto.getId());
|
|
DynamicDataSourceContextHolder.poll();
|
|
DynamicDataSourceContextHolder.poll();
|