| | |
| | | } |
| | | |
| | | /** |
| | | * @return java.util.Map<com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetType , java.lang.Long> |
| | | * @return java.util.Map<com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetType , java.lang.Long> |
| | | * @author hxh |
| | | * @description 统计事件数量 |
| | | * @date 10:48 2022/4/28 |
| | |
| | | Map<GoldCornGetType, Long> resultMap = new HashMap<>(); |
| | | if (mapList != null) { |
| | | for (Map map : mapList) { |
| | | GoldCornGetType type = GoldCornGetType.valueOf(map.get("_id")+""); |
| | | Long count = (Long) map.get("eventCount"); |
| | | count = count == null ? 0L : count; |
| | | GoldCornGetType type = GoldCornGetType.valueOf(map.get("_id") + ""); |
| | | Long count = 0L; |
| | | if (map.get("eventCount") != null) { |
| | | count = Long.parseLong(map.get("eventCount") + ""); |
| | | } |
| | | resultMap.put(type, count); |
| | | } |
| | | } |