select id, coupon_type, all_platform, partner_id, title, bind_moudle, bind_goods_ids, bind_partner_id, discount, effective_day, start_time, expiration_time, events_start_time, events_end_time, role_key, creator, create_time, updater, update_time from shop_coupon_template insert into shop_coupon_template id, coupon_type, all_platform, partner_id, title, bind_moudle, bind_goods_ids, bind_partner_id, discount, effective_day, start_time, expiration_time, events_start_time, events_end_time, role_key, creator, create_time, updater, update_time, #{id}, #{couponType}, #{allPlatform}, #{partnerId}, #{title}, #{bindMoudle}, #{bindGoodsIds}, #{bindPartnerId}, #{discount}, #{effectiveDay}, #{startTime}, #{expirationTime}, #{eventsStartTime}, #{eventsEndTime}, #{roleKey}, #{creator}, #{createTime}, #{updater}, #{updateTime}, update shop_coupon_template coupon_type = #{couponType}, all_platform = #{allPlatform}, partner_id = #{partnerId}, title = #{title}, bind_moudle = #{bindMoudle}, bind_goods_ids = #{bindGoodsIds}, bind_partner_id = #{bindPartnerId}, discount = #{discount}, effective_day = #{effectiveDay}, start_time = #{startTime}, expiration_time = #{expirationTime}, events_start_time = #{eventsStartTime}, events_end_time = #{eventsEndTime}, role_key = #{roleKey}, creator = #{creator}, create_time = #{createTime}, updater = #{updater}, update_time = #{updateTime}, where id = #{id} delete from shop_coupon_template where id = #{id} delete from shop_coupon_template where id in #{id}