|
@@ -10,6 +10,7 @@
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="pic" jdbcType="VARCHAR" property="pic" />
|
|
<result column="pic" jdbcType="VARCHAR" property="pic" />
|
|
<result column="product_sn" jdbcType="VARCHAR" property="productSn" />
|
|
<result column="product_sn" jdbcType="VARCHAR" property="productSn" />
|
|
|
|
+ <result column="product_type" jdbcType="VARCHAR" property="productType" />
|
|
<result column="delete_status" jdbcType="INTEGER" property="deleteStatus" />
|
|
<result column="delete_status" jdbcType="INTEGER" property="deleteStatus" />
|
|
<result column="publish_status" jdbcType="INTEGER" property="publishStatus" />
|
|
<result column="publish_status" jdbcType="INTEGER" property="publishStatus" />
|
|
<result column="new_status" jdbcType="INTEGER" property="newStatus" />
|
|
<result column="new_status" jdbcType="INTEGER" property="newStatus" />
|
|
@@ -108,7 +109,7 @@
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
id, brand_id, product_category_id, feight_template_id, product_attribute_category_id,
|
|
id, brand_id, product_category_id, feight_template_id, product_attribute_category_id,
|
|
- name, pic, product_sn, delete_status, publish_status, new_status, recommand_status,
|
|
|
|
|
|
+ name, pic, product_sn, product_type, delete_status, publish_status, new_status, recommand_status,
|
|
verify_status, sort, sale, price, promotion_price, gift_growth, gift_point, use_point_limit,
|
|
verify_status, sort, sale, price, promotion_price, gift_growth, gift_point, use_point_limit,
|
|
sub_title, original_price, stock, low_stock, unit, weight, preview_status, service_ids,
|
|
sub_title, original_price, stock, low_stock, unit, weight, preview_status, service_ids,
|
|
keywords, note, album_pics, detail_title, promotion_start_time, promotion_end_time,
|
|
keywords, note, album_pics, detail_title, promotion_start_time, promotion_end_time,
|
|
@@ -171,7 +172,7 @@
|
|
</selectKey>
|
|
</selectKey>
|
|
insert into pms_product (brand_id, product_category_id, feight_template_id,
|
|
insert into pms_product (brand_id, product_category_id, feight_template_id,
|
|
product_attribute_category_id, name, pic,
|
|
product_attribute_category_id, name, pic,
|
|
- product_sn, delete_status, publish_status,
|
|
|
|
|
|
+ product_sn, product_type, delete_status, publish_status,
|
|
new_status, recommand_status, verify_status,
|
|
new_status, recommand_status, verify_status,
|
|
sort, sale, price,
|
|
sort, sale, price,
|
|
promotion_price, gift_growth, gift_point,
|
|
promotion_price, gift_growth, gift_point,
|
|
@@ -185,7 +186,7 @@
|
|
detail_html, detail_mobile_html,lock_stock)
|
|
detail_html, detail_mobile_html,lock_stock)
|
|
values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT},
|
|
values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT},
|
|
#{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
|
|
#{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
|
|
- #{productSn,jdbcType=VARCHAR}, #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER},
|
|
|
|
|
|
+ #{productSn,jdbcType=VARCHAR}, #{productType,jdbcType=VARCHAR}, #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER},
|
|
#{newStatus,jdbcType=INTEGER}, #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER},
|
|
#{newStatus,jdbcType=INTEGER}, #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER},
|
|
#{sort,jdbcType=INTEGER}, #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL},
|
|
#{sort,jdbcType=INTEGER}, #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL},
|
|
#{promotionPrice,jdbcType=DECIMAL}, #{giftGrowth,jdbcType=INTEGER}, #{giftPoint,jdbcType=INTEGER},
|
|
#{promotionPrice,jdbcType=DECIMAL}, #{giftGrowth,jdbcType=INTEGER}, #{giftPoint,jdbcType=INTEGER},
|
|
@@ -225,6 +226,9 @@
|
|
<if test="productSn != null">
|
|
<if test="productSn != null">
|
|
product_sn,
|
|
product_sn,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="productType != null">
|
|
|
|
+ product_type,
|
|
|
|
+ </if>
|
|
<if test="deleteStatus != null">
|
|
<if test="deleteStatus != null">
|
|
delete_status,
|
|
delete_status,
|
|
</if>
|
|
</if>
|
|
@@ -354,6 +358,9 @@
|
|
<if test="productSn != null">
|
|
<if test="productSn != null">
|
|
#{productSn,jdbcType=VARCHAR},
|
|
#{productSn,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="productType != null">
|
|
|
|
+ #{productType,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="deleteStatus != null">
|
|
<if test="deleteStatus != null">
|
|
#{deleteStatus,jdbcType=INTEGER},
|
|
#{deleteStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -495,6 +502,9 @@
|
|
<if test="record.productSn != null">
|
|
<if test="record.productSn != null">
|
|
product_sn = #{record.productSn,jdbcType=VARCHAR},
|
|
product_sn = #{record.productSn,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.productType != null">
|
|
|
|
+ product_sn = #{record.productType,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.deleteStatus != null">
|
|
<if test="record.deleteStatus != null">
|
|
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
|
|
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -615,6 +625,7 @@
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
pic = #{record.pic,jdbcType=VARCHAR},
|
|
pic = #{record.pic,jdbcType=VARCHAR},
|
|
product_sn = #{record.productSn,jdbcType=VARCHAR},
|
|
product_sn = #{record.productSn,jdbcType=VARCHAR},
|
|
|
|
+ product_type = #{record.productType,jdbcType=VARCHAR},
|
|
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
|
|
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
|
|
publish_status = #{record.publishStatus,jdbcType=INTEGER},
|
|
publish_status = #{record.publishStatus,jdbcType=INTEGER},
|
|
new_status = #{record.newStatus,jdbcType=INTEGER},
|
|
new_status = #{record.newStatus,jdbcType=INTEGER},
|
|
@@ -664,6 +675,7 @@
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
pic = #{record.pic,jdbcType=VARCHAR},
|
|
pic = #{record.pic,jdbcType=VARCHAR},
|
|
product_sn = #{record.productSn,jdbcType=VARCHAR},
|
|
product_sn = #{record.productSn,jdbcType=VARCHAR},
|
|
|
|
+ product_type = #{record.productType,jdbcType=VARCHAR},
|
|
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
|
|
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
|
|
publish_status = #{record.publishStatus,jdbcType=INTEGER},
|
|
publish_status = #{record.publishStatus,jdbcType=INTEGER},
|
|
new_status = #{record.newStatus,jdbcType=INTEGER},
|
|
new_status = #{record.newStatus,jdbcType=INTEGER},
|
|
@@ -723,6 +735,9 @@
|
|
<if test="productSn != null">
|
|
<if test="productSn != null">
|
|
product_sn = #{productSn,jdbcType=VARCHAR},
|
|
product_sn = #{productSn,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="productType != null">
|
|
|
|
+ product_type = #{productType,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="deleteStatus != null">
|
|
<if test="deleteStatus != null">
|
|
delete_status = #{deleteStatus,jdbcType=INTEGER},
|
|
delete_status = #{deleteStatus,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -840,6 +855,7 @@
|
|
name = #{name,jdbcType=VARCHAR},
|
|
name = #{name,jdbcType=VARCHAR},
|
|
pic = #{pic,jdbcType=VARCHAR},
|
|
pic = #{pic,jdbcType=VARCHAR},
|
|
product_sn = #{productSn,jdbcType=VARCHAR},
|
|
product_sn = #{productSn,jdbcType=VARCHAR},
|
|
|
|
+ product_type = #{productType,jdbcType=VARCHAR},
|
|
delete_status = #{deleteStatus,jdbcType=INTEGER},
|
|
delete_status = #{deleteStatus,jdbcType=INTEGER},
|
|
publish_status = #{publishStatus,jdbcType=INTEGER},
|
|
publish_status = #{publishStatus,jdbcType=INTEGER},
|
|
new_status = #{newStatus,jdbcType=INTEGER},
|
|
new_status = #{newStatus,jdbcType=INTEGER},
|
|
@@ -886,6 +902,7 @@
|
|
name = #{name,jdbcType=VARCHAR},
|
|
name = #{name,jdbcType=VARCHAR},
|
|
pic = #{pic,jdbcType=VARCHAR},
|
|
pic = #{pic,jdbcType=VARCHAR},
|
|
product_sn = #{productSn,jdbcType=VARCHAR},
|
|
product_sn = #{productSn,jdbcType=VARCHAR},
|
|
|
|
+ product_type = #{productType,jdbcType=VARCHAR},
|
|
delete_status = #{deleteStatus,jdbcType=INTEGER},
|
|
delete_status = #{deleteStatus,jdbcType=INTEGER},
|
|
publish_status = #{publishStatus,jdbcType=INTEGER},
|
|
publish_status = #{publishStatus,jdbcType=INTEGER},
|
|
new_status = #{newStatus,jdbcType=INTEGER},
|
|
new_status = #{newStatus,jdbcType=INTEGER},
|