From 3474825ce00fe0949dcbc1baff294f52d426ccbd Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期六, 24 一月 2026 18:36:29 +0800
Subject: [PATCH] 大屏项目接口

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/DashboardStatisticsController.java |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/DashboardStatisticsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/DashboardStatisticsController.java
index 1cec76a..375954c 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/DashboardStatisticsController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/DashboardStatisticsController.java
@@ -33,7 +33,7 @@
  */
 @RestController
 @RequestMapping("/dashboard-statistics")
-@Api(tags = "数据统计面板")
+@Api(tags = "首页")
 @RequiredArgsConstructor(onConstructor_ = @Lazy)
 public class DashboardStatisticsController {
 
@@ -76,6 +76,8 @@
                     screenUserVo.setPermissionClient(param.getPermissionClient());
                     screenUserVo.setPermissionProject(param.getPermissionProject());
                     screenUserVo.setCommentType(param.getCommentType());
+                    screenUserVo.setSafetyId(param.getSafetyId());
+                    screenUserVo.setDeviceTemplateId(param.getDeviceTemplateId());
                 }
             }else if(type==2){
                 Project project = projectService.getById(id);
@@ -86,6 +88,8 @@
                 ClientParam param = clientParamService.getOne(new LambdaQueryWrapper<ClientParam>().eq(ClientParam::getClientId, client.getId()));
                 if(param!=null){
                     screenUserVo.setCommentType(param.getCommentType());
+                    screenUserVo.setSafetyId(param.getSafetyId());
+                    screenUserVo.setDeviceTemplateId(param.getDeviceTemplateId());
                 }
                 screenUserVo.setName(project.getName());
                 screenUserVo.setPermissionProject(project.getPermission());
@@ -166,6 +170,13 @@
         return R.ok(accidentBrief);
     }
 
+    @ApiOperation(value = "获取故事简讯详情分类",response = AccidentClassification.class)
+    @GetMapping("/getStoryClassify")
+    public R<List<AccidentClassification>> getStoryClassify() {
+        List<AccidentClassification> list = accidentClassificationService.list(new LambdaQueryWrapper<AccidentClassification>().eq(AccidentClassification::getDeleted, false));
+        return R.ok(list);
+    }
+
     /**
      * 获取委托方大屏首页统计数据
      *
@@ -173,7 +184,7 @@
      * @return 统计数据
      */
     @PostMapping("/index")
-    @ApiOperation("获取委托方大屏首页统计数据")
+    @ApiOperation(value = "获取委托方大屏首页统计数据",tags = {"委托方端"})
     public R<ClientDashboardVO> index(@RequestBody ClientDashboardQuery query) {
         ClientDashboardVO dashboard = clientService.getClientDashboard(query);
         return R.ok(dashboard);

--
Gitblit v1.7.1