|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+package com.sundot.airport.web.controller.equipment;
|
|
|
2
|
+
|
|
|
3
|
+import java.util.List;
|
|
|
4
|
+
|
|
|
5
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
6
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
7
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
8
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
9
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
10
|
+import com.sundot.airport.common.core.controller.BaseController;
|
|
|
11
|
+import com.sundot.airport.common.core.domain.AjaxResult;
|
|
|
12
|
+import com.sundot.airport.equipment.domain.EquipmentLedger;
|
|
|
13
|
+import com.sundot.airport.equipment.service.IEquipmentLedgerService;
|
|
|
14
|
+
|
|
|
15
|
+/**
|
|
|
16
|
+ * 设备定/自检
|
|
|
17
|
+ *
|
|
|
18
|
+ * @author wangxx
|
|
|
19
|
+ * @date 2026-05-12
|
|
|
20
|
+ */
|
|
|
21
|
+@RestController
|
|
|
22
|
+@RequestMapping("/equipment/self")
|
|
|
23
|
+public class EquipmentSelfInspectionRecordController extends BaseController {
|
|
|
24
|
+ @Autowired
|
|
|
25
|
+ private IEquipmentLedgerService equipmentLedgerService;
|
|
|
26
|
+
|
|
|
27
|
+ /**
|
|
|
28
|
+ * 查询定/自检到期日期已过期的设备列表
|
|
|
29
|
+ */
|
|
|
30
|
+ @PreAuthorize("@ss.hasPermi('equipment:self:list')")
|
|
|
31
|
+ @GetMapping("/expired/list")
|
|
|
32
|
+ public AjaxResult getExpiredInspectionList() {
|
|
|
33
|
+ List<EquipmentLedger> list = equipmentLedgerService.selectExpiredInspectionList();
|
|
|
34
|
+ return success(list);
|
|
|
35
|
+ }
|
|
|
36
|
+
|
|
|
37
|
+ /**
|
|
|
38
|
+ * 查询一月内定/自检到期的设备列表
|
|
|
39
|
+ */
|
|
|
40
|
+ @PreAuthorize("@ss.hasPermi('equipment:self:list')")
|
|
|
41
|
+ @GetMapping("/upcoming/list")
|
|
|
42
|
+ public AjaxResult getUpcomingInspectionList() {
|
|
|
43
|
+ List<EquipmentLedger> list = equipmentLedgerService.selectUpcomingInspectionList();
|
|
|
44
|
+ return success(list);
|
|
|
45
|
+ }
|
|
|
46
|
+
|
|
|
47
|
+ /**
|
|
|
48
|
+ * 查询两周内定/自检到期的设备列表
|
|
|
49
|
+ */
|
|
|
50
|
+ @PreAuthorize("@ss.hasPermi('equipment:self:list')")
|
|
|
51
|
+ @GetMapping("/two-weeks-upcoming/list")
|
|
|
52
|
+ public AjaxResult getTwoWeeksUpcomingInspectionList() {
|
|
|
53
|
+ List<EquipmentLedger> list = equipmentLedgerService.selectTwoWeeksUpcomingInspectionList();
|
|
|
54
|
+ return success(list);
|
|
|
55
|
+ }
|
|
|
56
|
+}
|