...
|
...
|
@@ -63,29 +63,67 @@ |
|
|
#{productSkn,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER} ,#{studentCoinRate,jdbcType=DECIMAL},#{lastReducePriceTime,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.ProductPrice" timeout="20000">
|
|
|
update product_price
|
|
|
set market_price = #{marketPrice,jdbcType=DECIMAL},
|
|
|
sales_price = #{salesPrice,jdbcType=DECIMAL},
|
|
|
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
|
|
|
special_price = #{specialPrice,jdbcType=DECIMAL},
|
|
|
yoho_coin_num = #{yohoCoinNum,jdbcType=INTEGER},
|
|
|
purchase_num = #{purchaseNum,jdbcType=DECIMAL},
|
|
|
purchase_cost = #{purchaseCost,jdbcType=DECIMAL},
|
|
|
tariff = #{tariff,jdbcType=DECIMAL},
|
|
|
vip_discount_type = #{vipDiscountType,jdbcType=INTEGER},
|
|
|
vip_discount = #{vipDiscount,jdbcType=DECIMAL},
|
|
|
vip_price = #{vipPrice,jdbcType=DECIMAL},
|
|
|
vip1_price = #{vip1Price,jdbcType=DECIMAL},
|
|
|
vip2_price = #{vip2Price,jdbcType=DECIMAL},YH
|
|
|
vip3_price = #{vip3Price,jdbcType=DECIMAL},
|
|
|
student_price = #{studentPrice,jdbcType=DECIMAL},
|
|
|
product_skn = #{productSkn,jdbcType=INTEGER},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
student_coin_rate = #{studentCoinRate,jdbcType=DECIMAL},
|
|
|
lastReducePriceTime = #{lastReducePriceTime,jdbcType=INTEGER}
|
|
|
where product_id = #{productId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ProductPrice" timeout="20000">
|
|
|
update product_price
|
|
|
<set>
|
|
|
<if test="marketPrice != null">
|
|
|
market_price = #{marketPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="salesPrice != null">
|
|
|
sales_price = #{salesPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="purchasePrice != null">
|
|
|
purchase_price = #{purchasePrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="specialPrice != null">
|
|
|
special_price = #{specialPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="yohoCoinNum != null">
|
|
|
yoho_coin_num = #{yohoCoinNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="purchaseNum != null">
|
|
|
purchase_num = #{purchaseNum,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="purchaseCost != null">
|
|
|
purchase_cost = #{purchaseCost,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="tariff != null">
|
|
|
tariff = #{tariff,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="vipDiscountType != null">
|
|
|
vip_discount_type = #{vipDiscountType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="vipDiscount != null">
|
|
|
vip_discount = #{vipDiscount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="vipPrice != null">
|
|
|
vip_price = #{vipPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="vip1Price != null">
|
|
|
vip1_price = #{vip1Price,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="vip2Price != null">
|
|
|
vip2_price = #{vip2Price,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="vip3Price != null">
|
|
|
vip3_price = #{vip3Price,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
student_price = #{studentPrice,jdbcType=DECIMAL},
|
|
|
<if test="productSkn != null">
|
|
|
product_skn = #{productSkn,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="studentCoinRate != null">
|
|
|
student_coin_rate = #{studentCoinRate,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="lastReducePriceTime != null">
|
|
|
lastReducePriceTime = #{lastReducePriceTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where product_id = #{productId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
|
|
|
SELECT count(1) FROM product_price
|
...
|
...
|
|