package com.fzzy.regulatory;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.fzzy.igds.constant.RespCodeEnum;
|
import com.fzzy.igds.data.IgdsBaseParam;
|
import com.fzzy.igds.data.PageResponse;
|
import com.fzzy.igds.domain.SnapReply;
|
import com.fzzy.igds.response.BaseResponse;
|
import com.fzzy.regulatory.manager.SnapReplyManager;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import javax.annotation.Resource;
|
|
@Slf4j
|
@Controller
|
@RequestMapping("/regulatory/snapReply")
|
public class SnapReplyController {
|
|
private static final String prefix = "regulatory";
|
|
@Resource
|
private SnapReplyManager snapReplyManager;
|
|
|
/**
|
* 分页查询数据
|
*
|
* @param param
|
* @return
|
*/
|
@PostMapping("/pageData")
|
@ResponseBody
|
public PageResponse<Page<SnapReply>> pageData(IgdsBaseParam param) {
|
Page<SnapReply> snapRecordPage = snapReplyManager.pageData(param);
|
return new PageResponse<>(RespCodeEnum.CODE_0000, snapRecordPage);
|
}
|
|
|
/**
|
* 告警批复
|
*
|
* @param snapReply
|
* @return
|
*/
|
@PostMapping("/updateData")
|
@ResponseBody
|
public BaseResponse updateData(SnapReply snapReply) {
|
return snapReplyManager.updateData(snapReply);
|
}
|
|
}
|