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; } }