songhuangfeng123
2022-08-17 8702c17288c16ec3d6760326e85cae37bbb10af8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.gkhy.safePlatform.incidentManage.controller;
 
import com.gkhy.safePlatform.commons.vo.ResultVO;
import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportCountRespDTO;
import com.gkhy.safePlatform.incidentManage.query.AccidentReportCountQuery;
import com.gkhy.safePlatform.incidentManage.service.AccidentCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@RestController
@RequestMapping("/accidentCount")
public class AccidentCountController {
 
    @Autowired
    private AccidentCountService accidentCountService;
 
 
    /**
     * 事故报告统计的rpc接口
     */
    @RequestMapping(value = "/accidentReport/count",method = RequestMethod.POST)
    public ResultVO<List<AccidentReportCountRespDTO>> countAccidentReport(@RequestBody AccidentReportCountQuery query){
        return accidentCountService.countAccidentReport(query);
    }
 
}