Commit 8dea74fc by yinyong

数据中心--skums资料库新增sku产品类型

parent 8034a2b9
......@@ -436,4 +436,8 @@ public class SkuInfo {
public String categorySimpleName;
public String brand;
private Integer productType;
private String productTypeDesc;
}
......@@ -638,6 +638,24 @@ public class DcBaseSku {
private String brand;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_sku.product_type
*
* @mbg.generated
*/
private Integer productType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_sku.product_type_desc
*
* @mbg.generated
*/
private String productTypeDesc;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_sku
*
......@@ -719,6 +737,8 @@ public class DcBaseSku {
sb.append(", categorySimpleId=").append(categorySimpleId);
sb.append(", categorySimpleName=").append(categorySimpleName);
sb.append(", brand=").append(brand);
sb.append(", productType=").append(productType);
sb.append(", productTypeDesc=").append(productTypeDesc);
sb.append("]");
return sb.toString();
}
......@@ -810,7 +830,9 @@ public class DcBaseSku {
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getCategorySimpleId() == null ? other.getCategorySimpleId() == null : this.getCategorySimpleId().equals(other.getCategorySimpleId()))
&& (this.getCategorySimpleName() == null ? other.getCategorySimpleName() == null : this.getCategorySimpleName().equals(other.getCategorySimpleName()))
&& (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand()));
&& (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand()))
&& (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType()))
&& (this.getProductTypeDesc() == null ? other.getProductTypeDesc() == null : this.getProductTypeDesc().equals(other.getProductTypeDesc()));
}
/**
......@@ -893,6 +915,8 @@ public class DcBaseSku {
result = prime * result + ((getCategorySimpleId() == null) ? 0 : getCategorySimpleId().hashCode());
result = prime * result + ((getCategorySimpleName() == null) ? 0 : getCategorySimpleName().hashCode());
result = prime * result + ((getBrand() == null) ? 0 : getBrand().hashCode());
result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode());
result = prime * result + ((getProductTypeDesc() == null) ? 0 : getProductTypeDesc().hashCode());
return result;
}
}
\ No newline at end of file
......@@ -4910,6 +4910,136 @@ public class DcBaseSkuExample {
addCriterion("brand not between", value1, value2, "brand");
return (Criteria) this;
}
public Criteria andProductTypeIsNull() {
addCriterion("product_type is null");
return (Criteria) this;
}
public Criteria andProductTypeIsNotNull() {
addCriterion("product_type is not null");
return (Criteria) this;
}
public Criteria andProductTypeEqualTo(Integer value) {
addCriterion("product_type =", value, "productType");
return (Criteria) this;
}
public Criteria andProductTypeNotEqualTo(Integer value) {
addCriterion("product_type <>", value, "productType");
return (Criteria) this;
}
public Criteria andProductTypeGreaterThan(Integer value) {
addCriterion("product_type >", value, "productType");
return (Criteria) this;
}
public Criteria andProductTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("product_type >=", value, "productType");
return (Criteria) this;
}
public Criteria andProductTypeLessThan(Integer value) {
addCriterion("product_type <", value, "productType");
return (Criteria) this;
}
public Criteria andProductTypeLessThanOrEqualTo(Integer value) {
addCriterion("product_type <=", value, "productType");
return (Criteria) this;
}
public Criteria andProductTypeIn(List<Integer> values) {
addCriterion("product_type in", values, "productType");
return (Criteria) this;
}
public Criteria andProductTypeNotIn(List<Integer> values) {
addCriterion("product_type not in", values, "productType");
return (Criteria) this;
}
public Criteria andProductTypeBetween(Integer value1, Integer value2) {
addCriterion("product_type between", value1, value2, "productType");
return (Criteria) this;
}
public Criteria andProductTypeNotBetween(Integer value1, Integer value2) {
addCriterion("product_type not between", value1, value2, "productType");
return (Criteria) this;
}
public Criteria andProductTypeDescIsNull() {
addCriterion("product_type_desc is null");
return (Criteria) this;
}
public Criteria andProductTypeDescIsNotNull() {
addCriterion("product_type_desc is not null");
return (Criteria) this;
}
public Criteria andProductTypeDescEqualTo(String value) {
addCriterion("product_type_desc =", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescNotEqualTo(String value) {
addCriterion("product_type_desc <>", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescGreaterThan(String value) {
addCriterion("product_type_desc >", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescGreaterThanOrEqualTo(String value) {
addCriterion("product_type_desc >=", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescLessThan(String value) {
addCriterion("product_type_desc <", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescLessThanOrEqualTo(String value) {
addCriterion("product_type_desc <=", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescLike(String value) {
addCriterion("product_type_desc like", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescNotLike(String value) {
addCriterion("product_type_desc not like", value, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescIn(List<String> values) {
addCriterion("product_type_desc in", values, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescNotIn(List<String> values) {
addCriterion("product_type_desc not in", values, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescBetween(String value1, String value2) {
addCriterion("product_type_desc between", value1, value2, "productTypeDesc");
return (Criteria) this;
}
public Criteria andProductTypeDescNotBetween(String value1, String value2) {
addCriterion("product_type_desc not between", value1, value2, "productTypeDesc");
return (Criteria) this;
}
}
/**
......
......@@ -76,6 +76,8 @@
<result column="category_simple_id" jdbcType="INTEGER" property="categorySimpleId" />
<result column="category_simple_name" jdbcType="VARCHAR" property="categorySimpleName" />
<result column="brand" jdbcType="VARCHAR" property="brand" />
<result column="product_type" jdbcType="INTEGER" property="productType" />
<result column="product_type_desc" jdbcType="VARCHAR" property="productTypeDesc" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -158,7 +160,7 @@
declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
packing_price, packing_name, packing_size, product_size, packing_weight, unit, push_status,
transfer_delivery, source, push_time, has_delete, develop_time, company_id, category_simple_id,
category_simple_name, brand
category_simple_name, brand, product_type, product_type_desc
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap">
<!--
......@@ -242,7 +244,8 @@
push_status, transfer_delivery, source,
push_time, has_delete, develop_time,
company_id, category_simple_id, category_simple_name,
brand)
brand, product_type, product_type_desc
)
values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
#{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL},
......@@ -266,7 +269,8 @@
#{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER}, #{categorySimpleId,jdbcType=INTEGER}, #{categorySimpleName,jdbcType=VARCHAR},
#{brand,jdbcType=VARCHAR})
#{brand,jdbcType=VARCHAR}, #{productType,jdbcType=INTEGER}, #{productTypeDesc,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
<!--
......@@ -485,6 +489,12 @@
<if test="brand != null">
brand,
</if>
<if test="productType != null">
product_type,
</if>
<if test="productTypeDesc != null">
product_type_desc,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -697,6 +707,12 @@
<if test="brand != null">
#{brand,jdbcType=VARCHAR},
</if>
<if test="productType != null">
#{productType,jdbcType=INTEGER},
</if>
<if test="productTypeDesc != null">
#{productTypeDesc,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultType="java.lang.Long">
......@@ -926,6 +942,12 @@
<if test="record.brand != null">
brand = #{record.brand,jdbcType=VARCHAR},
</if>
<if test="record.productType != null">
product_type = #{record.productType,jdbcType=INTEGER},
</if>
<if test="record.productTypeDesc != null">
product_type_desc = #{record.productTypeDesc,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -1006,7 +1028,9 @@
company_id = #{record.companyId,jdbcType=INTEGER},
category_simple_id = #{record.categorySimpleId,jdbcType=INTEGER},
category_simple_name = #{record.categorySimpleName,jdbcType=VARCHAR},
brand = #{record.brand,jdbcType=VARCHAR}
brand = #{record.brand,jdbcType=VARCHAR},
product_type = #{record.productType,jdbcType=INTEGER},
product_type_desc = #{record.productTypeDesc,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -1225,6 +1249,12 @@
<if test="brand != null">
brand = #{brand,jdbcType=VARCHAR},
</if>
<if test="productType != null">
product_type = #{productType,jdbcType=INTEGER},
</if>
<if test="productTypeDesc != null">
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -1302,7 +1332,9 @@
company_id = #{companyId,jdbcType=INTEGER},
category_simple_id = #{categorySimpleId,jdbcType=INTEGER},
category_simple_name = #{categorySimpleName,jdbcType=VARCHAR},
brand = #{brand,jdbcType=VARCHAR}
brand = #{brand,jdbcType=VARCHAR},
product_type = #{productType,jdbcType=INTEGER},
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseSku">
......@@ -1523,6 +1555,12 @@
<if test="brand != null">
brand,
</if>
<if test="productType != null">
product_type,
</if>
<if test="productTypeDesc != null">
product_type_desc,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -1736,6 +1774,12 @@
<if test="brand != null">
#{brand,jdbcType=VARCHAR},
</if>
<if test="productType != null">
#{productType,jdbcType=INTEGER},
</if>
<if test="productTypeDesc != null">
#{productTypeDesc,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -1949,6 +1993,12 @@
<if test="brand != null">
brand = #{brand,jdbcType=VARCHAR},
</if>
<if test="productType != null">
product_type = #{productType,jdbcType=INTEGER},
</if>
<if test="productTypeDesc != null">
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseSku">
......@@ -1968,7 +2018,8 @@
declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
packing_price, packing_name, packing_size, product_size, packing_weight, unit,
push_status, transfer_delivery, source, push_time, has_delete, develop_time, company_id,
category_simple_id, category_simple_name, brand)
category_simple_id, category_simple_name, brand, product_type, product_type_desc
)
values
(#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
......@@ -1993,7 +2044,8 @@
#{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER}, #{categorySimpleId,jdbcType=INTEGER}, #{categorySimpleName,jdbcType=VARCHAR},
#{brand,jdbcType=VARCHAR})
#{brand,jdbcType=VARCHAR}, #{productType,jdbcType=INTEGER}, #{productTypeDesc,jdbcType=VARCHAR}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
......@@ -2064,7 +2116,9 @@
company_id = #{companyId,jdbcType=INTEGER},
category_simple_id = #{categorySimpleId,jdbcType=INTEGER},
category_simple_name = #{categorySimpleName,jdbcType=VARCHAR},
brand = #{brand,jdbcType=VARCHAR}
brand = #{brand,jdbcType=VARCHAR},
product_type = #{productType,jdbcType=INTEGER},
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseSkuExample" resultMap="BaseResultMap">
<!--
......
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