| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public OrderChartVo productOrderChart(Map<String, Object> params) { |
| | | public List<OrderChartVo> productOrderChart(Map<String, Object> params) { |
| | | return baseMapper.productOrderChart(params); |
| | | } |
| | | /** |
| | |
| | | * units 是产品名称 |
| | | */ |
| | | @Override |
| | | public OrderChartVo proCountChart() { |
| | | public List<OrderChartVo> proCountChart() { |
| | | return baseMapper.proCountChart(); |
| | | } |
| | | |
| | |
| | | //包含共享的数据 |
| | | userProductDetail.setProductOrderJoinDetailListShare(productOrderDetailList.stream().filter(f -> f.getIsShare()).collect(Collectors.toList())); |
| | | //科室私有的数据 |
| | | userProductDetail.setProductOrderJoinDetailsListDep(productOrderDetailList.stream().filter((f -> departmentId.equals(f.getDepartmentId()) && f.getIsShare() == false)).collect(Collectors.toList())); |
| | | userProductDetail.setProductOrderJoinDetailsListDep(productOrderDetailList.stream().filter((f -> departmentId.equals(f.getDepartmentId()) && !f.getIsShare())).collect(Collectors.toList())); |
| | | return userProductDetail; |
| | | } |
| | | return null; |