|
@@ -4,6 +4,7 @@ package com.zcxk.rmcp.web.controller;
|
|
|
import com.bz.zoneiot.core.common.pojo.AjaxMessage;
|
|
|
import com.bz.zoneiot.core.mysql.pageing.Pagination;
|
|
|
import com.bz.zoneiot.core.utils.export.EasyExcelUtil;
|
|
|
+import com.zcxk.rmcp.api.dto.BasePageDto;
|
|
|
import com.zcxk.rmcp.api.dto.alarm.AlarmDetailsRealTimeDto;
|
|
|
import com.zcxk.rmcp.api.dto.alarm.AlarmTypeDetailsDto;
|
|
|
import com.zcxk.rmcp.api.vo.alarm.AlarmTypeDetailsEntityVo;
|
|
@@ -12,10 +13,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
@@ -34,11 +32,11 @@ public class AlarmTypeDetailsController {
|
|
|
@Autowired
|
|
|
private AlarmTypeDetailsService alarmTypeDetailsService;
|
|
|
|
|
|
- @RequestMapping(value="selectPage" , method = RequestMethod.POST)
|
|
|
+ @GetMapping(value="selectPage" )
|
|
|
@ApiOperation(value = "分页查询报警详情信息")
|
|
|
- public AjaxMessage selectPage(@RequestBody @Valid AlarmTypeDetailsDto dto){
|
|
|
+ public AjaxMessage selectPage(@Valid AlarmTypeDetailsDto dto, BasePageDto page){
|
|
|
|
|
|
- return AjaxMessage.success(alarmTypeDetailsService.selectPage(dto));
|
|
|
+ return AjaxMessage.success(alarmTypeDetailsService.selectPage(dto,page));
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value="export" , method = RequestMethod.GET)
|