SELECT 
  share_code,
  substr(share_path, 1, 30) as path,
  created_at,
  expires_at,
  datetime('now') as current_time,
  CASE 
    WHEN expires_at IS NULL THEN '永久有效'
    WHEN expires_at > datetime('now') THEN '未过期'
    ELSE '已过期'
  END as status,
  CASE 
    WHEN expires_at IS NOT NULL AND expires_at > datetime('now') THEN '通过'
    WHEN expires_at IS NULL THEN '通过'
    ELSE '拦截'
  END as findByCode_result
FROM shares
ORDER BY created_at DESC
LIMIT 10;
