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, create_by, create_time, update_by, 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, create_by, create_time, update_by, update_time, #{id}, #{couponType}, #{allPlatform}, #{partnerId}, #{title}, #{bindMoudle}, #{bindGoodsIds}, #{bindPartnerId}, #{discount}, #{effectiveDay}, #{startTime}, #{expirationTime}, #{eventsStartTime}, #{eventsEndTime}, #{roleKey}, #{createBy}, #{createTime}, #{updateBy}, #{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}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} delete from shop_coupon_template where id = #{id} delete from shop_coupon_template where id in #{id}