id_, name_, serial_num_, describe_, client_type_, category_, use_limit_, discount_price_, coupon_type_, valid_day_, start_time_, end_time_, inventory_, quantity_limit_, status_, updated_by_, update_time_, created_by_, created_time_
update coupon_info set inventory_ = inventory_
+ #{size}
- #{size}
and inventory_ - #{size} >= 0
and id_ = #{couponId}