|
@@ -0,0 +1,128 @@
|
|
|
+package com.huimv.receiver.farm.dao.entity;
|
|
|
+
|
|
|
+import javax.persistence.*;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.sql.Timestamp;
|
|
|
+
|
|
|
+@Entity
|
|
|
+@Table(name = "prod_batch_weight")
|
|
|
+public class ProdBatchWeightEntity implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
+ @Column(name = "id", nullable = false)
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ @Column(name = "batch_code")
|
|
|
+ private String batchCode;
|
|
|
+
|
|
|
+ @Column(name = "batch_sort")
|
|
|
+ private Integer batchSort;
|
|
|
+
|
|
|
+ @Column(name = "gross_weight")
|
|
|
+ private Float grossWeight;
|
|
|
+
|
|
|
+ @Column(name = "tare_weight")
|
|
|
+ private Float tareWeight;
|
|
|
+
|
|
|
+ @Column(name = "net_weight")
|
|
|
+ private Float netWeight;
|
|
|
+
|
|
|
+ @Column(name = "trade_id")
|
|
|
+ private Integer tradeId;
|
|
|
+
|
|
|
+ @Column(name = "farm_id")
|
|
|
+ private Integer farmId;
|
|
|
+
|
|
|
+ @Column(name = "add_time")
|
|
|
+ private Timestamp addTime;
|
|
|
+
|
|
|
+ public void setId(Integer id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBatchCode(String batchCode) {
|
|
|
+ this.batchCode = batchCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBatchCode() {
|
|
|
+ return batchCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBatchSort(Integer batchSort) {
|
|
|
+ this.batchSort = batchSort;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getBatchSort() {
|
|
|
+ return batchSort;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGrossWeight(Float grossWeight) {
|
|
|
+ this.grossWeight = grossWeight;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Float getGrossWeight() {
|
|
|
+ return grossWeight;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTareWeight(Float tareWeight) {
|
|
|
+ this.tareWeight = tareWeight;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Float getTareWeight() {
|
|
|
+ return tareWeight;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNetWeight(Float netWeight) {
|
|
|
+ this.netWeight = netWeight;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Float getNetWeight() {
|
|
|
+ return netWeight;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTradeId(Integer tradeId) {
|
|
|
+ this.tradeId = tradeId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getTradeId() {
|
|
|
+ return tradeId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFarmId(Integer farmId) {
|
|
|
+ this.farmId = farmId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getFarmId() {
|
|
|
+ return farmId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAddTime(Timestamp addTime) {
|
|
|
+ this.addTime = addTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Timestamp getAddTime() {
|
|
|
+ return addTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "ProdBatchWeightEntity{" +
|
|
|
+ "id=" + id + '\'' +
|
|
|
+ "batchCode=" + batchCode + '\'' +
|
|
|
+ "batchSort=" + batchSort + '\'' +
|
|
|
+ "grossWeight=" + grossWeight + '\'' +
|
|
|
+ "tareWeight=" + tareWeight + '\'' +
|
|
|
+ "netWeight=" + netWeight + '\'' +
|
|
|
+ "tradeId=" + tradeId + '\'' +
|
|
|
+ "farmId=" + farmId + '\'' +
|
|
|
+ "addTime=" + addTime + '\'' +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
+}
|