西藏巴青项目

biz_v_farming_news.sql 1.7KB

12345678910111213141516171819
  1. create or replace view v_farming_news as
  2. select standard_name as title,introduction,standard_type as type,cover_file_url,content_file_url,publish_time from biz_breeding_standard where publish_status=1
  3. UNION ALL
  4. select standard_name as title,introduction,standard_type as type,cover_file_url,content_file_url,publish_time from biz_feeding_standard where publish_status=1
  5. UNION ALL
  6. select standard_name as title,introduction,standard_type as type,cover_file_url,content_file_url,publish_time from biz_equipment_work_standard where publish_status=1
  7. UNION ALL
  8. select standard_name as title,introduction,standard_type as type,cover_file_url,content_file_url,publish_time from biz_growth_slaughter_standard where publish_status=1
  9. UNION ALL
  10. select project_name as title,project_intro as introduction,project_type as type,cover_file_url,attachment_file_url as content_file_url,publish_time from biz_tech_project_guide where publish_status=1
  11. UNION ALL
  12. select policy_name as title,introduction as introduction,'003001' as type,cover_file_url,policy_file_url as content_file_url,publish_time from biz_industry_policy_publicity where publish_status=1
  13. UNION ALL
  14. select project_name as title,introduction as introduction,'003002' as type,cover_file_url,null as content_file_url,publish_time from biz_subsidy_project where publish_status=1
  15. UNION ALL
  16. select subsidy_name as title,introduction as introduction,'003003' as type,cover_file_url,detail_file_url as content_file_url,publish_time from biz_subsidy_matter where publish_status=1
  17. UNION ALL
  18. select project_name as title,introduction as introduction,'003004' as type,cover_file_url,video_file_url as content_file_url,publish_time from biz_common_prosperity_project where publish_status=1;