|
|
@@ -0,0 +1,62 @@
|
|
|
+package com.ruoyi.business.controller;
|
|
|
+
|
|
|
+import com.ruoyi.business.domain.vo.ReportAllTotal;
|
|
|
+import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
+import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.apache.commons.compress.utils.Lists;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 超期情况统计信息
|
|
|
+ * 前端访问路由地址为:/business/timeLimit
|
|
|
+ *
|
|
|
+ * @author libai
|
|
|
+ * @date 2025-10-30
|
|
|
+ */
|
|
|
+@Tag(name = "超期情况统计信息")
|
|
|
+@Validated
|
|
|
+@RequiredArgsConstructor
|
|
|
+@RestController
|
|
|
+@RequestMapping("/timeLimit")
|
|
|
+public class BjTimeLimitController extends BaseController {
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取超期情况统计信息
|
|
|
+ */
|
|
|
+ @Operation(summary = "获取超期情况统计信息")
|
|
|
+// @SaCheckPermission("business:timeLimit:query")
|
|
|
+ @GetMapping("/total")
|
|
|
+ public AjaxResult getInfo() {
|
|
|
+ Map<Integer, List<ReportAllTotal>> resultMap = new HashMap<>();
|
|
|
+ List<ReportAllTotal> allList = Lists.newArrayList();
|
|
|
+ List<ReportAllTotal> outList = Lists.newArrayList();
|
|
|
+ allList.add(ReportAllTotal.builder().name("超期情况总数").number(2873).proportion(new BigDecimal("100")).build());
|
|
|
+ allList.add(ReportAllTotal.builder().name("海南海事局").number(368).proportion(new BigDecimal("24")).build());
|
|
|
+ allList.add(ReportAllTotal.builder().name("广西海事局").number(74).proportion(new BigDecimal("15")).build());
|
|
|
+ allList.add(ReportAllTotal.builder().name("广东海事局").number(307).proportion(new BigDecimal("9")).build());
|
|
|
+ allList.add(ReportAllTotal.builder().name("福建海事局").number(1346).proportion(new BigDecimal("13")).build());
|
|
|
+ allList.add(ReportAllTotal.builder().name("浙江海事局").number(1346).proportion(new BigDecimal("13")).build());
|
|
|
+ outList.add(ReportAllTotal.builder().name("行业外超期情况总数").number(2873).proportion(new BigDecimal("100")).build());
|
|
|
+ outList.add(ReportAllTotal.builder().name("地方政府").number(368).proportion(new BigDecimal("24")).build());
|
|
|
+ outList.add(ReportAllTotal.builder().name("船舶检验机构").number(74).proportion(new BigDecimal("15")).build());
|
|
|
+ outList.add(ReportAllTotal.builder().name("农业农村部门").number(307).proportion(new BigDecimal("9")).build());
|
|
|
+ outList.add(ReportAllTotal.builder().name("海警机构").number(1346).proportion(new BigDecimal("13")).build());
|
|
|
+ outList.add(ReportAllTotal.builder().name("公安机构").number(1346).proportion(new BigDecimal("13")).build());
|
|
|
+ resultMap.put(0, allList);
|
|
|
+ resultMap.put(1, outList);
|
|
|
+ return success(resultMap);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|