|
@@ -47,10 +47,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="prescribeName" column="prescribe_name" />
|
|
<result property="prescribeName" column="prescribe_name" />
|
|
|
<result property="isDisplay" column="is_display" />
|
|
<result property="isDisplay" column="is_display" />
|
|
|
<result property="tuiCateId" column="tui_cate_id" />
|
|
<result property="tuiCateId" column="tui_cate_id" />
|
|
|
|
|
+ <result property="taxClassificationCode" column="tax_classification_code" />
|
|
|
|
|
+ <result property="invoiceName" column="invoice_name" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
<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,tax_classification_code,invoice_name from fs_store_product
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
<select id="selectFsStoreProductList" parameterType="FsStoreProduct" resultMap="FsStoreProductResult">
|
|
@@ -96,6 +98,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isDisplay != null "> and is_display = #{isDisplay}</if>
|
|
<if test="isDisplay != null "> and is_display = #{isDisplay}</if>
|
|
|
<if test="warehouseId != null"> and warehouse_id = #{warehouseId}</if>
|
|
<if test="warehouseId != null"> and warehouse_id = #{warehouseId}</if>
|
|
|
<if test="warehouseCode != null"> and warehouse_code = #{warehouseCode}</if>
|
|
<if test="warehouseCode != null"> and warehouse_code = #{warehouseCode}</if>
|
|
|
|
|
+ <if test="taxClassificationCode != null and taxClassificationCode != ''"> and tax_classification_code = #{taxClassificationCode}</if>
|
|
|
|
|
+ <if test="invoiceName != null and invoiceName != ''"> and invoice_name like concat('%', #{invoiceName}, '%')</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -150,6 +154,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tuiCateId != null">tui_cate_id,</if>
|
|
<if test="tuiCateId != null">tui_cate_id,</if>
|
|
|
<if test="warehouseId != null">warehouse_id,</if>
|
|
<if test="warehouseId != null">warehouse_id,</if>
|
|
|
<if test="warehouseCode != null">warehouse_code,</if>
|
|
<if test="warehouseCode != null">warehouse_code,</if>
|
|
|
|
|
+ <if test="taxClassificationCode != null and taxClassificationCode != ''">tax_classification_code,</if>
|
|
|
|
|
+ <if test="invoiceName != null and invoiceName != ''">invoice_name,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
@@ -195,6 +201,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tuiCateId != null">#{tuiCateId},</if>
|
|
<if test="tuiCateId != null">#{tuiCateId},</if>
|
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
<if test="warehouseId != null">#{warehouseId},</if>
|
|
|
<if test="warehouseCode != null">#{warehouseCode},</if>
|
|
<if test="warehouseCode != null">#{warehouseCode},</if>
|
|
|
|
|
+ <if test="taxClassificationCode != null and taxClassificationCode != ''">#{taxClassificationCode},</if>
|
|
|
|
|
+ <if test="invoiceName != null and invoiceName != ''">#{invoiceName},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -244,6 +252,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tuiCateId != null">tui_cate_id = #{tuiCateId},</if>
|
|
<if test="tuiCateId != null">tui_cate_id = #{tuiCateId},</if>
|
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
|
|
<if test="warehouseCode != null">warehouse_code = #{warehouseCode},</if>
|
|
<if test="warehouseCode != null">warehouse_code = #{warehouseCode},</if>
|
|
|
|
|
+ <if test="taxClassificationCode != null and taxClassificationCode != ''">tax_classification_code = #{taxClassificationCode},</if>
|
|
|
|
|
+ <if test="invoiceName != null and invoiceName != ''">invoice_name = #{invoiceName},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where product_id = #{productId}
|
|
where product_id = #{productId}
|
|
|
</update>
|
|
</update>
|