Newer
Older
huludao / src / main / java / com / newfiber / api / pc / controller / zhz / AlertStatisticsController.java
package com.newfiber.api.pc.controller.zhz;

import com.newfiber.api.core.annotation.SysLog;
import com.newfiber.api.core.commons.PageRequestObject;
import com.newfiber.api.core.commons.PageResultObject;
import com.newfiber.api.core.commons.ResultCode;
import com.newfiber.api.core.commons.ResultObj;
import com.newfiber.api.pc.dto.AlertStatisticsDTO;
import com.newfiber.api.pc.model.vo.AlertStatisticsVo;
import com.newfiber.api.pc.service.MeetAlterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 警情统计
 * @Author:zhz
 * @CreateDate:2020/12/1 17:28
 * @Description:
 */
@RestController
@RequestMapping("/alertStatistics")
@Api(value = "AlertStatisticsController",tags = "警情统计")
public class AlertStatisticsController {

    @Autowired
    private MeetAlterService meetAlterService;

    @PostMapping("/statistics")
    @ApiOperation("查询警情统计信息")
    @SysLog(actionType = "4",value = "查询警情统计信息")
    public ResultObj<PageResultObject<AlertStatisticsVo>> alertStatistics(@RequestBody PageRequestObject<AlertStatisticsDTO> pageRequestObject){
        return new ResultObj<PageResultObject<AlertStatisticsVo>>(ResultCode.OK,meetAlterService.alertStatistics(pageRequestObject));
    }

}