|
@@ -40,12 +40,24 @@ public class V_Products implements RowMapper, Serializable {
|
|
|
@Column(name = "pr_title")
|
|
@Column(name = "pr_title")
|
|
|
private String title;
|
|
private String title;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 规格
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "pr_spec")
|
|
|
|
|
+ private String spec;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 型号
|
|
* 型号
|
|
|
*/
|
|
*/
|
|
|
@Column(name = "pr_cmpcode")
|
|
@Column(name = "pr_cmpcode")
|
|
|
private String cmpCode;
|
|
private String cmpCode;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 产品编号
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "pr_code")
|
|
|
|
|
+ private String code;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 品牌
|
|
* 品牌
|
|
|
*/
|
|
*/
|
|
@@ -88,6 +100,22 @@ public class V_Products implements RowMapper, Serializable {
|
|
|
@Column(name = "pr_b2cenabled")
|
|
@Column(name = "pr_b2cenabled")
|
|
|
private Short 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() {
|
|
public Long getId() {
|
|
|
return id;
|
|
return id;
|
|
|
}
|
|
}
|
|
@@ -112,6 +140,14 @@ public class V_Products implements RowMapper, Serializable {
|
|
|
this.title = title;
|
|
this.title = title;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public String getSpec() {
|
|
|
|
|
+ return spec;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setSpec(String spec) {
|
|
|
|
|
+ this.spec = spec;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public String getCmpCode() {
|
|
public String getCmpCode() {
|
|
|
return cmpCode;
|
|
return cmpCode;
|
|
|
}
|
|
}
|
|
@@ -120,6 +156,14 @@ public class V_Products implements RowMapper, Serializable {
|
|
|
this.cmpCode = cmpCode;
|
|
this.cmpCode = cmpCode;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public String getCode() {
|
|
|
|
|
+ return code;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setCode(String code) {
|
|
|
|
|
+ this.code = code;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public String getBrand() {
|
|
public String getBrand() {
|
|
|
return brand;
|
|
return brand;
|
|
|
}
|
|
}
|
|
@@ -176,20 +220,39 @@ public class V_Products implements RowMapper, Serializable {
|
|
|
this.b2cEnabled = b2cEnabled;
|
|
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
|
|
@Override
|
|
|
public String toString() {
|
|
public String toString() {
|
|
|
return "V_Products{" +
|
|
return "V_Products{" +
|
|
|
"id=" + id +
|
|
"id=" + id +
|
|
|
", title='" + title + '\'' +
|
|
", title='" + title + '\'' +
|
|
|
|
|
+ ", code='" + code + '\'' +
|
|
|
", cmpCode='" + cmpCode + '\'' +
|
|
", cmpCode='" + cmpCode + '\'' +
|
|
|
", brand='" + brand + '\'' +
|
|
", brand='" + brand + '\'' +
|
|
|
", kind='" + kind + '\'' +
|
|
", kind='" + kind + '\'' +
|
|
|
|
|
+ ", spec='" + spec + '\'' +
|
|
|
", pCmpCode='" + pCmpCode + '\'' +
|
|
", pCmpCode='" + pCmpCode + '\'' +
|
|
|
", pBrandEn='" + pBrandEn + '\'' +
|
|
", pBrandEn='" + pBrandEn + '\'' +
|
|
|
", pBrandCn='" + pBrandCn + '\'' +
|
|
", pBrandCn='" + pBrandCn + '\'' +
|
|
|
- ", standard=" + standard +
|
|
|
|
|
- ", b2cEnabled=" + b2cEnabled +
|
|
|
|
|
|
|
+ ", standard=" + standard + '\'' +
|
|
|
|
|
+ ", b2cEnabled=" + b2cEnabled + '\'' +
|
|
|
|
|
+ ", isSale=" + isSale + '\'' +
|
|
|
|
|
+ ", isPurchase=" + isPurchase + '\'' +
|
|
|
'}';
|
|
'}';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -199,14 +262,18 @@ public class V_Products implements RowMapper, Serializable {
|
|
|
products.setId(rs.getLong("pr_id"));
|
|
products.setId(rs.getLong("pr_id"));
|
|
|
products.setB2cEnabled(rs.getShort("pr_b2cenabled"));
|
|
products.setB2cEnabled(rs.getShort("pr_b2cenabled"));
|
|
|
products.setBrand(rs.getString("pr_brand"));
|
|
products.setBrand(rs.getString("pr_brand"));
|
|
|
|
|
+ products.setCode(rs.getString("pr_code"));
|
|
|
products.setCmpCode(rs.getString("pr_cmpcode"));
|
|
products.setCmpCode(rs.getString("pr_cmpcode"));
|
|
|
products.setEnUU(rs.getLong("pr_enuu"));
|
|
products.setEnUU(rs.getLong("pr_enuu"));
|
|
|
products.setKind(rs.getString("pr_kind"));
|
|
products.setKind(rs.getString("pr_kind"));
|
|
|
|
|
+ products.setSpec(rs.getString("pr_spec"));
|
|
|
products.setpBrandEn(rs.getString("pr_pbranden"));
|
|
products.setpBrandEn(rs.getString("pr_pbranden"));
|
|
|
products.setpBrandCn(rs.getString("pr_pbrand"));
|
|
products.setpBrandCn(rs.getString("pr_pbrand"));
|
|
|
products.setpCmpCode(rs.getString("pr_pcmpcode"));
|
|
products.setpCmpCode(rs.getString("pr_pcmpcode"));
|
|
|
products.setStandard(rs.getShort("pr_standard"));
|
|
products.setStandard(rs.getShort("pr_standard"));
|
|
|
products.setTitle(rs.getString("pr_title"));
|
|
products.setTitle(rs.getString("pr_title"));
|
|
|
|
|
+ products.setIsSale(rs.getShort("pr_issale"));
|
|
|
|
|
+ products.setIsPurchase(rs.getShort("pr_ispurchase"));
|
|
|
return products;
|
|
return products;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|