添加商品查询、添加、修改功能
This commit is contained in:
@@ -41,6 +41,8 @@
|
||||
<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" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsProduct">
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
@@ -113,7 +115,7 @@
|
||||
use_point_limit, sub_title, original_price, stock, low_stock, unit, weight, preview_status,
|
||||
service_ids, keywords, note, album_pics, detail_title, flash_promotion_price, flash_promotion_count,
|
||||
flash_promotion_sort, promotion_start_time, promotion_end_time, promotion_per_limit,
|
||||
promotion_type
|
||||
promotion_type, brand_name, product_category_name
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
description, detail_desc, detail_html, detail_mobile_html
|
||||
@@ -183,9 +185,9 @@
|
||||
album_pics, detail_title, flash_promotion_price,
|
||||
flash_promotion_count, flash_promotion_sort,
|
||||
promotion_start_time, promotion_end_time,
|
||||
promotion_per_limit, promotion_type, description,
|
||||
detail_desc, detail_html, detail_mobile_html
|
||||
)
|
||||
promotion_per_limit, promotion_type, brand_name,
|
||||
product_category_name, description, detail_desc,
|
||||
detail_html, detail_mobile_html)
|
||||
values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT},
|
||||
#{productAttributeCategoryId,jdbcType=BIGINT}, #{flashPromotionId,jdbcType=INTEGER},
|
||||
#{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR},
|
||||
@@ -199,9 +201,9 @@
|
||||
#{albumPics,jdbcType=VARCHAR}, #{detailTitle,jdbcType=VARCHAR}, #{flashPromotionPrice,jdbcType=DECIMAL},
|
||||
#{flashPromotionCount,jdbcType=INTEGER}, #{flashPromotionSort,jdbcType=INTEGER},
|
||||
#{promotionStartTime,jdbcType=TIMESTAMP}, #{promotionEndTime,jdbcType=TIMESTAMP},
|
||||
#{promotionPerLimit,jdbcType=INTEGER}, #{promotionType,jdbcType=INTEGER}, #{description,jdbcType=LONGVARCHAR},
|
||||
#{detailDesc,jdbcType=LONGVARCHAR}, #{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR}
|
||||
)
|
||||
#{promotionPerLimit,jdbcType=INTEGER}, #{promotionType,jdbcType=INTEGER}, #{brandName,jdbcType=VARCHAR},
|
||||
#{productCategoryName,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}, #{detailDesc,jdbcType=LONGVARCHAR},
|
||||
#{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProduct">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
@@ -323,6 +325,12 @@
|
||||
<if test="promotionType != null">
|
||||
promotion_type,
|
||||
</if>
|
||||
<if test="brandName != null">
|
||||
brand_name,
|
||||
</if>
|
||||
<if test="productCategoryName != null">
|
||||
product_category_name,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
@@ -451,6 +459,12 @@
|
||||
<if test="promotionType != null">
|
||||
#{promotionType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="brandName != null">
|
||||
#{brandName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="productCategoryName != null">
|
||||
#{productCategoryName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -591,6 +605,12 @@
|
||||
<if test="record.promotionType != null">
|
||||
promotion_type = #{record.promotionType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<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.description != null">
|
||||
description = #{record.description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -649,6 +669,8 @@
|
||||
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},
|
||||
description = #{record.description,jdbcType=LONGVARCHAR},
|
||||
detail_desc = #{record.detailDesc,jdbcType=LONGVARCHAR},
|
||||
detail_html = #{record.detailHtml,jdbcType=LONGVARCHAR},
|
||||
@@ -697,7 +719,9 @@
|
||||
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}
|
||||
promotion_type = #{record.promotionType,jdbcType=INTEGER},
|
||||
brand_name = #{record.brandName,jdbcType=VARCHAR},
|
||||
product_category_name = #{record.productCategoryName,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -819,6 +843,12 @@
|
||||
<if test="promotionType != null">
|
||||
promotion_type = #{promotionType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="brandName != null">
|
||||
brand_name = #{brandName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="productCategoryName != null">
|
||||
product_category_name = #{productCategoryName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -874,6 +904,8 @@
|
||||
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},
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
detail_desc = #{detailDesc,jdbcType=LONGVARCHAR},
|
||||
detail_html = #{detailHtml,jdbcType=LONGVARCHAR},
|
||||
@@ -919,7 +951,9 @@
|
||||
promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP},
|
||||
promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP},
|
||||
promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
|
||||
promotion_type = #{promotionType,jdbcType=INTEGER}
|
||||
promotion_type = #{promotionType,jdbcType=INTEGER},
|
||||
brand_name = #{brandName,jdbcType=VARCHAR},
|
||||
product_category_name = #{productCategoryName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user