|
@@ -47,10 +47,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="prescribeName" column="prescribe_name" />
|
|
|
<result property="isDisplay" column="is_display" />
|
|
|
<result property="tuiCateId" column="tui_cate_id" />
|
|
|
+ <result property="video" column="video" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
|
- select product_id, image, slider_image, product_name, product_info, keyword, bar_code, cate_id, price, vip_price, ot_price, postage, unit_name, sort, sales, stock, is_show, is_hot, is_benefit, is_best, is_new, description, create_time, update_time, is_postage, is_del, give_integral, cost, is_good, browse, code_path, temp_id, spec_type, is_integral, integral, product_type, prescribe_code, prescribe_spec, prescribe_factory, prescribe_name,is_display,tui_cate_id,warehouse_id,warehouse_code from fs_store_product
|
|
|
+ select product_id, image, slider_image, product_name, product_info, keyword, bar_code, cate_id, price, vip_price, ot_price, postage, unit_name, sort, sales, stock, is_show, is_hot, is_benefit, is_best, is_new, description, create_time, update_time, is_postage, is_del, give_integral, cost, is_good, browse, code_path, temp_id, spec_type, is_integral, integral, product_type, prescribe_code, prescribe_spec, prescribe_factory, prescribe_name,is_display,tui_cate_id,warehouse_id,warehouse_code,video from fs_store_product
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
@@ -108,6 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into fs_store_product
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">image,</if>
|
|
|
+ <if test="video != null and video != ''">video,</if>
|
|
|
<if test="sliderImage != null and sliderImage != ''">slider_image,</if>
|
|
|
<if test="productName != null and productName != ''">product_name,</if>
|
|
|
<if test="productInfo != null and productInfo != ''">product_info,</if>
|
|
@@ -153,6 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
|
+ <if test="video != null and video != ''">#{video},</if>
|
|
|
<if test="sliderImage != null and sliderImage != ''">#{sliderImage},</if>
|
|
|
<if test="productName != null and productName != ''">#{productName},</if>
|
|
|
<if test="productInfo != null and productInfo != ''">#{productInfo},</if>
|
|
@@ -202,6 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update fs_store_product
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">image = #{image},</if>
|
|
|
+ <if test="video != null and video != ''">video = #{video},</if>
|
|
|
<if test="sliderImage != null and sliderImage != ''">slider_image = #{sliderImage},</if>
|
|
|
<if test="productName != null and productName != ''">product_name = #{productName},</if>
|
|
|
<if test="productInfo != null and productInfo != ''">product_info = #{productInfo},</if>
|