| | |
| | | } |
| | | |
| | | @Override |
| | | public Map<Long, Long> getContractCountMapByCustomerIds(Collection<Long> customerIds) { |
| | | return contractMapper.selectContractCountMapByCustomerIds(customerIds); |
| | | } |
| | | |
| | | @Override |
| | | public Map<Long, BigDecimal> getContractPriceMapByCustomerIds(Collection<Long> customerIds) { |
| | | return contractMapper.selectContractPriceMapByCustomerIds(customerIds); |
| | | } |
| | | |
| | | @Override |
| | | public List<CrmContractProductDO> getContractProductListByContractId(Long contactId) { |
| | | return contractProductMapper.selectListByContractId(contactId); |
| | | } |
| | |
| | | item.setProductId(cp.getItemId()); |
| | | item.setProductPrice(cp.getContractPrice()); |
| | | item.setCount(cp.getCount()); |
| | | // 与页面新增明细的默认值一致:默认需要生产,转单后可在提交前按实际情况改为“不需要生产” |
| | | item.setNeedProduction(1); |
| | | return item; |
| | | }) |
| | | .toList(); |