|
|
@@ -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="specialProducts" column="special_products" />
|
|
|
</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,special_products from fs_store_product
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
|
@@ -96,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDisplay != null "> and is_display = #{isDisplay}</if>
|
|
|
<if test="warehouseId != null"> and warehouse_id = #{warehouseId}</if>
|
|
|
<if test="warehouseCode != null"> and warehouse_code = #{warehouseCode}</if>
|
|
|
+ <if test="specialProducts != null"> and special_products = #{specialProducts}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -150,6 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tuiCateId != null">tui_cate_id,</if>
|
|
|
<if test="warehouseId != null">warehouse_id,</if>
|
|
|
<if test="warehouseCode != null">warehouse_code,</if>
|
|
|
+ <if test="specialProducts != null">special_products,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
|
@@ -195,6 +198,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tuiCateId != null">#{tuiCateId},</if>
|
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
|
<if test="warehouseCode != null">#{warehouseCode},</if>
|
|
|
+ <if test="specialProducts != null">#{specialProducts},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -244,6 +248,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tuiCateId != null">tui_cate_id = #{tuiCateId},</if>
|
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
|
<if test="warehouseCode != null">warehouse_code = #{warehouseCode},</if>
|
|
|
+ <if test="specialProducts != null">special_products = #{specialProducts},</if>
|
|
|
</trim>
|
|
|
where product_id = #{productId}
|
|
|
</update>
|