Commit 8dea74fc by yinyong

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

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