SignReportController.java
1.44 KB
package com.ruoyi.controller.app;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.ResponseResult;
import com.ruoyi.domain.dss.app.vo.SignReportVo;
import com.ruoyi.service.SignReportServer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Slf4j
@RestController
@RequestMapping("/app/sign/report")
@Api(tags = "【App对接】签到对接")
public class SignReportController extends BaseController {
@Autowired
private SignReportServer signReportServer;
@ApiOperation("签到数据统计(设备状态、检查人数、异常人数、酒驾人数);(dateStr格式为yyyy-MM-dd)")
@ApiParam(name = "dateStr", value = "查询日期(格式为yyyy-MM-dd)", required = true,example="2024-12-11")
@GetMapping("/equipment/people/num/{dateStr}")
public ResponseResult<SignReportVo> equipmentAndPeopleNumStatistics(@PathVariable String dateStr) {
SignReportVo vo = signReportServer.querySignReportVo(dateStr);
return ResponseResult.success(vo);
}
}