| | |
| | | |
| | | actList.forEach(act -> { |
| | | //查询社区老人认证统计信息,并存储到数据库中 |
| | | Map<String,String> resultMap = this.baseMapper.getEldersAuthStatistics(act.getCommunityId()); |
| | | Map<String,Object> resultMap = this.baseMapper.getEldersAuthStatistics(act.getCommunityId()); |
| | | if(resultMap != null){ |
| | | ComEldersAuthStatisticsDO authStatisticsDO = new ComEldersAuthStatisticsDO(); |
| | | authStatisticsDO.setCommunityId(act.getCommunityId()); |
| | | authStatisticsDO.setMonth(DateUtils.getMonth(nowDate)); |
| | | authStatisticsDO.setMonth(DateUtils.getMonth(nowDate) + 1); |
| | | authStatisticsDO.setYear(DateUtils.getYear(nowDate)); |
| | | authStatisticsDO.setCreateAt(nowDate); |
| | | authStatisticsDO.setSum(Integer.parseInt(resultMap.get("oldCount"))); |
| | | authStatisticsDO.setNoAuthSum(Integer.parseInt(resultMap.get("noCount"))); |
| | | authStatisticsDO.setAuthSum(Integer.parseInt(resultMap.get("yesCount"))); |
| | | authStatisticsDO.setSum(Integer.parseInt(resultMap.get("oldCount").toString())); |
| | | authStatisticsDO.setNoAuthSum(Integer.parseInt(resultMap.get("noCount").toString())); |
| | | authStatisticsDO.setAuthSum(Integer.parseInt(resultMap.get("yesCount").toString())); |
| | | comEldersAuthStatisticsMapper.insert(authStatisticsDO); |
| | | } |
| | | }); |