DELETE FROM biz_user_secret_usage_daily WHERE business_date < #{cutoff} LIMIT #{batchSize} INSERT INTO biz_user_secret_usage_daily (user_id, module_key, business_date, call_count, created_at, updated_at) VALUES (#{userId}, #{moduleKey}, #{businessDate}, #{count}, NOW(), NOW()) ON DUPLICATE KEY UPDATE call_count = call_count + #{count}, updated_at = NOW()