From e41c3a2f9f64516a455819cde40f825b6a5dd9ef Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期五, 22 八月 2025 18:02:02 +0800
Subject: [PATCH] 设备管理首页

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamHomeController.java |   86 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 86 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamHomeController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamHomeController.java
new file mode 100644
index 0000000..bf90445
--- /dev/null
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamHomeController.java
@@ -0,0 +1,86 @@
+package org.jeecg.modules.eam.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.modules.eam.dto.EchartsDto;
+import org.jeecg.modules.eam.entity.EamFactorySecondMaintPlan;
+import org.jeecg.modules.eam.service.IEamEquipmentService;
+import org.jeecg.modules.eam.service.IEamFactorySecondMaintPlanService;
+import org.jeecg.modules.eam.service.IEamReportRepairService;
+import org.jeecg.modules.eam.service.IEamThirdMaintenanceOrderService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author Lyh
+ * @Description: EAM棣栭〉鎺ュ彛
+ * @date 2024/3/13 14:27
+ */
+@Slf4j
+@Api(tags = "EAM棣栭〉鎺ュ彛")
+@RestController
+@RequestMapping("/eam/home")
+public class EamHomeController {
+    @Autowired
+    private IEamEquipmentService iEamEquipmentService;
+
+    @Autowired
+    private IEamReportRepairService iEamReportRepairService;
+
+    @Autowired
+    private IEamThirdMaintenanceOrderService iEamThirdMaintenanceOrderService;
+
+    @Autowired
+    private IEamFactorySecondMaintPlanService iEamFactorySecondMaintPlanService;
+
+    /**
+     * 璁惧绠$悊棣栭〉-鎶�鏈姸鎬佷笌璁惧鎶ヤ慨鏁呴殰鎯呭喌
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "璁惧绠$悊棣栭〉-鎶�鏈姸鎬佷笌璁惧鎶ヤ慨鏁呴殰鎯呭喌", notes = "璁惧绠$悊棣栭〉-鎶�鏈姸鎬佷笌璁惧鎶ヤ慨鏁呴殰鎯呭喌")
+    @GetMapping(value = "/techornology")
+    public Result<?> techOrNology() {
+        //鎶�鏈姸鎬�
+        List<EchartsDto> echartsDtoList=iEamEquipmentService.echartsList();
+        //璁惧鎶ヤ慨鏁呴殰鎯呭喌
+        List<EchartsDto> echartsDtoList1=iEamReportRepairService.reportRepairList();
+        Map<String,Object> map=new HashMap<>();
+        map.put("jszt",echartsDtoList);
+        map.put("bxqk",echartsDtoList1);
+        return Result.ok(map);
+    }
+
+    /**
+     * 璁惧绠$悊棣栭〉-涓夌骇淇濆吇
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "璁惧绠$悊棣栭〉-涓夌骇淇濆吇", notes = "璁惧绠$悊棣栭〉-涓夌骇淇濆吇")
+    @GetMapping(value = "/maintenance")
+    public Result<?> maintenance() {
+        //涓夌骇淇濆吇
+        List<EchartsDto> echartsDtoList = iEamThirdMaintenanceOrderService.selectList();
+        return Result.ok(echartsDtoList);
+    }
+
+    /**
+     * 璁惧绠$悊棣栭〉-浜屼繚鍒楄〃
+     * @param
+     */
+    @ApiOperation(value = "璁惧绠$悊棣栭〉-浜屼繚鍒楄〃", notes = "璁惧绠$悊棣栭〉-浜屼繚鍒楄〃")
+    @GetMapping(value = "/secondmaintenance")
+    public Result<?> secondmaintenance() {
+        //浜岀骇淇濆吇
+        List<EamFactorySecondMaintPlan> echartsDtoList = iEamFactorySecondMaintPlanService.list();
+        return Result.ok(echartsDtoList);
+    }
+}

--
Gitblit v1.9.3