Forráskód Böngészése

用户单据阅读状态实体类

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@10198 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
wangmh 8 éve
szülő
commit
1ecd8b462f

+ 143 - 0
src/main/java/com/uas/platform/b2b/model/UserOrders.java

@@ -0,0 +1,143 @@
+package com.uas.platform.b2b.model;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 记录客户单据的未读状态
+ *
+ * Created by wangmh on 2017/7/21.
+ */
+@Table(name = "purc$userorders")
+@Entity
+public class UserOrders implements Serializable{
+    /**
+     *
+     */
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "purc$userorders_gen")
+    @SequenceGenerator(name = "purc$userorders_gen", sequenceName = "purc$userorders_seq", allocationSize = 1)
+    @Column(name = "puo_id")
+    private Long id;
+
+    /**
+     * 客户UU号
+     */
+    @Column(name = "puo_useruu")
+    private Long userUU;
+
+    /**
+     * 客户企业UU号
+     */
+    @Column(name = "puo_enuu")
+    private Long enUU;
+
+    /**
+     * 单据id(用于查询单据属性)
+     */
+    @Column(name = "puo_sourceid")
+    private Long sourceId;
+
+    /**
+     * 单据分类(purc or sale)
+     */
+    @Column(name = "puo_category")
+    private String category;
+
+    /**
+     * 单据表名(用于区分单据)、
+     */
+    @Column(name = "puo_table")
+    private String table;
+
+    /**
+     * 阅读状态(1表示已读)
+     */
+    @Column(name = "puo_readstatus")
+    private Short readStatus;
+
+    /**
+     * 单据阅读时间(用于定期删除)
+     */
+    @Column(name = "puo_readdate")
+    private Date readDate;
+
+    public UserOrders() {
+    }
+
+    public UserOrders(Long userUU, Long enUU, Long sourceId, String category, String table) {
+        this.userUU = userUU;
+        this.enUU = enUU;
+        this.sourceId = sourceId;
+        this.category = category;
+        this.table = table;
+        this.readStatus = (short) 0;
+    }
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getUserUU() {
+        return userUU;
+    }
+
+    public void setUserUU(Long userUU) {
+        this.userUU = userUU;
+    }
+
+    public Long getEnUU() {
+        return enUU;
+    }
+
+    public void setEnUU(Long enUU) {
+        this.enUU = enUU;
+    }
+
+    public Long getSourceId() {
+        return sourceId;
+    }
+
+    public void setSourceId(Long sourceId) {
+        this.sourceId = sourceId;
+    }
+
+    public String getCategory() {
+        return category;
+    }
+
+    public void setCategory(String category) {
+        this.category = category;
+    }
+
+    public String getTable() {
+        return table;
+    }
+
+    public void setTable(String table) {
+        this.table = table;
+    }
+
+    public Short getReadStatus() {
+        return readStatus;
+    }
+
+    public void setReadStatus(Short readStatus) {
+        this.readStatus = readStatus;
+    }
+
+    public Date getReadDate() {
+        return readDate;
+    }
+
+    public void setReadDate(Date readDate) {
+        this.readDate = readDate;
+    }
+}