|
@@ -4,7 +4,10 @@
|
|
|
<resultMap id="BaseResultMap" type="com.hwrj.cloud.admin.model.PmsProduct">
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="brand_id" jdbcType="BIGINT" property="brandId" />
|
|
|
+ <result column="product_big_category_id" jdbcType="BIGINT" property="productBigCategoryId" />
|
|
|
+ <result column="product_big_category_name" jdbcType="VARCHAR" property="productBigCategoryName" />
|
|
|
<result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
|
|
|
+ <result column="product_category_name" jdbcType="VARCHAR" property="productCategoryName" />
|
|
|
<result column="feight_template_id" jdbcType="BIGINT" property="feightTemplateId" />
|
|
|
<result column="product_attribute_category_id" jdbcType="BIGINT" property="productAttributeCategoryId" />
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
@@ -22,7 +25,6 @@
|
|
|
<result column="gift_growth" jdbcType="INTEGER" property="giftGrowth" />
|
|
|
<result column="gift_point" jdbcType="INTEGER" property="giftPoint" />
|
|
|
<result column="use_point_limit" jdbcType="INTEGER" property="usePointLimit" />
|
|
|
- <result column="sub_title" jdbcType="VARCHAR" property="subTitle" />
|
|
|
<result column="original_price" jdbcType="DECIMAL" property="originalPrice" />
|
|
|
<result column="stock" jdbcType="INTEGER" property="stock" />
|
|
|
<result column="low_stock" jdbcType="INTEGER" property="lowStock" />
|
|
@@ -32,35 +34,35 @@
|
|
|
<result column="service_ids" jdbcType="VARCHAR" property="serviceIds" />
|
|
|
<result column="keywords" jdbcType="VARCHAR" property="keywords" />
|
|
|
<result column="note" jdbcType="VARCHAR" property="note" />
|
|
|
- <result column="album_pics" jdbcType="VARCHAR" property="albumPics" />
|
|
|
<result column="detail_title" jdbcType="VARCHAR" property="detailTitle" />
|
|
|
<result column="promotion_start_time" jdbcType="TIMESTAMP" property="promotionStartTime" />
|
|
|
<result column="promotion_end_time" jdbcType="TIMESTAMP" property="promotionEndTime" />
|
|
|
<result column="promotion_per_limit" jdbcType="INTEGER" property="promotionPerLimit" />
|
|
|
<result column="promotion_type" jdbcType="INTEGER" property="promotionType" />
|
|
|
<result column="brand_name" jdbcType="VARCHAR" property="brandName" />
|
|
|
- <result column="product_category_name" jdbcType="VARCHAR" property="productCategoryName" />
|
|
|
- <result column="ums_company_info_id" jdbcType="BIGINT" property="umsCompanyInfoId" />
|
|
|
- <result column="ums_company_info" jdbcType="VARCHAR" property="umsCompanyInfo" />
|
|
|
+ <result column="comp_id" jdbcType="BIGINT" property="compId" />
|
|
|
+ <result column="comp_name" jdbcType="VARCHAR" property="compName" />
|
|
|
<result column="trade_price" jdbcType="DECIMAL" property="tradePrice" />
|
|
|
<result column="spec" jdbcType="VARCHAR" property="spec" />
|
|
|
<result column="date_of_manufacture" jdbcType="VARCHAR" property="dateOfManufacture" />
|
|
|
<result column="place_of_production_id" jdbcType="BIGINT" property="placeOfProductionId" />
|
|
|
<result column="place_of_production" jdbcType="VARCHAR" property="placeOfProduction" />
|
|
|
- <result column="instructions" jdbcType="VARCHAR" property="instructions" />
|
|
|
<result column="quality_guarantee_period" jdbcType="VARCHAR" property="qualityGuaranteePeriod" />
|
|
|
<result column="points_for_attention" jdbcType="VARCHAR" property="pointsForAttention" />
|
|
|
- <result column="create_user" jdbcType="BIGINT" property="createUser" />
|
|
|
+ <result column="create_id" jdbcType="BIGINT" property="createId" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
- <result column="update_user" jdbcType="BIGINT" property="updateUser" />
|
|
|
+ <result column="update_id" jdbcType="BIGINT" property="updateId" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
<result column="create_type" jdbcType="INTEGER" property="createType" />
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hwrj.cloud.admin.model.PmsProduct">
|
|
|
+ <result column="sub_title" jdbcType="LONGVARCHAR" property="subTitle" />
|
|
|
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
|
|
+ <result column="album_pics" jdbcType="LONGVARCHAR" property="albumPics" />
|
|
|
<result column="detail_desc" jdbcType="LONGVARCHAR" property="detailDesc" />
|
|
|
<result column="detail_html" jdbcType="LONGVARCHAR" property="detailHtml" />
|
|
|
<result column="detail_mobile_html" jdbcType="LONGVARCHAR" property="detailMobileHtml" />
|
|
|
+ <result column="instructions" jdbcType="LONGVARCHAR" property="instructions" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -121,18 +123,19 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- 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,
|
|
|
- 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,
|
|
|
- keywords, note, album_pics, detail_title, promotion_start_time, promotion_end_time,
|
|
|
- promotion_per_limit, promotion_type, brand_name, product_category_name, ums_company_info_id,
|
|
|
- ums_company_info, trade_price, spec, date_of_manufacture, place_of_production_id,
|
|
|
- place_of_production, instructions, quality_guarantee_period, points_for_attention,
|
|
|
- create_user, create_time, update_user, update_time, create_type
|
|
|
+ id, brand_id, product_big_category_id, product_big_category_name, product_category_id,
|
|
|
+ product_category_name, feight_template_id, product_attribute_category_id, name, pic,
|
|
|
+ product_sn, delete_status, publish_status, new_status, recommand_status, verify_status,
|
|
|
+ sort, sale, price, promotion_price, gift_growth, gift_point, use_point_limit, original_price,
|
|
|
+ stock, low_stock, unit, weight, preview_status, service_ids, keywords, note, detail_title,
|
|
|
+ promotion_start_time, promotion_end_time, promotion_per_limit, promotion_type, brand_name,
|
|
|
+ comp_id, comp_name, trade_price, spec, date_of_manufacture, place_of_production_id,
|
|
|
+ place_of_production, quality_guarantee_period, points_for_attention, create_id, create_time,
|
|
|
+ update_id, update_time, create_type
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
- description, detail_desc, detail_html, detail_mobile_html
|
|
|
+ sub_title, description, album_pics, detail_desc, detail_html, detail_mobile_html,
|
|
|
+ instructions
|
|
|
</sql>
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.hwrj.cloud.admin.model.PmsProductExample" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
@@ -186,46 +189,48 @@
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
</selectKey>
|
|
|
- insert into pms_product (brand_id, product_category_id, feight_template_id,
|
|
|
- product_attribute_category_id, name, pic,
|
|
|
- product_sn, delete_status, publish_status,
|
|
|
- new_status, recommand_status, 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,
|
|
|
- keywords, note, album_pics,
|
|
|
+ insert into pms_product (brand_id, product_big_category_id, product_big_category_name,
|
|
|
+ product_category_id, product_category_name,
|
|
|
+ feight_template_id, product_attribute_category_id,
|
|
|
+ name, pic, product_sn,
|
|
|
+ delete_status, publish_status, new_status,
|
|
|
+ recommand_status, verify_status, sort,
|
|
|
+ sale, price, promotion_price,
|
|
|
+ gift_growth, gift_point, use_point_limit,
|
|
|
+ original_price, stock, low_stock,
|
|
|
+ unit, weight, preview_status,
|
|
|
+ service_ids, keywords, note,
|
|
|
detail_title, promotion_start_time, promotion_end_time,
|
|
|
promotion_per_limit, promotion_type, brand_name,
|
|
|
- product_category_name, ums_company_info_id, ums_company_info,
|
|
|
- trade_price, spec, date_of_manufacture,
|
|
|
- place_of_production_id, place_of_production,
|
|
|
- instructions, quality_guarantee_period, points_for_attention,
|
|
|
- create_user, create_time, update_user,
|
|
|
- update_time, create_type, description,
|
|
|
- detail_desc, detail_html, detail_mobile_html
|
|
|
- )
|
|
|
- values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT},
|
|
|
- #{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
|
|
|
- #{productSn,jdbcType=VARCHAR}, #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER},
|
|
|
- #{newStatus,jdbcType=INTEGER}, #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER},
|
|
|
- #{sort,jdbcType=INTEGER}, #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL},
|
|
|
- #{promotionPrice,jdbcType=DECIMAL}, #{giftGrowth,jdbcType=INTEGER}, #{giftPoint,jdbcType=INTEGER},
|
|
|
- #{usePointLimit,jdbcType=INTEGER}, #{subTitle,jdbcType=VARCHAR}, #{originalPrice,jdbcType=DECIMAL},
|
|
|
- #{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR},
|
|
|
- #{weight,jdbcType=DECIMAL}, #{previewStatus,jdbcType=INTEGER}, #{serviceIds,jdbcType=VARCHAR},
|
|
|
- #{keywords,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{albumPics,jdbcType=VARCHAR},
|
|
|
+ comp_id, comp_name, trade_price,
|
|
|
+ spec, date_of_manufacture, place_of_production_id,
|
|
|
+ place_of_production, quality_guarantee_period,
|
|
|
+ points_for_attention, create_id, create_time,
|
|
|
+ update_id, update_time, create_type,
|
|
|
+ sub_title, description, album_pics,
|
|
|
+ detail_desc, detail_html, detail_mobile_html,
|
|
|
+ instructions)
|
|
|
+ values (#{brandId,jdbcType=BIGINT}, #{productBigCategoryId,jdbcType=BIGINT}, #{productBigCategoryName,jdbcType=VARCHAR},
|
|
|
+ #{productCategoryId,jdbcType=BIGINT}, #{productCategoryName,jdbcType=VARCHAR},
|
|
|
+ #{feightTemplateId,jdbcType=BIGINT}, #{productAttributeCategoryId,jdbcType=BIGINT},
|
|
|
+ #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR},
|
|
|
+ #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER}, #{newStatus,jdbcType=INTEGER},
|
|
|
+ #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
|
|
|
+ #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{promotionPrice,jdbcType=DECIMAL},
|
|
|
+ #{giftGrowth,jdbcType=INTEGER}, #{giftPoint,jdbcType=INTEGER}, #{usePointLimit,jdbcType=INTEGER},
|
|
|
+ #{originalPrice,jdbcType=DECIMAL}, #{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER},
|
|
|
+ #{unit,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, #{previewStatus,jdbcType=INTEGER},
|
|
|
+ #{serviceIds,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR},
|
|
|
#{detailTitle,jdbcType=VARCHAR}, #{promotionStartTime,jdbcType=TIMESTAMP}, #{promotionEndTime,jdbcType=TIMESTAMP},
|
|
|
#{promotionPerLimit,jdbcType=INTEGER}, #{promotionType,jdbcType=INTEGER}, #{brandName,jdbcType=VARCHAR},
|
|
|
- #{productCategoryName,jdbcType=VARCHAR}, #{umsCompanyInfoId,jdbcType=BIGINT}, #{umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
- #{tradePrice,jdbcType=DECIMAL}, #{spec,jdbcType=VARCHAR}, #{dateOfManufacture,jdbcType=VARCHAR},
|
|
|
- #{placeOfProductionId,jdbcType=BIGINT}, #{placeOfProduction,jdbcType=VARCHAR},
|
|
|
- #{instructions,jdbcType=VARCHAR}, #{qualityGuaranteePeriod,jdbcType=VARCHAR}, #{pointsForAttention,jdbcType=VARCHAR},
|
|
|
- #{createUser,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=BIGINT},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP}, #{createType,jdbcType=INTEGER}, #{description,jdbcType=LONGVARCHAR},
|
|
|
- #{detailDesc,jdbcType=LONGVARCHAR}, #{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR}
|
|
|
- )
|
|
|
+ #{compId,jdbcType=BIGINT}, #{compName,jdbcType=VARCHAR}, #{tradePrice,jdbcType=DECIMAL},
|
|
|
+ #{spec,jdbcType=VARCHAR}, #{dateOfManufacture,jdbcType=VARCHAR}, #{placeOfProductionId,jdbcType=BIGINT},
|
|
|
+ #{placeOfProduction,jdbcType=VARCHAR}, #{qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
+ #{pointsForAttention,jdbcType=VARCHAR}, #{createId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{createType,jdbcType=INTEGER},
|
|
|
+ #{subTitle,jdbcType=LONGVARCHAR}, #{description,jdbcType=LONGVARCHAR}, #{albumPics,jdbcType=LONGVARCHAR},
|
|
|
+ #{detailDesc,jdbcType=LONGVARCHAR}, #{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR},
|
|
|
+ #{instructions,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.PmsProduct">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -236,9 +241,18 @@
|
|
|
<if test="brandId != null">
|
|
|
brand_id,
|
|
|
</if>
|
|
|
+ <if test="productBigCategoryId != null">
|
|
|
+ product_big_category_id,
|
|
|
+ </if>
|
|
|
+ <if test="productBigCategoryName != null">
|
|
|
+ product_big_category_name,
|
|
|
+ </if>
|
|
|
<if test="productCategoryId != null">
|
|
|
product_category_id,
|
|
|
</if>
|
|
|
+ <if test="productCategoryName != null">
|
|
|
+ product_category_name,
|
|
|
+ </if>
|
|
|
<if test="feightTemplateId != null">
|
|
|
feight_template_id,
|
|
|
</if>
|
|
@@ -290,9 +304,6 @@
|
|
|
<if test="usePointLimit != null">
|
|
|
use_point_limit,
|
|
|
</if>
|
|
|
- <if test="subTitle != null">
|
|
|
- sub_title,
|
|
|
- </if>
|
|
|
<if test="originalPrice != null">
|
|
|
original_price,
|
|
|
</if>
|
|
@@ -320,9 +331,6 @@
|
|
|
<if test="note != null">
|
|
|
note,
|
|
|
</if>
|
|
|
- <if test="albumPics != null">
|
|
|
- album_pics,
|
|
|
- </if>
|
|
|
<if test="detailTitle != null">
|
|
|
detail_title,
|
|
|
</if>
|
|
@@ -341,14 +349,11 @@
|
|
|
<if test="brandName != null">
|
|
|
brand_name,
|
|
|
</if>
|
|
|
- <if test="productCategoryName != null">
|
|
|
- product_category_name,
|
|
|
- </if>
|
|
|
- <if test="umsCompanyInfoId != null">
|
|
|
- ums_company_info_id,
|
|
|
+ <if test="compId != null">
|
|
|
+ comp_id,
|
|
|
</if>
|
|
|
- <if test="umsCompanyInfo != null">
|
|
|
- ums_company_info,
|
|
|
+ <if test="compName != null">
|
|
|
+ comp_name,
|
|
|
</if>
|
|
|
<if test="tradePrice != null">
|
|
|
trade_price,
|
|
@@ -365,23 +370,20 @@
|
|
|
<if test="placeOfProduction != null">
|
|
|
place_of_production,
|
|
|
</if>
|
|
|
- <if test="instructions != null">
|
|
|
- instructions,
|
|
|
- </if>
|
|
|
<if test="qualityGuaranteePeriod != null">
|
|
|
quality_guarantee_period,
|
|
|
</if>
|
|
|
<if test="pointsForAttention != null">
|
|
|
points_for_attention,
|
|
|
</if>
|
|
|
- <if test="createUser != null">
|
|
|
- create_user,
|
|
|
+ <if test="createId != null">
|
|
|
+ create_id,
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
- <if test="updateUser != null">
|
|
|
- update_user,
|
|
|
+ <if test="updateId != null">
|
|
|
+ update_id,
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
@@ -389,9 +391,15 @@
|
|
|
<if test="createType != null">
|
|
|
create_type,
|
|
|
</if>
|
|
|
+ <if test="subTitle != null">
|
|
|
+ sub_title,
|
|
|
+ </if>
|
|
|
<if test="description != null">
|
|
|
description,
|
|
|
</if>
|
|
|
+ <if test="albumPics != null">
|
|
|
+ album_pics,
|
|
|
+ </if>
|
|
|
<if test="detailDesc != null">
|
|
|
detail_desc,
|
|
|
</if>
|
|
@@ -401,14 +409,26 @@
|
|
|
<if test="detailMobileHtml != null">
|
|
|
detail_mobile_html,
|
|
|
</if>
|
|
|
+ <if test="instructions != null">
|
|
|
+ instructions,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="brandId != null">
|
|
|
#{brandId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="productBigCategoryId != null">
|
|
|
+ #{productBigCategoryId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="productBigCategoryName != null">
|
|
|
+ #{productBigCategoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="productCategoryId != null">
|
|
|
#{productCategoryId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="productCategoryName != null">
|
|
|
+ #{productCategoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="feightTemplateId != null">
|
|
|
#{feightTemplateId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -460,9 +480,6 @@
|
|
|
<if test="usePointLimit != null">
|
|
|
#{usePointLimit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="subTitle != null">
|
|
|
- #{subTitle,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="originalPrice != null">
|
|
|
#{originalPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -490,9 +507,6 @@
|
|
|
<if test="note != null">
|
|
|
#{note,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="albumPics != null">
|
|
|
- #{albumPics,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="detailTitle != null">
|
|
|
#{detailTitle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -511,14 +525,11 @@
|
|
|
<if test="brandName != null">
|
|
|
#{brandName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="productCategoryName != null">
|
|
|
- #{productCategoryName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="umsCompanyInfoId != null">
|
|
|
- #{umsCompanyInfoId,jdbcType=BIGINT},
|
|
|
+ <if test="compId != null">
|
|
|
+ #{compId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="umsCompanyInfo != null">
|
|
|
- #{umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
+ <if test="compName != null">
|
|
|
+ #{compName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="tradePrice != null">
|
|
|
#{tradePrice,jdbcType=DECIMAL},
|
|
@@ -535,23 +546,20 @@
|
|
|
<if test="placeOfProduction != null">
|
|
|
#{placeOfProduction,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="instructions != null">
|
|
|
- #{instructions,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="qualityGuaranteePeriod != null">
|
|
|
#{qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pointsForAttention != null">
|
|
|
#{pointsForAttention,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="createUser != null">
|
|
|
- #{createUser,jdbcType=BIGINT},
|
|
|
+ <if test="createId != null">
|
|
|
+ #{createId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="updateUser != null">
|
|
|
- #{updateUser,jdbcType=BIGINT},
|
|
|
+ <if test="updateId != null">
|
|
|
+ #{updateId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
@@ -559,9 +567,15 @@
|
|
|
<if test="createType != null">
|
|
|
#{createType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="subTitle != null">
|
|
|
+ #{subTitle,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
<if test="description != null">
|
|
|
#{description,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="albumPics != null">
|
|
|
+ #{albumPics,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
<if test="detailDesc != null">
|
|
|
#{detailDesc,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
@@ -571,6 +585,9 @@
|
|
|
<if test="detailMobileHtml != null">
|
|
|
#{detailMobileHtml,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="instructions != null">
|
|
|
+ #{instructions,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.hwrj.cloud.admin.model.PmsProductExample" resultType="java.lang.Long">
|
|
@@ -588,9 +605,18 @@
|
|
|
<if test="record.brandId != null">
|
|
|
brand_id = #{record.brandId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.productBigCategoryId != null">
|
|
|
+ product_big_category_id = #{record.productBigCategoryId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="record.productBigCategoryName != null">
|
|
|
+ product_big_category_name = #{record.productBigCategoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.productCategoryId != null">
|
|
|
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.productCategoryName != null">
|
|
|
+ product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.feightTemplateId != null">
|
|
|
feight_template_id = #{record.feightTemplateId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -642,9 +668,6 @@
|
|
|
<if test="record.usePointLimit != null">
|
|
|
use_point_limit = #{record.usePointLimit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.subTitle != null">
|
|
|
- sub_title = #{record.subTitle,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.originalPrice != null">
|
|
|
original_price = #{record.originalPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -672,9 +695,6 @@
|
|
|
<if test="record.note != null">
|
|
|
note = #{record.note,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.albumPics != null">
|
|
|
- album_pics = #{record.albumPics,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.detailTitle != null">
|
|
|
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -693,14 +713,11 @@
|
|
|
<if test="record.brandName != null">
|
|
|
brand_name = #{record.brandName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.productCategoryName != null">
|
|
|
- product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.umsCompanyInfoId != null">
|
|
|
- ums_company_info_id = #{record.umsCompanyInfoId,jdbcType=BIGINT},
|
|
|
+ <if test="record.compId != null">
|
|
|
+ comp_id = #{record.compId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="record.umsCompanyInfo != null">
|
|
|
- ums_company_info = #{record.umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
+ <if test="record.compName != null">
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="record.tradePrice != null">
|
|
|
trade_price = #{record.tradePrice,jdbcType=DECIMAL},
|
|
@@ -717,23 +734,20 @@
|
|
|
<if test="record.placeOfProduction != null">
|
|
|
place_of_production = #{record.placeOfProduction,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.instructions != null">
|
|
|
- instructions = #{record.instructions,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.qualityGuaranteePeriod != null">
|
|
|
quality_guarantee_period = #{record.qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="record.pointsForAttention != null">
|
|
|
points_for_attention = #{record.pointsForAttention,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.createUser != null">
|
|
|
- create_user = #{record.createUser,jdbcType=BIGINT},
|
|
|
+ <if test="record.createId != null">
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="record.updateUser != null">
|
|
|
- update_user = #{record.updateUser,jdbcType=BIGINT},
|
|
|
+ <if test="record.updateId != null">
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="record.updateTime != null">
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
@@ -741,9 +755,15 @@
|
|
|
<if test="record.createType != null">
|
|
|
create_type = #{record.createType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.subTitle != null">
|
|
|
+ sub_title = #{record.subTitle,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.description != null">
|
|
|
description = #{record.description,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.albumPics != null">
|
|
|
+ album_pics = #{record.albumPics,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.detailDesc != null">
|
|
|
detail_desc = #{record.detailDesc,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
@@ -753,6 +773,9 @@
|
|
|
<if test="record.detailMobileHtml != null">
|
|
|
detail_mobile_html = #{record.detailMobileHtml,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.instructions != null">
|
|
|
+ instructions = #{record.instructions,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -762,7 +785,10 @@
|
|
|
update pms_product
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
brand_id = #{record.brandId,jdbcType=BIGINT},
|
|
|
+ product_big_category_id = #{record.productBigCategoryId,jdbcType=BIGINT},
|
|
|
+ product_big_category_name = #{record.productBigCategoryName,jdbcType=VARCHAR},
|
|
|
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
|
|
|
+ product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
|
|
|
feight_template_id = #{record.feightTemplateId,jdbcType=BIGINT},
|
|
|
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
@@ -780,7 +806,6 @@
|
|
|
gift_growth = #{record.giftGrowth,jdbcType=INTEGER},
|
|
|
gift_point = #{record.giftPoint,jdbcType=INTEGER},
|
|
|
use_point_limit = #{record.usePointLimit,jdbcType=INTEGER},
|
|
|
- sub_title = #{record.subTitle,jdbcType=VARCHAR},
|
|
|
original_price = #{record.originalPrice,jdbcType=DECIMAL},
|
|
|
stock = #{record.stock,jdbcType=INTEGER},
|
|
|
low_stock = #{record.lowStock,jdbcType=INTEGER},
|
|
@@ -790,33 +815,33 @@
|
|
|
service_ids = #{record.serviceIds,jdbcType=VARCHAR},
|
|
|
keywords = #{record.keywords,jdbcType=VARCHAR},
|
|
|
note = #{record.note,jdbcType=VARCHAR},
|
|
|
- album_pics = #{record.albumPics,jdbcType=VARCHAR},
|
|
|
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
|
|
|
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
|
|
|
promotion_end_time = #{record.promotionEndTime,jdbcType=TIMESTAMP},
|
|
|
promotion_per_limit = #{record.promotionPerLimit,jdbcType=INTEGER},
|
|
|
promotion_type = #{record.promotionType,jdbcType=INTEGER},
|
|
|
brand_name = #{record.brandName,jdbcType=VARCHAR},
|
|
|
- product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
|
|
|
- ums_company_info_id = #{record.umsCompanyInfoId,jdbcType=BIGINT},
|
|
|
- ums_company_info = #{record.umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
+ comp_id = #{record.compId,jdbcType=BIGINT},
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR},
|
|
|
trade_price = #{record.tradePrice,jdbcType=DECIMAL},
|
|
|
spec = #{record.spec,jdbcType=VARCHAR},
|
|
|
date_of_manufacture = #{record.dateOfManufacture,jdbcType=VARCHAR},
|
|
|
place_of_production_id = #{record.placeOfProductionId,jdbcType=BIGINT},
|
|
|
place_of_production = #{record.placeOfProduction,jdbcType=VARCHAR},
|
|
|
- instructions = #{record.instructions,jdbcType=VARCHAR},
|
|
|
quality_guarantee_period = #{record.qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
points_for_attention = #{record.pointsForAttention,jdbcType=VARCHAR},
|
|
|
- create_user = #{record.createUser,jdbcType=BIGINT},
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- update_user = #{record.updateUser,jdbcType=BIGINT},
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
create_type = #{record.createType,jdbcType=INTEGER},
|
|
|
+ sub_title = #{record.subTitle,jdbcType=LONGVARCHAR},
|
|
|
description = #{record.description,jdbcType=LONGVARCHAR},
|
|
|
+ album_pics = #{record.albumPics,jdbcType=LONGVARCHAR},
|
|
|
detail_desc = #{record.detailDesc,jdbcType=LONGVARCHAR},
|
|
|
detail_html = #{record.detailHtml,jdbcType=LONGVARCHAR},
|
|
|
- detail_mobile_html = #{record.detailMobileHtml,jdbcType=LONGVARCHAR}
|
|
|
+ detail_mobile_html = #{record.detailMobileHtml,jdbcType=LONGVARCHAR},
|
|
|
+ instructions = #{record.instructions,jdbcType=LONGVARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -825,7 +850,10 @@
|
|
|
update pms_product
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
brand_id = #{record.brandId,jdbcType=BIGINT},
|
|
|
+ product_big_category_id = #{record.productBigCategoryId,jdbcType=BIGINT},
|
|
|
+ product_big_category_name = #{record.productBigCategoryName,jdbcType=VARCHAR},
|
|
|
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
|
|
|
+ product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
|
|
|
feight_template_id = #{record.feightTemplateId,jdbcType=BIGINT},
|
|
|
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
@@ -843,7 +871,6 @@
|
|
|
gift_growth = #{record.giftGrowth,jdbcType=INTEGER},
|
|
|
gift_point = #{record.giftPoint,jdbcType=INTEGER},
|
|
|
use_point_limit = #{record.usePointLimit,jdbcType=INTEGER},
|
|
|
- sub_title = #{record.subTitle,jdbcType=VARCHAR},
|
|
|
original_price = #{record.originalPrice,jdbcType=DECIMAL},
|
|
|
stock = #{record.stock,jdbcType=INTEGER},
|
|
|
low_stock = #{record.lowStock,jdbcType=INTEGER},
|
|
@@ -853,27 +880,24 @@
|
|
|
service_ids = #{record.serviceIds,jdbcType=VARCHAR},
|
|
|
keywords = #{record.keywords,jdbcType=VARCHAR},
|
|
|
note = #{record.note,jdbcType=VARCHAR},
|
|
|
- album_pics = #{record.albumPics,jdbcType=VARCHAR},
|
|
|
detail_title = #{record.detailTitle,jdbcType=VARCHAR},
|
|
|
promotion_start_time = #{record.promotionStartTime,jdbcType=TIMESTAMP},
|
|
|
promotion_end_time = #{record.promotionEndTime,jdbcType=TIMESTAMP},
|
|
|
promotion_per_limit = #{record.promotionPerLimit,jdbcType=INTEGER},
|
|
|
promotion_type = #{record.promotionType,jdbcType=INTEGER},
|
|
|
brand_name = #{record.brandName,jdbcType=VARCHAR},
|
|
|
- product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
|
|
|
- ums_company_info_id = #{record.umsCompanyInfoId,jdbcType=BIGINT},
|
|
|
- ums_company_info = #{record.umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
+ comp_id = #{record.compId,jdbcType=BIGINT},
|
|
|
+ comp_name = #{record.compName,jdbcType=VARCHAR},
|
|
|
trade_price = #{record.tradePrice,jdbcType=DECIMAL},
|
|
|
spec = #{record.spec,jdbcType=VARCHAR},
|
|
|
date_of_manufacture = #{record.dateOfManufacture,jdbcType=VARCHAR},
|
|
|
place_of_production_id = #{record.placeOfProductionId,jdbcType=BIGINT},
|
|
|
place_of_production = #{record.placeOfProduction,jdbcType=VARCHAR},
|
|
|
- instructions = #{record.instructions,jdbcType=VARCHAR},
|
|
|
quality_guarantee_period = #{record.qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
points_for_attention = #{record.pointsForAttention,jdbcType=VARCHAR},
|
|
|
- create_user = #{record.createUser,jdbcType=BIGINT},
|
|
|
+ create_id = #{record.createId,jdbcType=BIGINT},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- update_user = #{record.updateUser,jdbcType=BIGINT},
|
|
|
+ update_id = #{record.updateId,jdbcType=BIGINT},
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
create_type = #{record.createType,jdbcType=INTEGER}
|
|
|
<if test="_parameter != null">
|
|
@@ -886,9 +910,18 @@
|
|
|
<if test="brandId != null">
|
|
|
brand_id = #{brandId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="productBigCategoryId != null">
|
|
|
+ product_big_category_id = #{productBigCategoryId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="productBigCategoryName != null">
|
|
|
+ product_big_category_name = #{productBigCategoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="productCategoryId != null">
|
|
|
product_category_id = #{productCategoryId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="productCategoryName != null">
|
|
|
+ product_category_name = #{productCategoryName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="feightTemplateId != null">
|
|
|
feight_template_id = #{feightTemplateId,jdbcType=BIGINT},
|
|
|
</if>
|
|
@@ -940,9 +973,6 @@
|
|
|
<if test="usePointLimit != null">
|
|
|
use_point_limit = #{usePointLimit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="subTitle != null">
|
|
|
- sub_title = #{subTitle,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="originalPrice != null">
|
|
|
original_price = #{originalPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -970,9 +1000,6 @@
|
|
|
<if test="note != null">
|
|
|
note = #{note,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="albumPics != null">
|
|
|
- album_pics = #{albumPics,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="detailTitle != null">
|
|
|
detail_title = #{detailTitle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -991,14 +1018,11 @@
|
|
|
<if test="brandName != null">
|
|
|
brand_name = #{brandName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="productCategoryName != null">
|
|
|
- product_category_name = #{productCategoryName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="umsCompanyInfoId != null">
|
|
|
- ums_company_info_id = #{umsCompanyInfoId,jdbcType=BIGINT},
|
|
|
+ <if test="compId != null">
|
|
|
+ comp_id = #{compId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="umsCompanyInfo != null">
|
|
|
- ums_company_info = #{umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
+ <if test="compName != null">
|
|
|
+ comp_name = #{compName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="tradePrice != null">
|
|
|
trade_price = #{tradePrice,jdbcType=DECIMAL},
|
|
@@ -1015,23 +1039,20 @@
|
|
|
<if test="placeOfProduction != null">
|
|
|
place_of_production = #{placeOfProduction,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="instructions != null">
|
|
|
- instructions = #{instructions,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="qualityGuaranteePeriod != null">
|
|
|
quality_guarantee_period = #{qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pointsForAttention != null">
|
|
|
points_for_attention = #{pointsForAttention,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="createUser != null">
|
|
|
- create_user = #{createUser,jdbcType=BIGINT},
|
|
|
+ <if test="createId != null">
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="updateUser != null">
|
|
|
- update_user = #{updateUser,jdbcType=BIGINT},
|
|
|
+ <if test="updateId != null">
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
@@ -1039,9 +1060,15 @@
|
|
|
<if test="createType != null">
|
|
|
create_type = #{createType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="subTitle != null">
|
|
|
+ sub_title = #{subTitle,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
<if test="description != null">
|
|
|
description = #{description,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="albumPics != null">
|
|
|
+ album_pics = #{albumPics,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
<if test="detailDesc != null">
|
|
|
detail_desc = #{detailDesc,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
@@ -1051,13 +1078,19 @@
|
|
|
<if test="detailMobileHtml != null">
|
|
|
detail_mobile_html = #{detailMobileHtml,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="instructions != null">
|
|
|
+ instructions = #{instructions,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hwrj.cloud.admin.model.PmsProduct">
|
|
|
update pms_product
|
|
|
set brand_id = #{brandId,jdbcType=BIGINT},
|
|
|
+ product_big_category_id = #{productBigCategoryId,jdbcType=BIGINT},
|
|
|
+ product_big_category_name = #{productBigCategoryName,jdbcType=VARCHAR},
|
|
|
product_category_id = #{productCategoryId,jdbcType=BIGINT},
|
|
|
+ product_category_name = #{productCategoryName,jdbcType=VARCHAR},
|
|
|
feight_template_id = #{feightTemplateId,jdbcType=BIGINT},
|
|
|
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
@@ -1075,7 +1108,6 @@
|
|
|
gift_growth = #{giftGrowth,jdbcType=INTEGER},
|
|
|
gift_point = #{giftPoint,jdbcType=INTEGER},
|
|
|
use_point_limit = #{usePointLimit,jdbcType=INTEGER},
|
|
|
- sub_title = #{subTitle,jdbcType=VARCHAR},
|
|
|
original_price = #{originalPrice,jdbcType=DECIMAL},
|
|
|
stock = #{stock,jdbcType=INTEGER},
|
|
|
low_stock = #{lowStock,jdbcType=INTEGER},
|
|
@@ -1085,39 +1117,42 @@
|
|
|
service_ids = #{serviceIds,jdbcType=VARCHAR},
|
|
|
keywords = #{keywords,jdbcType=VARCHAR},
|
|
|
note = #{note,jdbcType=VARCHAR},
|
|
|
- album_pics = #{albumPics,jdbcType=VARCHAR},
|
|
|
detail_title = #{detailTitle,jdbcType=VARCHAR},
|
|
|
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
|
|
|
promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP},
|
|
|
promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
|
|
|
promotion_type = #{promotionType,jdbcType=INTEGER},
|
|
|
brand_name = #{brandName,jdbcType=VARCHAR},
|
|
|
- product_category_name = #{productCategoryName,jdbcType=VARCHAR},
|
|
|
- ums_company_info_id = #{umsCompanyInfoId,jdbcType=BIGINT},
|
|
|
- ums_company_info = #{umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
+ comp_id = #{compId,jdbcType=BIGINT},
|
|
|
+ comp_name = #{compName,jdbcType=VARCHAR},
|
|
|
trade_price = #{tradePrice,jdbcType=DECIMAL},
|
|
|
spec = #{spec,jdbcType=VARCHAR},
|
|
|
date_of_manufacture = #{dateOfManufacture,jdbcType=VARCHAR},
|
|
|
place_of_production_id = #{placeOfProductionId,jdbcType=BIGINT},
|
|
|
place_of_production = #{placeOfProduction,jdbcType=VARCHAR},
|
|
|
- instructions = #{instructions,jdbcType=VARCHAR},
|
|
|
quality_guarantee_period = #{qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
points_for_attention = #{pointsForAttention,jdbcType=VARCHAR},
|
|
|
- create_user = #{createUser,jdbcType=BIGINT},
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- update_user = #{updateUser,jdbcType=BIGINT},
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
create_type = #{createType,jdbcType=INTEGER},
|
|
|
+ sub_title = #{subTitle,jdbcType=LONGVARCHAR},
|
|
|
description = #{description,jdbcType=LONGVARCHAR},
|
|
|
+ album_pics = #{albumPics,jdbcType=LONGVARCHAR},
|
|
|
detail_desc = #{detailDesc,jdbcType=LONGVARCHAR},
|
|
|
detail_html = #{detailHtml,jdbcType=LONGVARCHAR},
|
|
|
- detail_mobile_html = #{detailMobileHtml,jdbcType=LONGVARCHAR}
|
|
|
+ detail_mobile_html = #{detailMobileHtml,jdbcType=LONGVARCHAR},
|
|
|
+ instructions = #{instructions,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.hwrj.cloud.admin.model.PmsProduct">
|
|
|
update pms_product
|
|
|
set brand_id = #{brandId,jdbcType=BIGINT},
|
|
|
+ product_big_category_id = #{productBigCategoryId,jdbcType=BIGINT},
|
|
|
+ product_big_category_name = #{productBigCategoryName,jdbcType=VARCHAR},
|
|
|
product_category_id = #{productCategoryId,jdbcType=BIGINT},
|
|
|
+ product_category_name = #{productCategoryName,jdbcType=VARCHAR},
|
|
|
feight_template_id = #{feightTemplateId,jdbcType=BIGINT},
|
|
|
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
@@ -1135,7 +1170,6 @@
|
|
|
gift_growth = #{giftGrowth,jdbcType=INTEGER},
|
|
|
gift_point = #{giftPoint,jdbcType=INTEGER},
|
|
|
use_point_limit = #{usePointLimit,jdbcType=INTEGER},
|
|
|
- sub_title = #{subTitle,jdbcType=VARCHAR},
|
|
|
original_price = #{originalPrice,jdbcType=DECIMAL},
|
|
|
stock = #{stock,jdbcType=INTEGER},
|
|
|
low_stock = #{lowStock,jdbcType=INTEGER},
|
|
@@ -1145,27 +1179,24 @@
|
|
|
service_ids = #{serviceIds,jdbcType=VARCHAR},
|
|
|
keywords = #{keywords,jdbcType=VARCHAR},
|
|
|
note = #{note,jdbcType=VARCHAR},
|
|
|
- album_pics = #{albumPics,jdbcType=VARCHAR},
|
|
|
detail_title = #{detailTitle,jdbcType=VARCHAR},
|
|
|
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
|
|
|
promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP},
|
|
|
promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
|
|
|
promotion_type = #{promotionType,jdbcType=INTEGER},
|
|
|
brand_name = #{brandName,jdbcType=VARCHAR},
|
|
|
- product_category_name = #{productCategoryName,jdbcType=VARCHAR},
|
|
|
- ums_company_info_id = #{umsCompanyInfoId,jdbcType=BIGINT},
|
|
|
- ums_company_info = #{umsCompanyInfo,jdbcType=VARCHAR},
|
|
|
+ comp_id = #{compId,jdbcType=BIGINT},
|
|
|
+ comp_name = #{compName,jdbcType=VARCHAR},
|
|
|
trade_price = #{tradePrice,jdbcType=DECIMAL},
|
|
|
spec = #{spec,jdbcType=VARCHAR},
|
|
|
date_of_manufacture = #{dateOfManufacture,jdbcType=VARCHAR},
|
|
|
place_of_production_id = #{placeOfProductionId,jdbcType=BIGINT},
|
|
|
place_of_production = #{placeOfProduction,jdbcType=VARCHAR},
|
|
|
- instructions = #{instructions,jdbcType=VARCHAR},
|
|
|
quality_guarantee_period = #{qualityGuaranteePeriod,jdbcType=VARCHAR},
|
|
|
points_for_attention = #{pointsForAttention,jdbcType=VARCHAR},
|
|
|
- create_user = #{createUser,jdbcType=BIGINT},
|
|
|
+ create_id = #{createId,jdbcType=BIGINT},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- update_user = #{updateUser,jdbcType=BIGINT},
|
|
|
+ update_id = #{updateId,jdbcType=BIGINT},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
create_type = #{createType,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=BIGINT}
|