From d175d9c401fb97ebe6a580005a8c9ad5fedccb6b Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期一, 29 七月 2024 17:02:41 +0800
Subject: [PATCH] add other method
---
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java | 144 +++++++++++++----------------------------------
1 files changed, 40 insertions(+), 104 deletions(-)
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java
index 0464d0d..c1432d7 100644
--- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java
@@ -1,118 +1,54 @@
package com.dy.pmsGlobal.pojoSta;
-import java.io.Serializable;
+import com.alibaba.fastjson2.annotation.JSONField;
+import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.dy.common.po.BaseEntity;
+import lombok.*;
+
import java.util.Date;
-import lombok.Data;
/**
- *
- * @TableName sta_repair_info
- */
+*
+* @TableName sta_repair_info
+*/
+@TableName(value="sta_repair_info", autoResultMap = true)
@Data
-public class StaRepairInfo implements Serializable {
+@Builder
+@ToString
+@NoArgsConstructor
+@AllArgsConstructor
+public class StaRepairInfo implements BaseEntity {
+
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long id;
/**
- *
- */
- private Long id;
-
+ * 璁惧鐮�
+ */
+ public String deviceNo;
/**
- * 璁惧鐮�
- */
- private String equipNo;
-
+ * 鐢熶骇鐧诲綍id
+ */
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long workId;
/**
- * 浠庡摢涓妭鐐硅繘鍏ョ淮淇�
- */
- private String fromNode;
-
+ * 浠庡摢涓妭鐐硅繘鍏ョ淮淇�
+ */
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long fromNode;
/**
- * 缁翠慨鍘熷洜
- */
- private String repairReason;
-
+ * 缁翠慨鍘熷洜
+ */
+ public String repairReason;
/**
- * 鍘诲悜鑺傜偣
- */
- private String toNode;
-
+ * 缁翠慨鍛樺伐
+ */
+ @JSONField(serializeUsing= ObjectWriterImplToString.class)
+ public Long repairBy;
/**
- * 缁翠慨鍛樺伐
- */
- private String repairBy;
+ * 缁翠慨鏃堕棿
+ */
+ public Date repairTime;
- /**
- * 缁翠慨鏃堕棿
- */
- private Date repairTime;
- /**
- * 鍒涘缓鏃堕棿
- */
- private Date createTime;
-
- /**
- * 鎺ㄩ�佸憳宸�
- */
- private Long createBy;
-
- private static final long serialVersionUID = 1L;
-
- @Override
- public boolean equals(Object that) {
- if (this == that) {
- return true;
- }
- if (that == null) {
- return false;
- }
- if (getClass() != that.getClass()) {
- return false;
- }
- StaRepairInfo other = (StaRepairInfo) that;
- return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
- && (this.getEquipNo() == null ? other.getEquipNo() == null : this.getEquipNo().equals(other.getEquipNo()))
- && (this.getFromNode() == null ? other.getFromNode() == null : this.getFromNode().equals(other.getFromNode()))
- && (this.getRepairReason() == null ? other.getRepairReason() == null : this.getRepairReason().equals(other.getRepairReason()))
- && (this.getToNode() == null ? other.getToNode() == null : this.getToNode().equals(other.getToNode()))
- && (this.getRepairBy() == null ? other.getRepairBy() == null : this.getRepairBy().equals(other.getRepairBy()))
- && (this.getRepairTime() == null ? other.getRepairTime() == null : this.getRepairTime().equals(other.getRepairTime()))
- && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
- && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()));
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
- result = prime * result + ((getEquipNo() == null) ? 0 : getEquipNo().hashCode());
- result = prime * result + ((getFromNode() == null) ? 0 : getFromNode().hashCode());
- result = prime * result + ((getRepairReason() == null) ? 0 : getRepairReason().hashCode());
- result = prime * result + ((getToNode() == null) ? 0 : getToNode().hashCode());
- result = prime * result + ((getRepairBy() == null) ? 0 : getRepairBy().hashCode());
- result = prime * result + ((getRepairTime() == null) ? 0 : getRepairTime().hashCode());
- result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
- result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
- return result;
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append(getClass().getSimpleName());
- sb.append(" [");
- sb.append("Hash = ").append(hashCode());
- sb.append(", id=").append(id);
- sb.append(", equipNo=").append(equipNo);
- sb.append(", fromNode=").append(fromNode);
- sb.append(", repairReason=").append(repairReason);
- sb.append(", toNode=").append(toNode);
- sb.append(", repairBy=").append(repairBy);
- sb.append(", repairTime=").append(repairTime);
- sb.append(", createTime=").append(createTime);
- sb.append(", createBy=").append(createBy);
- sb.append(", serialVersionUID=").append(serialVersionUID);
- sb.append("]");
- return sb.toString();
- }
-}
\ No newline at end of file
+}
--
Gitblit v1.8.0