admin
2022-05-06 8cc3c660bdaaaa6a46eecadb78e4e9c17a07c227
app/src/main/java/com/yeshi/makemoney/app/dao/goldcorn/GoldCornGetRecordDao.java
@@ -75,7 +75,7 @@
    }
    /**
     * @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
@@ -91,9 +91,11 @@
        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);
            }
        }