| | |
| | | import cn.cetc54.platform.core.common.utils.ResultUtil; |
| | | import cn.cetc54.platform.core.common.vo.Result; |
| | | import cn.cetc54.platform.zhyl.service.ISubsidyLogService; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.Data; |
| | |
| | | @GetMapping("/getTotalStatistics") |
| | | @ApiOperation(value = "获取总统计数据") |
| | | public Result getTotalStatistics(String areaId,Integer type){ |
| | | if (StrUtil.isNotBlank(areaId)&&areaId.equals("130100")){ |
| | | //如果是全市 areaId设置未空 |
| | | areaId = null; |
| | | } |
| | | int totalPersonNum = iSubsidyLogService.getTotalNum(areaId,type);//获取补贴的总人数 |
| | | double totalMoney = iSubsidyLogService.getTotalMoney(areaId,type);//获取总金额 |
| | | |
| | |
| | | @GetMapping("/getStatistics") |
| | | @ApiOperation(value = "年度月度统计数据") |
| | | public Result getStatistics(String areaId,Integer type){ |
| | | if (StrUtil.isNotBlank(areaId)&&areaId.equals("130100")){ |
| | | //如果是全市 areaId设置未空 |
| | | areaId = null; |
| | | } |
| | | Map<String,Object> resMap = new HashMap<>(); |
| | | List<Map<String,Object>> monthList = iSubsidyLogService.getMonthTotal(areaId,type); |
| | | List<Map<String,Object>> yearList = iSubsidyLogService.getYearTotal(areaId,type); |