|
@@ -0,0 +1,85 @@
|
|
|
|
+package com.zfjg.manage.controller.statistics;
|
|
|
|
+
|
|
|
|
+import com.zfjg.common.core.domain.R;
|
|
|
|
+import com.zfjg.manage.api.dto.statistics.CommonQueryDto;
|
|
|
|
+import com.zfjg.manage.api.vo.DeptVo;
|
|
|
|
+import com.zfjg.manage.service.statistics.StatisticsService;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
+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;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @Author: Mr.Yang
|
|
|
|
+ * @CreateTime: 2024-02-27
|
|
|
|
+ * @Description:
|
|
|
|
+ */
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("/statistics")
|
|
|
|
+@Api(tags = "大屏统计")
|
|
|
|
+@Slf4j
|
|
|
|
+public class StatisticsController {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private StatisticsService statisticsServiceImpl;
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "部门列表")
|
|
|
|
+ @PostMapping("/deptList")
|
|
|
|
+ public R<List<DeptVo>> deptList() {
|
|
|
|
+ List<DeptVo> list = statisticsServiceImpl.deptList();
|
|
|
|
+ return R.ok(list);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "检查总数(家)")
|
|
|
|
+ @PostMapping("/jczs")
|
|
|
|
+ public R<Integer> jczs(@RequestBody CommonQueryDto commonQueryDto) {
|
|
|
|
+ int count = statisticsServiceImpl.jczs(commonQueryDto);
|
|
|
|
+ return R.ok(count);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 监督抽查(专项、日常)
|
|
|
|
+ * @param commonQueryDto
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "监督抽查(家)")
|
|
|
|
+ @PostMapping("/jdcc")
|
|
|
|
+ public R<Integer> jdcc(@RequestBody CommonQueryDto commonQueryDto) {
|
|
|
|
+ int count = statisticsServiceImpl.jdcc(commonQueryDto);
|
|
|
|
+ return R.ok(count);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 限改通知(份)
|
|
|
|
+ * @param commonQueryDto
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "限改通知(份)")
|
|
|
|
+ @PostMapping("/xgtz")
|
|
|
|
+ public R<Integer> xgtz(@RequestBody CommonQueryDto commonQueryDto) {
|
|
|
|
+ int count = statisticsServiceImpl.xgtz(commonQueryDto);
|
|
|
|
+ return R.ok(count);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 执法人员
|
|
|
|
+ * @param commonQueryDto
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "执法人员")
|
|
|
|
+ @PostMapping("/zfry")
|
|
|
|
+ public R<Integer> zfry(@RequestBody CommonQueryDto commonQueryDto) {
|
|
|
|
+ int count = statisticsServiceImpl.zfry(commonQueryDto);
|
|
|
|
+ return R.ok(count);
|
|
|
|
+ }
|
|
|
|
+}
|