|  | @@ -3,7 +3,7 @@
 | 
	
		
			
				|  |  |  PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 | 
	
		
			
				|  |  |  <mapper namespace="com.fs.store.mapper.FsStoreProductMapper">
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <resultMap type="FsStoreProduct" id="FsStoreProductResult">
 | 
	
		
			
				|  |  |          <result property="productId"    column="product_id"    />
 | 
	
		
			
				|  |  |          <result property="image"    column="image"    />
 | 
	
	
		
			
				|  | @@ -50,12 +50,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |      </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 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 from fs_store_product
 | 
	
		
			
				|  |  |      </sql>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
 | 
	
		
			
				|  |  |          <include refid="selectFsStoreProductVo"/>
 | 
	
		
			
				|  |  | -        <where>  
 | 
	
		
			
				|  |  | +        <where>
 | 
	
		
			
				|  |  |              <if test="image != null  and image != ''"> and image = #{image}</if>
 | 
	
		
			
				|  |  |              <if test="sliderImage != null  and sliderImage != ''"> and slider_image = #{sliderImage}</if>
 | 
	
		
			
				|  |  |              <if test="productName != null  and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
 | 
	
	
		
			
				|  | @@ -94,15 +94,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |              <if test="prescribeFactory != null  and prescribeFactory != ''"> and prescribe_factory = #{prescribeFactory}</if>
 | 
	
		
			
				|  |  |              <if test="prescribeName != null  and prescribeName != ''"> and prescribe_name like concat('%', #{prescribeName}, '%')</if>
 | 
	
		
			
				|  |  |              <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>
 | 
	
		
			
				|  |  |          </where>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <select id="selectFsStoreProductById" parameterType="Long" resultMap="FsStoreProductResult">
 | 
	
		
			
				|  |  |          <include refid="selectFsStoreProductVo"/>
 | 
	
		
			
				|  |  |          where product_id = #{productId}
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <insert id="insertFsStoreProduct" parameterType="FsStoreProduct" useGeneratedKeys="true" keyProperty="productId">
 | 
	
		
			
				|  |  |          insert into fs_store_product
 | 
	
		
			
				|  |  |          <trim prefix="(" suffix=")" suffixOverrides=",">
 | 
	
	
		
			
				|  | @@ -147,6 +148,8 @@ 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="warehouseId != null">warehouse_id,</if>
 | 
	
		
			
				|  |  | +            <if test="warehouseCode != null">warehouse_code,</if>
 | 
	
		
			
				|  |  |           </trim>
 | 
	
		
			
				|  |  |          <trim prefix="values (" suffix=")" suffixOverrides=",">
 | 
	
		
			
				|  |  |              <if test="image != null and image != ''">#{image},</if>
 | 
	
	
		
			
				|  | @@ -190,6 +193,8 @@ 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="warehouseId != null">#{warehouseId},</if>
 | 
	
		
			
				|  |  | +            <if test="warehouseCode != null">#{warehouseCode},</if>
 | 
	
		
			
				|  |  |           </trim>
 | 
	
		
			
				|  |  |      </insert>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -237,6 +242,8 @@ 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="warehouseId != null">warehouse_id = #{warehouseId},</if>
 | 
	
		
			
				|  |  | +            <if test="warehouseCode != null">warehouse_code = #{warehouseCode},</if>
 | 
	
		
			
				|  |  |          </trim>
 | 
	
		
			
				|  |  |          where product_id = #{productId}
 | 
	
		
			
				|  |  |      </update>
 | 
	
	
		
			
				|  | @@ -246,10 +253,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |      </delete>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <delete id="deleteFsStoreProductByIds" parameterType="String">
 | 
	
		
			
				|  |  | -        delete from fs_store_product where product_id in 
 | 
	
		
			
				|  |  | +        delete from fs_store_product where product_id in
 | 
	
		
			
				|  |  |          <foreach item="productId" collection="array" open="(" separator="," close=")">
 | 
	
		
			
				|  |  |              #{productId}
 | 
	
		
			
				|  |  |          </foreach>
 | 
	
		
			
				|  |  |      </delete>
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | -</mapper>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +</mapper>
 |