| | |
| | | Map<Integer, Integer> collect = comShopOrderCountVOS.stream().collect(Collectors.toMap(ComShopOrderCountVO::getStatus, ComShopOrderCountVO::getAmount)); |
| | | Map<String, Integer> retMap = new HashMap<>(); |
| | | int amountTotal = 0; |
| | | for (int i = 1; i <= statusStr.length; i++) { |
| | | if (collect.containsKey(i)) { |
| | | Integer amount = collect.get(i); |
| | | for (int i = 0; i < statusStr.length; i++) { |
| | | if (collect.containsKey(i+1)) { |
| | | Integer amount = collect.get(i+1); |
| | | amountTotal = amountTotal + amount; |
| | | retMap.put(statusStr[i], amount); |
| | | } else { |