|
|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="productId" column="product_id" />
|
|
|
<result property="storeId" column="store_id" />
|
|
|
<result property="imgUrl" column="img_url" />
|
|
|
+ <result property="erpImgUrl" column="erp_img_url" />
|
|
|
<result property="images" column="images" />
|
|
|
<result property="productName" column="product_name" />
|
|
|
<result property="productIntroduce" column="product_introduce" />
|
|
|
@@ -50,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<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,product_source_type,chain_brand from fs_store_product
|
|
|
+ select product_id,is_prescribe,is_drug, store_id, img_url, erp_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,product_source_type,chain_brand from fs_store_product
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
|
@@ -107,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="storeId != null">store_id,</if>
|
|
|
<if test="imgUrl != null and imgUrl != ''">img_url,</if>
|
|
|
+ <if test="erpImgUrl != null and erpImgUrl != ''">erp_img_url,</if>
|
|
|
<if test="images != null and images != ''">images,</if>
|
|
|
<if test="productName != null">product_name,</if>
|
|
|
<if test="productIntroduce != null">product_introduce,</if>
|
|
|
@@ -150,6 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="storeId != null">#{storeId},</if>
|
|
|
<if test="imgUrl != null and imgUrl != ''">#{imgUrl},</if>
|
|
|
+ <if test="erpImgUrl != null and erpImgUrl != ''">#{erpImgUrl},</if>
|
|
|
<if test="images != null and images != ''">#{images},</if>
|
|
|
<if test="productName != null">#{productName},</if>
|
|
|
<if test="productIntroduce != null">#{productIntroduce},</if>
|
|
|
@@ -197,6 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="storeId != null">store_id = #{storeId},</if>
|
|
|
<if test="imgUrl != null and imgUrl != ''">img_url = #{imgUrl},</if>
|
|
|
+ <if test="erpImgUrl != null and erpImgUrl != ''">erp_img_url = #{erpImgUrl},</if>
|
|
|
<if test="images != null and images != ''">images = #{images},</if>
|
|
|
<if test="productName != null">product_name = #{productName},</if>
|
|
|
<if test="productIntroduce != null">product_introduce = #{productIntroduce},</if>
|