| | |
| | | */ |
| | | @ApiOperation("报警数量分析月") |
| | | @GetMapping("alarm/month") |
| | | public Results alarmMonth(String month,String type){ |
| | | public Results alarmMonth(Integer month,String type){ |
| | | LocalDate today = LocalDate.now(); |
| | | int year = today.getYear(); |
| | | int day = getDaysInMonth(Integer.valueOf(month)); |
| | | int day = getDaysInMonth(month); |
| | | ESParam esParam = new ESParam(); |
| | | esParam.setStart(year+"-"+month+"-01"); |
| | | esParam.setEnd(year+"-"+month+"-"+day); |
| | | esParam.setMonth(month); |
| | | if("1001".equals(type)){ |
| | | //盗电报警 |
| | | return Results.succeed(statisticalService.stealelecMonth(esParam)); |