Browse Source

物料新增销售、采购状态

wangyc 7 years ago
parent
commit
f75c0f83e1
1 changed files with 37 additions and 2 deletions
  1. 37 2
      mall-search/src/main/java/com/uas/search/model/V_Products.java

+ 37 - 2
mall-search/src/main/java/com/uas/search/model/V_Products.java

@@ -88,6 +88,22 @@ public class V_Products implements RowMapper, Serializable {
     @Column(name = "pr_b2cenabled")
     private Short b2cEnabled;
 
+    /**
+     * 是否可卖<br>
+     * 1. 可以卖 <br>
+     * 0. 不可
+     */
+    @Column(name = "pr_issale")
+    private Short isSale;
+
+    /**
+     * 是否可买<br>
+     * 1. 可以买<br>
+     * 0. 不可
+     */
+    @Column(name = "pr_ispurchase")
+    private Short isPurchase;
+
     public Long getId() {
         return id;
     }
@@ -176,6 +192,21 @@ public class V_Products implements RowMapper, Serializable {
         this.b2cEnabled = b2cEnabled;
     }
 
+    public Short getIsSale() {
+        return isSale;
+    }
+
+    public void setIsSale(Short isSale) {
+        this.isSale = isSale;
+    }
+
+    public Short getIsPurchase() {
+        return isPurchase;
+    }
+
+    public void setIsPurchase(Short isPurchase) {
+        this.isPurchase = isPurchase;
+    }
 
     @Override
     public String toString() {
@@ -188,8 +219,10 @@ public class V_Products implements RowMapper, Serializable {
                 ", pCmpCode='" + pCmpCode + '\'' +
                 ", pBrandEn='" + pBrandEn + '\'' +
                 ", pBrandCn='" + pBrandCn + '\'' +
-                ", standard=" + standard +
-                ", b2cEnabled=" + b2cEnabled +
+                ", standard=" + standard + '\'' +
+                ", b2cEnabled=" + b2cEnabled + '\'' +
+                ", isSale=" + isSale +  '\'' +
+                ", isPurchase=" + isPurchase + '\'' +
                 '}';
     }
 
@@ -207,6 +240,8 @@ public class V_Products implements RowMapper, Serializable {
         products.setpCmpCode(rs.getString("pr_pcmpcode"));
         products.setStandard(rs.getShort("pr_standard"));
         products.setTitle(rs.getString("pr_title"));
+        products.setIsSale(rs.getShort("pr_issale"));
+        products.setIsPurchase(rs.getShort("pr_ispurchase"));
         return products;
     }
 }