|
@@ -44,10 +44,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="tempId" column="temp_id" />
|
|
<result property="tempId" column="temp_id" />
|
|
|
<result property="isPrescribe" column="is_prescribe" />
|
|
<result property="isPrescribe" column="is_prescribe" />
|
|
|
<result property="isDrug" column="is_drug" />
|
|
<result property="isDrug" column="is_drug" />
|
|
|
|
|
+ <result property="minPrice" column="min_price" />
|
|
|
|
|
+ <result property="minOpen" column="min_open" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
<sql id="selectFsStoreProductVo">
|
|
|
- select product_id,is_prescribe,is_drug, store_id, img_url, images, product_name, product_introduce, keyword, bar_code, cate_id, price, ot_price, unit_name, sort, sales, stock, is_show, is_hot, is_benefit, is_best, is_new, `desc`, create_time, update_time, is_postage, is_del, give_integral, cost_price, views, code_url, spec_type, product_type, prescribe_code, prescribe_spec, prescribe_factory, prescribe_name, is_display, temp_id,brand from fs_store_product
|
|
|
|
|
|
|
+ select product_id,is_prescribe,is_drug, store_id, img_url, images, product_name, product_introduce, keyword, bar_code, cate_id, price, ot_price, unit_name, sort, sales, stock, is_show, is_hot, is_benefit, is_best, is_new, `desc`, create_time, update_time, is_postage, is_del, give_integral, cost_price, views, code_url, spec_type, product_type, prescribe_code, prescribe_spec, prescribe_factory, prescribe_name, is_display, temp_id,brand,min_price,min_open from fs_store_product
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
@@ -141,6 +143,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isPrescribe != null">is_prescribe,</if>
|
|
<if test="isPrescribe != null">is_prescribe,</if>
|
|
|
<if test="isDrug != null">is_drug,</if>
|
|
<if test="isDrug != null">is_drug,</if>
|
|
|
<if test="brand != null">brand,</if>
|
|
<if test="brand != null">brand,</if>
|
|
|
|
|
+ <if test="minPrice != null">min_price,</if>
|
|
|
|
|
+ <if test="minOpen != null">min_open,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="storeId != null">#{storeId},</if>
|
|
<if test="storeId != null">#{storeId},</if>
|
|
@@ -182,6 +186,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isPrescribe != null">#{isPrescribe},</if>
|
|
<if test="isPrescribe != null">#{isPrescribe},</if>
|
|
|
<if test="isDrug != null">#{isDrug},</if>
|
|
<if test="isDrug != null">#{isDrug},</if>
|
|
|
<if test="brand != null">#{brand},</if>
|
|
<if test="brand != null">#{brand},</if>
|
|
|
|
|
+ <if test="minPrice != null">#{minPrice},</if>
|
|
|
|
|
+ <if test="minOpen != null">#{minOpen},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -226,6 +232,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDisplay != null">is_display = #{isDisplay},</if>
|
|
<if test="isDisplay != null">is_display = #{isDisplay},</if>
|
|
|
<if test="tempId != null">temp_id = #{tempId},</if>
|
|
<if test="tempId != null">temp_id = #{tempId},</if>
|
|
|
<if test="isDrug != null">is_drug = #{isDrug},</if>
|
|
<if test="isDrug != null">is_drug = #{isDrug},</if>
|
|
|
|
|
+ <if test="minPrice != null">min_price = #{minPrice},</if>
|
|
|
|
|
+ <if test="minOpen != null">min_open = #{minOpen},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where product_id = #{productId}
|
|
where product_id = #{productId}
|
|
|
</update>
|
|
</update>
|