id,
level_name,
level_code,
status,
image_url,
main_tournament_gift_count,
side_tournament_gift_count,
service_voucher_gift_count,
allow_gift,
promotion_conditions,
retention_conditions,
created_at,
updated_at,
deleted_at
WHERE deleted_at IS NULL
INSERT INTO physical_member_level_config (
level_name,
level_code,
status,
image_url,
main_tournament_gift_count,
side_tournament_gift_count,
service_voucher_gift_count,
allow_gift,
promotion_conditions,
retention_conditions,
created_at,
updated_at
) VALUES (
#{levelName},
#{levelCode},
#{status},
#{imageUrl},
#{mainTournamentGiftCount},
#{sideTournamentGiftCount},
#{serviceVoucherGiftCount},
#{allowGift},
#{promotionConditions},
#{retentionConditions},
NOW(),
NOW()
)
UPDATE physical_member_level_config
level_name = #{levelName},
level_code = #{levelCode},
status = #{status},
image_url = #{imageUrl},
main_tournament_gift_count = #{mainTournamentGiftCount},
side_tournament_gift_count = #{sideTournamentGiftCount},
service_voucher_gift_count = #{serviceVoucherGiftCount},
allow_gift = #{allowGift},
promotion_conditions = #{promotionConditions},
retention_conditions = #{retentionConditions},
updated_at = NOW()
WHERE id = #{id}
AND deleted_at IS NULL
DELETE FROM physical_member_level_config
id IN
#{id}