2026-07-10-015-screen-study-description.sql 1.0 KB

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