diff --git a/mallinkAdmin/src/main/resources/db/migration/V202105270001__tt_add_.sql b/mallinkAdmin/src/main/resources/db/migration/V202105270001__tt_add_.sql new file mode 100644 index 000000000..2e144fe12 --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V202105270001__tt_add_.sql @@ -0,0 +1,2 @@ +ALTER TABLE `wx_merchant` +ADD COLUMN `business_types` json AFTER `business_id`; \ No newline at end of file diff --git a/mallinkService/src/main/resources/mapper/TtCouponMapper.xml b/mallinkService/src/main/resources/mapper/TtCouponMapper.xml index aab83a68d..6fecc6c74 100644 --- a/mallinkService/src/main/resources/mapper/TtCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/TtCouponMapper.xml @@ -147,31 +147,31 @@ - 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 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 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 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 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 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 tt_coupon SET popularity = popularity+#{popularity}, update_date=now() where id = #{id} + update tt_coupon SET popularity = popularity+#{popularity} where id = #{id}