|
|
|
@@ -147,31 +147,31 @@ |
|
|
|
</delete> |
|
|
|
|
|
|
|
<update id="addSeeCount" parameterType="Long"> |
|
|
|
update tt_coupon SET see_count = see_count+1,popularity = popularity+1, update_date=now() where id = #{id} |
|
|
|
update tt_coupon SET see_count = see_count+1,popularity = popularity+1 where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="addSellCount" parameterType="Long"> |
|
|
|
update tt_coupon SET sell_count = sell_count+1,popularity = popularity+20, false_sell_count = false_sell_count+1, update_date=now() where id = #{id} |
|
|
|
update tt_coupon SET sell_count = sell_count+1,popularity = popularity+20, false_sell_count = false_sell_count+1 where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="reduceSellCount" parameterType="Long"> |
|
|
|
update tt_coupon SET sell_count = sell_count-1,popularity = popularity-20, false_sell_count = false_sell_count-1, update_date=now() where id = #{id} |
|
|
|
update tt_coupon SET sell_count = sell_count-1,popularity = popularity-20, false_sell_count = false_sell_count-1 where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="addAssessCount" parameterType="Long"> |
|
|
|
update tt_coupon SET assess_count = assess_count+1,popularity = popularity+10, update_date=now() where id = #{id} |
|
|
|
update tt_coupon SET assess_count = assess_count+1,popularity = popularity+10 where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="addCollectCount" parameterType="Long"> |
|
|
|
update tt_coupon SET collect_count = collect_count+1,popularity = popularity+5, update_date=now() where id = #{id} |
|
|
|
update tt_coupon SET collect_count = collect_count+1,popularity = popularity+5 where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="reduceCollectCount" parameterType="Long"> |
|
|
|
update tt_coupon SET collect_count = collect_count-1,popularity = popularity-5, update_date=now() where id = #{id} |
|
|
|
update tt_coupon SET collect_count = collect_count-1,popularity = popularity-5 where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="addPopularity" parameterType="java.util.HashMap"> |
|
|
|
update tt_coupon SET popularity = popularity+#{popularity}, update_date=now() where id = #{id} |
|
|
|
update tt_coupon SET popularity = popularity+#{popularity} where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
</mapper> |