Commit 57a0f095 authored by dahai's avatar dahai

登记妥投失败信息:“查询登记妥投失败信息”的删除,仓库确认后 妥投失败信息不能删除。删除操作不能直接删除,在提示框中二次确认删除操作

parent acba13e7
package com.yxproject.start.entity; package com.yxproject.start.entity;
import javax.persistence.*; import javax.persistence.*;
import java.sql.Time; import java.util.Date;
import java.util.Objects; import java.util.Objects;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
* 2019/4/17 9:42 * 2019/6/26 10:19
*/ */
@Entity @Entity
@Table(name = "DELIVERED_FAILED_INFO", schema = "YINGXIN", catalog = "") @Table(name = "DELIVERED_FAILED_INFO", schema = "YINGXIN", catalog = "")
public class DeliveredFailedInfoEntity { public class DeliveredFailedInfoEntity {
private long id; private long id;
private String waybillNumber; private String waybillNumber;
private Time backDate; private Date backDate;
private long backReason; private long backReason;
private String note; private String note;
private String registerName; private String registerName;
private String cardId; private String cardId;
private Date receiveDate;
private String receiveName;
@Id @Id
@Column(name = "ID") @Column(name = "ID")
...@@ -41,11 +43,11 @@ public class DeliveredFailedInfoEntity { ...@@ -41,11 +43,11 @@ public class DeliveredFailedInfoEntity {
@Basic @Basic
@Column(name = "BACK_DATE") @Column(name = "BACK_DATE")
public Time getBackDate() { public Date getBackDate() {
return backDate; return backDate;
} }
public void setBackDate(Time backDate) { public void setBackDate(Date backDate) {
this.backDate = backDate; this.backDate = backDate;
} }
...@@ -69,15 +71,6 @@ public class DeliveredFailedInfoEntity { ...@@ -69,15 +71,6 @@ public class DeliveredFailedInfoEntity {
this.registerName = registerName; this.registerName = registerName;
} }
@Basic
@Column(name = "BACK_REASON")
public long getBackReason() {
return backReason;
}
public void setBackReason(long backReason) {
this.backReason = backReason;
}
@Basic @Basic
@Column(name = "CARD_ID") @Column(name = "CARD_ID")
public String getCardId() { public String getCardId() {
...@@ -88,6 +81,35 @@ public class DeliveredFailedInfoEntity { ...@@ -88,6 +81,35 @@ public class DeliveredFailedInfoEntity {
this.cardId = cardId; this.cardId = cardId;
} }
@Basic
@Column(name = "RECEIVE_DATE")
public Date getReceiveDate() {
return receiveDate;
}
public void setReceiveDate(Date receiveDate) {
this.receiveDate = receiveDate;
}
@Basic
@Column(name = "RECEIVE_NAME")
public String getReceiveName() {
return receiveName;
}
public void setReceiveName(String receiveName) {
this.receiveName = receiveName;
}
@Basic
@Column(name = "BACK_REASON")
public long getBackReason() {
return backReason;
}
public void setBackReason(long backReason) {
this.backReason = backReason;
}
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) return true; if (this == o) return true;
...@@ -97,13 +119,15 @@ public class DeliveredFailedInfoEntity { ...@@ -97,13 +119,15 @@ public class DeliveredFailedInfoEntity {
Objects.equals(waybillNumber, that.waybillNumber) && Objects.equals(waybillNumber, that.waybillNumber) &&
Objects.equals(backDate, that.backDate) && Objects.equals(backDate, that.backDate) &&
Objects.equals(note, that.note) && Objects.equals(note, that.note) &&
Objects.equals(backReason, that.backReason) && Objects.equals(registerName, that.registerName) &&
Objects.equals(cardId, that.cardId) && Objects.equals(cardId, that.cardId) &&
Objects.equals(registerName, that.registerName); Objects.equals(receiveDate, that.receiveDate) &&
Objects.equals(backReason, that.backReason) &&
Objects.equals(receiveName, that.receiveName);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(id, cardId,backReason,waybillNumber, backDate, note, registerName); return Objects.hash(id, waybillNumber, backDate, backReason,note, registerName, cardId, receiveDate, receiveName);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment