2026-06-18-screen-study-description.sql 1.0 KB

123456789101112131415161718192021222324252627
  1. SET @screen_template_id := (
  2. SELECT wtid FROM website_template WHERE config = 'ffkjscreen01' ORDER BY wtid LIMIT 1
  3. );
  4. SET @screen_website_id := (
  5. SELECT websiteid FROM website WHERE id_code = 'local_ffkj_screen_site' ORDER BY websiteid LIMIT 1
  6. );
  7. SET @screen_website_id := COALESCE(
  8. @screen_website_id,
  9. (
  10. SELECT w.websiteid
  11. FROM website w
  12. JOIN website_template t ON t.wtid = w.wtid
  13. WHERE t.config = 'ffkjscreen02'
  14. AND (w.domains LIKE '%hxcs.feifan.net%' OR w.domains LIKE '%ffkj-screen-red.localhost%')
  15. ORDER BY w.websiteid
  16. LIMIT 1
  17. )
  18. );
  19. SET @study_description := '围绕招生咨询、专业选择、就业发展和校园服务,集中呈现报考指南、培养特色、成长支持等信息,帮助学生和家长更清晰地了解在华夏学习、生活与发展的路径。';
  20. UPDATE website_navigation
  21. SET `desc` = @study_description
  22. WHERE idcard = 'FFKJ_SCHOOL_STUDY'
  23. AND (
  24. (wnccode = 10010 AND wtid = @screen_template_id)
  25. OR (wnccode = 10000 AND websiteid = @screen_website_id)
  26. );