zf
2023-08-30 464fe41610a39c3a06f070d5a01c930134ff0163
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.gk.hotwork.Controller;
 
import com.alibaba.fastjson.JSONObject;
import com.gk.hotwork.Controller.Base.BaseController;
import com.gk.hotwork.Domain.Utils.Msg;
import com.gk.hotwork.Domain.dto.resp.SafetySelfInspectionRespDTO;
import com.gk.hotwork.Domain.query.CountQuery;
import com.gk.hotwork.Service.SafetyInspectionStatisticService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
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;
 
/**
 * @email 1603559716@qq.com
 * @author: zf
 * @date: 2023/8/22
 * @time: 15:28
 */
@Api(tags = "自查清单_统计")
@RestController
@RequestMapping("/statistic")
public class SafetyInspectionStatisticCotroller extends BaseController {
    @Autowired
    private SafetyInspectionStatisticService statisticService;
 
    @ApiOperation("/统计")
    @PostMapping("/getCountByArea")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "province",value = "省"),
            @ApiImplicitParam(name = "city",value = "市"),
            @ApiImplicitParam(name = "area",value = "县"),
            @ApiImplicitParam(name = "startTime",value = "开始时间"),
            @ApiImplicitParam(name = "endTime",value = "结束时间")
    })
    public Msg getCountByArea(@RequestBody CountQuery query) {
        Msg msg = statisticService.getCountByArea(query,getUser());
        return msg;
    }
    @ApiOperation("/未检查公司")
    @PostMapping("/getUnCheckCompany")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "province",value = "省"),
            @ApiImplicitParam(name = "city",value = "市"),
            @ApiImplicitParam(name = "area",value = "县"),
            @ApiImplicitParam(name = "startTime",value = "开始时间"),
            @ApiImplicitParam(name = "endTime",value = "结束时间")
    })
    public Msg getUnCheckCompany(@RequestBody CountQuery query) {
        Msg msg = statisticService.getUnCheckCompany(query);
        return msg;
    }
}