id, title, description, type, code_type, status, quota, stock, price_available, range_type, range_values, date_type, valid_start_time, valid_end_time, fixed_term, preferential_type, percent_off, price_off, discount_price_limit, stat_fetch_num, create_time INSERT INTO coupon_template ( title, description, type, code_type, status, quota, stock, price_available, range_type, range_values, date_type, valid_start_time, valid_end_time, fixed_term, preferential_type, percent_off, price_off, discount_price_limit, stat_fetch_num, create_time ) VALUES ( #{title}, #{description, #{type, #{code_type}, #{status}, #{quota, #{stock}, #{priceAvailable}, #{rangeType}, #{rangeValues}, #{dateType}, #{validStartTime}, #{validEndTime, #{fixedTerm}, #{preferentialType, #{percentOff}, #{priceOff}, #{discountPriceLimit}, #{statFetchNum}, #{createTime} ) UPDATE coupon_template title = #{title}, description = #{description}, status = #{status}, quota = #{quota}, stock = #{stock}, price_available = #{priceAvailable} range_type = #{rangeType} range_values = #{rangeValues} date_type = #{dateType} valid_start_time = #{validStartTime} valid_end_time = #{validEndTime} fixed_term = #{fixedTerm} preferential_type = #{preferentialType} percent_off = #{percentOff} price_off = #{priceOff} discount_price_limit = #{discountPriceLimit} WHERE id = #{id}