|
@@ -48,10 +48,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="companyIds" column="company_ids" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
|
- select product_id, image,video, 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 from fs_store_product
|
|
|
+ select product_id, image,video, 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,company_ids from fs_store_product
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
@@ -150,6 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="prescribeName != null">prescribe_name,</if>
|
|
|
<if test="isDisplay != null">is_display,</if>
|
|
|
<if test="tuiCateId != null">tui_cate_id,</if>
|
|
|
+ <if test="companyIds != null and companyIds != ''">company_ids,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
@@ -194,6 +196,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="prescribeName != null">#{prescribeName},</if>
|
|
|
<if test="isDisplay != null">#{isDisplay},</if>
|
|
|
<if test="tuiCateId != null">#{tuiCateId},</if>
|
|
|
+ <if test="companyIds != null and companyIds != ''">#{company_ids},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -242,6 +245,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="prescribeName != null">prescribe_name = #{prescribeName},</if>
|
|
|
<if test="isDisplay != null">is_display = #{isDisplay},</if>
|
|
|
<if test="tuiCateId != null">tui_cate_id = #{tuiCateId},</if>
|
|
|
+ <if test="companyIds != null and companyIds != ''">company_ids = #{companyIds},</if>
|
|
|
</trim>
|
|
|
where product_id = #{productId}
|
|
|
</update>
|