|
@@ -330,8 +330,8 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiOperation(value = "web数据统计 报警数据详情")
|
|
@ApiOperation(value = "web数据统计 报警数据详情")
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
- @ApiImplicitParam(paramType = "query", name = "startMonth", value = "起始月份"),
|
|
|
|
- @ApiImplicitParam(paramType = "query", name = "endMonth", value = "结束月份"),
|
|
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentYear", value = "当前年份"),
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentMonth", value = "当前月份"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
})
|
|
})
|
|
public AjaxResult dataStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public AjaxResult dataStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
@@ -342,8 +342,8 @@ public class MsgAlarmController extends BaseController {
|
|
if (user.isAdmin(user.getId())) {
|
|
if (user.isAdmin(user.getId())) {
|
|
userId = "";
|
|
userId = "";
|
|
}
|
|
}
|
|
- IPage<AlarmStatisticVo> page = msgAlarmService.list(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getStartMonth(),
|
|
|
|
- alarmStatisticResVo.getEndMonth(), alarmStatisticResVo.getAlarmType(), pageNum, pageSize, userId);
|
|
|
|
|
|
+ IPage<AlarmStatisticVo> page = msgAlarmService.list(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getCurrentYear(),
|
|
|
|
+ alarmStatisticResVo.getCurrentMonth(), alarmStatisticResVo.getAlarmType(), pageNum, pageSize, userId);
|
|
return AjaxResult.success(page);
|
|
return AjaxResult.success(page);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -358,8 +358,8 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiOperation(value = "web数据统计 报警月统计数据")
|
|
@ApiOperation(value = "web数据统计 报警月统计数据")
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
- @ApiImplicitParam(paramType = "query", name = "startMonth", value = "起始月份"),
|
|
|
|
- @ApiImplicitParam(paramType = "query", name = "endMonth", value = "结束月份"),
|
|
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentYear", value = "当前年份"),
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentMonth", value = "当前月份"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
})
|
|
})
|
|
public AjaxResult alarmMonthStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public AjaxResult alarmMonthStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
@@ -369,8 +369,8 @@ public class MsgAlarmController extends BaseController {
|
|
if (user.isAdmin(user.getId())) {
|
|
if (user.isAdmin(user.getId())) {
|
|
userId = "";
|
|
userId = "";
|
|
}
|
|
}
|
|
- List<AlarmStatisticMonthDto> list = msgAlarmService.getCount(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getStartMonth(),
|
|
|
|
- alarmStatisticResVo.getEndMonth(), alarmStatisticResVo.getAlarmType(), userId);
|
|
|
|
|
|
+ List<AlarmStatisticMonthDto> list = msgAlarmService.getCount(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getCurrentYear(),
|
|
|
|
+ alarmStatisticResVo.getCurrentMonth(), alarmStatisticResVo.getAlarmType(), userId);
|
|
List<Integer> numbs = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12));
|
|
List<Integer> numbs = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12));
|
|
List<Integer> list1 = new ArrayList<>();
|
|
List<Integer> list1 = new ArrayList<>();
|
|
if (!CollectionUtils.isEmpty(list) && Objects.nonNull(list.get(0))) {
|
|
if (!CollectionUtils.isEmpty(list) && Objects.nonNull(list.get(0))) {
|
|
@@ -411,8 +411,8 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiOperation(value = "web数据统计-数据导出")
|
|
@ApiOperation(value = "web数据统计-数据导出")
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
- @ApiImplicitParam(paramType = "query", name = "startMonth", value = "起始月份"),
|
|
|
|
- @ApiImplicitParam(paramType = "query", name = "endMonth", value = "结束月份"),
|
|
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentYear", value = "当前年份"),
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentMonth", value = "当前月份"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
})
|
|
})
|
|
public void exportDataStatistic(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public void exportDataStatistic(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
@@ -455,8 +455,8 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiOperation(value = "报警月统计数据导出")
|
|
@ApiOperation(value = "报警月统计数据导出")
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
@ApiImplicitParam(paramType = "query", name = "railwayCode", value = "线路编码"),
|
|
- @ApiImplicitParam(paramType = "query", name = "startMonth", value = "起始月份"),
|
|
|
|
- @ApiImplicitParam(paramType = "query", name = "endMonth", value = "结束月份"),
|
|
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentYear", value = "当前年份"),
|
|
|
|
+ @ApiImplicitParam(paramType = "query", name = "currentMonth", value = "当前月份"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
})
|
|
})
|
|
public void exportDataStatisticMonth(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public void exportDataStatisticMonth(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|