| | |
| | | */ |
| | | private ProductOrderDetail deductionDepartmentProduct(int consumCount, Long hospitalId, Long departmentId) { |
| | | UserProductDetail userProductDetail = productOrderDetailService.getUserProductDetail(hospitalId, departmentId); |
| | | //合并集合 并将读片量=0的过滤掉 |
| | | //合并集合 |
| | | userProductDetail.getProductOrderJoinDetailListShare() |
| | | .stream().filter(f->f.getAilightCount()>0).collect(Collectors.toList()) |
| | | .addAll(userProductDetail.getProductOrderJoinDetailsListDep() |
| | | .stream().filter(f->f.getAilightCount()>0).collect(Collectors.toList())); |
| | | .addAll(userProductDetail.getProductOrderJoinDetailsListDep()); |
| | | List<ProductOrderJoinDetail> productOrderJoinDetailList = userProductDetail.getProductOrderJoinDetailListShare(); |
| | | if (productOrderJoinDetailList.size() > 0) { |
| | | //合并后按id排序并筛除已用完的套餐 |