From e237862aa7204822a89340fc28e8613f993bb9ce Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期一, 27 七月 2026 15:35:43 +0800
Subject: [PATCH] fix: 代码格式化,安全生产数据倒序
---
src/main/java/com/ruoyi/safe/specialequipment/pojo/SpecialEquipmentLedger.java | 142 +++++++++++++++++++++++++++++++++++------------
1 files changed, 106 insertions(+), 36 deletions(-)
diff --git a/src/main/java/com/ruoyi/safe/specialequipment/pojo/SpecialEquipmentLedger.java b/src/main/java/com/ruoyi/safe/specialequipment/pojo/SpecialEquipmentLedger.java
index 2d079b6..1a8a016 100644
--- a/src/main/java/com/ruoyi/safe/specialequipment/pojo/SpecialEquipmentLedger.java
+++ b/src/main/java/com/ruoyi/safe/specialequipment/pojo/SpecialEquipmentLedger.java
@@ -1,50 +1,120 @@
package com.ruoyi.safe.specialequipment.pojo;
+
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serial;
+import java.io.Serializable;
import java.time.*;
+
@Data
@Schema(description = "鐗圭璁惧鐢靛瓙鍙拌处")
@TableName("special_equipment_ledger")
-public class SpecialEquipmentLedger {
+public class SpecialEquipmentLedger implements Serializable {
+ @Serial
private static final long serialVersionUID = 1L;
- @TableId(type = IdType.AUTO) private Long id;
- @Excel(name = "璁惧缂栧彿") private String equipmentNo;
- @Excel(name = "璁惧鍚嶇О") private String equipmentName;
- @Excel(name = "璁惧绫诲埆") private String equipmentType;
- @Excel(name = "瑙勬牸鍨嬪彿") private String modelSpec;
- @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "鍒堕�犳棩鏈�", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate manufactureDate;
- @Excel(name = "瀹夎浣嶇疆") private String installLocation;
- @Excel(name = "浣跨敤鍗曚綅") private String useUnit;
- @Excel(name = "鐧昏璇佸彿") private String certificateNo;
- @Excel(name = "妫�楠屽懆鏈�(澶�)") private Integer inspectionCycleDays;
- @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "涓嬫妫�楠屾棩鏈�", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate nextInspectionDate;
- @Excel(name = "缁翠繚鍛ㄦ湡(澶�)") private Integer maintenanceCycleDays;
- @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "涓嬫缁翠繚鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate nextMaintenanceDate;
- @Excel(name = "棰勮鎻愬墠澶╂暟") private Integer alarmDays;
+ @TableId(type = IdType.AUTO)
+ private Long id;
+
+ @Excel(name = "璁惧缂栧彿")
+ private String equipmentNo;
+
+ @Excel(name = "璁惧鍚嶇О")
+ private String equipmentName;
+
+ @Excel(name = "璁惧绫诲埆")
+ private String equipmentType;
+
+ @Excel(name = "瑙勬牸鍨嬪彿")
+ private String modelSpec;
+
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "鍒堕�犳棩鏈�", width = 30, dateFormat = "yyyy-MM-dd")
+ private LocalDate manufactureDate;
+
+ @Excel(name = "瀹夎浣嶇疆")
+ private String installLocation;
+
+ @Excel(name = "浣跨敤鍗曚綅")
+ private String useUnit;
+
+ @Excel(name = "鐧昏璇佸彿")
+ private String certificateNo;
+
+ @Excel(name = "妫�楠屽懆鏈�(澶�)")
+ private Integer inspectionCycleDays;
+
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "涓嬫妫�楠屾棩鏈�", width = 30, dateFormat = "yyyy-MM-dd")
+ private LocalDate nextInspectionDate;
+
+ @Excel(name = "缁翠繚鍛ㄦ湡(澶�)")
+ private Integer maintenanceCycleDays;
+
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "涓嬫缁翠繚鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+ private LocalDate nextMaintenanceDate;
+
+ @Excel(name = "棰勮鎻愬墠澶╂暟")
+ private Integer alarmDays;
+
private Long managerId;
- @Excel(name = "璐熻矗浜�") private String managerName;
- @Excel(name = "瀹夊叏鍛�") private String safetyOfficer;
- @Excel(name = "椋庨櫓绛夌骇") private String riskLevel;
- @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "鏈�鏂版楠屾棩鏈�", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate latestInspectionDate;
- @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "鏈�鏂扮淮淇濇棩鏈�", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate latestMaintenanceDate;
- @Excel(name = "闅愭偅鐘舵��", readConverterExp = "0=鏃犻殣鎮�,1=寰呮暣鏀�,2=鏁存敼涓�,3=宸查棴鐜�") private Integer hazardStatus;
- @Excel(name = "闅愭偅鎻忚堪") private String hazardDescription;
- @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "鏁存敼鎴鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd") private LocalDate rectificationDeadline;
- @Excel(name = "澶囨敞") private String remarks;
- @TableField(fill = FieldFill.INSERT) private Long createUser;
- @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime;
- @TableField(fill = FieldFill.UPDATE) private Long updateUser;
- @TableField(fill = FieldFill.UPDATE) private LocalDateTime updateTime;
- @TableField(fill = FieldFill.INSERT) private Long tenantId;
- @TableField(fill = FieldFill.INSERT) private Long deptId;
+
+ @Excel(name = "璐熻矗浜�")
+ private String managerName;
+
+ @Excel(name = "瀹夊叏鍛�")
+ private String safetyOfficer;
+
+ @Excel(name = "椋庨櫓绛夌骇")
+ private String riskLevel;
+
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "鏈�鏂版楠屾棩鏈�", width = 30, dateFormat = "yyyy-MM-dd")
+ private LocalDate latestInspectionDate;
+
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "鏈�鏂扮淮淇濇棩鏈�", width = 30, dateFormat = "yyyy-MM-dd")
+ private LocalDate latestMaintenanceDate;
+
+ @Excel(name = "闅愭偅鐘舵��", readConverterExp = "0=鏃犻殣鎮�,1=寰呮暣鏀�,2=鏁存敼涓�,3=宸查棴鐜�")
+ private Integer hazardStatus;
+
+ @Excel(name = "闅愭偅鎻忚堪")
+ private String hazardDescription;
+
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "鏁存敼鎴鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+ private LocalDate rectificationDeadline;
+
+ @Excel(name = "澶囨敞")
+ private String remarks;
+
+ @TableField(fill = FieldFill.INSERT)
+ private Long createUser;
+
+ @TableField(fill = FieldFill.INSERT)
+ private LocalDateTime createTime;
+
+ @TableField(fill = FieldFill.UPDATE)
+ private Long updateUser;
+
+ @TableField(fill = FieldFill.UPDATE)
+ private LocalDateTime updateTime;
+
+ @TableField(fill = FieldFill.INSERT)
+ private Long tenantId;
+
+ @TableField(fill = FieldFill.INSERT)
+ private Long deptId;
}
--
Gitblit v1.9.3