|
@@ -1,14 +1,15 @@
|
|
|
package com.macro.mall.tiny.modules.business.model;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
-import java.util.Date;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
-import java.io.Serializable;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
-import lombok.EqualsAndHashCode;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -19,7 +20,6 @@ import lombok.EqualsAndHashCode;
|
|
|
* @since 2021-09-07
|
|
|
*/
|
|
|
@Data
|
|
|
-@EqualsAndHashCode(callSuper = false)
|
|
|
@TableName("kr_b_tower")
|
|
|
@ApiModel(value="KrBTower对象", description="杆塔表")
|
|
|
public class KrBTower implements Serializable {
|
|
@@ -93,5 +93,17 @@ public class KrBTower implements Serializable {
|
|
|
@ApiModelProperty(value = "创建时间")
|
|
|
private Date createTime;
|
|
|
|
|
|
-
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object o) {
|
|
|
+ if (this == o) return true;
|
|
|
+ if (o == null || getClass() != o.getClass()) return false;
|
|
|
+ KrBTower krBTower = (KrBTower) o;
|
|
|
+ return Objects.equals(lineId, krBTower.lineId) &&
|
|
|
+ Objects.equals(towerName, krBTower.towerName);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ return Objects.hash(lineId, towerName);
|
|
|
+ }
|
|
|
}
|