<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>数据监控 :: 红山开源知识库</title>
    <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/index.html</link>
    <description></description>
    <generator>Hugo</generator>
    <language>zh</language>
    <atom:link href="http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>开源项目</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/01-%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/01-%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE/index.html</guid>
      <description>待补充</description>
    </item>
    <item>
      <title>创客空间</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/02-%E5%88%9B%E5%AE%A2%E7%A9%BA%E9%97%B4/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/02-%E5%88%9B%E5%AE%A2%E7%A9%BA%E9%97%B4/index.html</guid>
      <description>待补充</description>
    </item>
    <item>
      <title>竞赛可视化</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/03-%E7%AB%9E%E8%B5%9B%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/03-%E7%AB%9E%E8%B5%9B%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</guid>
      <description>进行中竞赛 已结束竞赛 已报名数 已提交作品数 竞赛转换成果数 需评审竞赛数 竞赛数据统计 年度竞赛作品新增数 热门竞赛统计</description>
    </item>
    <item>
      <title>成果可视化</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/04-%E6%88%90%E6%9E%9C%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/04-%E6%88%90%E6%9E%9C%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</guid>
      <description>开源项目 创客任务 开放竞赛 校企成果 年度成果数据 成果类型 成果行为数据展示 成果领域分布 近1年新增成果数 成果热度排行</description>
    </item>
    <item>
      <title>论坛可视化</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/05-%E8%AE%BA%E5%9D%9B%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/05-%E8%AE%BA%E5%9D%9B%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</guid>
      <description>近7日帖子审核通过率 根据published_at统计近7个自然日帖子的审核通过率； select a.auditSum as &#34;审核通过帖子总数&#34;, b.allSum as &#34;帖子总数&#34;, a.auditSum / b.allSum as &#34;近7日帖子审核通过率&#34;, c.currentYearSum as &#34;value2&#34; from ( (select count(1) as &#34;auditSum&#34; from memos where destroy_status is null and hidden = 0 and published_at is not null) a, (select count(1) as &#34;allSum&#34; from memos) b, (select count(1) as &#34;currentYearSum&#34; from memos where destroy_status is null and hidden = 0 and published_at is not null and DATE_FORMAT(published_at, &#39;%Y&#39;) = YEAR(NOW())) c ); 帖子总数 统计所有的帖子总数(包括未发布，已发布的) /* 所有帖子总数 */ select count(*) from memos; /*已发布的帖子总数 */ select count(*) from memos where destroy_status is null and hidden=0 and published_at is not null and root_id is null; /* destroy_status=0表示已删除 hidden=1 表示隐藏，hidden=0表示未隐藏 published_at有值表示已审核通过 root_id不为空表示帖子，有值表示帖子评论 */ 论坛原创率 统计所有已发布的帖子的原创/非原创的个数； select is_original as &#34;是否原创 1原创 0非原创&#34;, count(1) as &#34;数量&#34; from memos where destroy_status is null and hidden=0 and published_at is not null group by is_original; 年度论坛帖子总数 按年统计每年帖子发布的总数； select DATE_FORMAT(published_at, &#39;%Y&#39;) as &#34;key&#34;, COUNT(1) as &#34;value&#34; from memos where destroy_status is null and hidden = 0 and published_at is not null group by DATE_FORMAT(published_at, &#39;%Y&#39;) order by DATE_FORMAT(published_at, &#39;%Y&#39;); 帖子发布TOP5 取点赞数+回复数+浏览数之和前5的帖子； select id as &#34;id&#34;,subject as &#34;subject&#34;,published_at as &#34;publishedAt&#34;,viewed_count as &#34;viewedCount&#34;,praises_count as &#34;praisesCount&#34;,replies_count as &#34;repliesCount&#34;,(viewed_count+praises_count+replies_count) as &#34;behavioreSum&#34; from memos where destroy_status is null and hidden=0 and published_at is not null and DATE_FORMAT(published_at, &#39;%Y&#39;) = YEAR (NOW()) order by (viewed_count+praises_count+replies_count) desc limit 0,5; 社区动态分类 统计各板块帖子的数量占比； select a.ancestry as &#34;key&#34;, fs.title as &#34;name&#34;, a.tmp as &#34;value&#34; from (select f.ancestry, count(1) as &#34;tmp&#34; from memos m left join forum_sections f on m.forum_section_id = f.id where m.destroy_status is null and m.hidden = 0 and m.published_at is not null group by f.ancestry) a left join forum_sections fs on fs.id = a.ancestry ORDER BY a.ancestry DESC; 近7日帖子点赞数 统计近7日（不包括今天）的帖子点赞数； SELECT k, COUNT(*) AS y FROM ( SELECT DATE_FORMAT(created_at, &#39;%Y-%m-%d&#39;) AS k FROM praise_treads WHERE praise_tread_object_type=&#39;Memo&#39; AND created_at &gt;= DATE_SUB(CURDATE(), INTERVAL 7 DAY) AND created_at &lt; CURDATE() ) AS sub GROUP BY k ORDER BY k; 近一年新增论坛数 统计近1年帖子标签是交流（1）、求助（2）、新闻（3）的每月的新增数量； select a.currentMonth as &#34;name&#34;, a.tag_id as &#34;key&#34;, sum(a.countTag) as &#34;value&#34; from (select DATE_FORMAT(published_at, &#39;%m&#39;) as &#34;currentMonth&#34;, tag_id, count(1) as &#34;countTag&#34; from memos where DATE_FORMAT(published_at, &#39;%Y&#39;) = YEAR (NOW()) and destroy_status is null and hidden=0 and published_at is not null group by DATE_FORMAT(published_at, &#39;%m&#39;), tag_id ) a group by a.currentMonth, a.tag_id order by a.tag_id, a.currentMonth asc;</description>
    </item>
    <item>
      <title>专家可视化</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/06-%E4%B8%93%E5%AE%B6%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E6%95%B0%E6%8D%AE%E7%9B%91%E6%8E%A7/06-%E4%B8%93%E5%AE%B6%E5%8F%AF%E8%A7%86%E5%8C%96/index.html</guid>
      <description>专家实名完成度 专家实名完成度 = 已实名专家总数 / 专家总数 select b.expertTotal as &#34;专家总数&#34;, d.expertAuth as &#34;已实名专家总数&#34; from ( (select count(1) as &#34;expertTotal&#34; from experts where is_delete = &#39;0&#39; and status = 1) b, (select count(1) as &#34;expertAuth&#34; from experts e inner join users u on e.user_id = u.id where e.is_delete = &#39;0&#39; and e.status = 1 and u.authentication = true) d ); 专家职称等级分布 统计专家不同职称等级分类占比； select title_rank as &#34;职级&#34;, count(1) as &#34;数量&#34; from experts where is_delete = &#39;0&#39; and status = 1 group by title_rank; 专家专业类别 统计专家不同专业类别的数量及占比； select expert_type as &#34;专业类别&#34;,count(1) as &#34;数量&#34; from experts where is_delete = &#39;0&#39; and status = 1 group by expert_type; 专家单位类别分布 统计专家不同单位类别的数量及占比； select workplace_type as &#34;单位类别&#34;,count(1) as &#34;数量&#34; from experts where is_delete = &#39;0&#39; and status = 1 group by workplace_type; 专家学历分布 统计专家不同学历的数量及占比； select highest_degree as &#34;学历&#34;,count(1) as &#34;数量&#34; from experts where is_delete = &#39;0&#39; and status = 1 group by highest_degree; 专家评审作品数 select tmp.expert_name as &#34;专家姓名&#34;, tmp.taskAuditCount as &#34;创客任务评审数&#34;, tmp.competitionAuditCount as &#34;竞赛评审数&#34;, (tmp.taskAuditCount + tmp.competitionAuditCount) as &#34;创客+竞赛评审总数&#34; from (select e.expert_name, (select COUNT(distinct container_id) from task_expert where expert_id = e.id and container_type = 1 and status in (1,2)) as taskAuditCount, (select COUNT(distinct container_id) from task_expert where expert_id = e.id and container_type = 2 and status in (1,2)) as competitionAuditCount from experts e left join users u on e.user_id = u.id where e.is_delete = &#39;0&#39; and e.status = 1) tmp order by (tmp.taskAuditCount + tmp.competitionAuditCount) desc limit 0,12; 年度专家数据统计 select DATE_FORMAT(created_on, &#39;%Y&#39;) as &#39;name&#39;, count(*) as &#39;value&#39; from experts where is_delete = &#39;0&#39; and status = 1 group by DATE_FORMAT(created_on, &#39;%Y&#39;) order by DATE_FORMAT(created_on, &#39;%Y&#39;); 热门专家领域 select a.domain_value as &#34;name&#34;, count(a.domain_value) as &#34;value&#34; from (select review_area_one as domain_value from experts where is_delete = &#39;0&#39; and status = 1 and review_area_one is not null and review_area_one != &#39;&#39; union all select review_area_two as domain_value from experts where is_delete = &#39;0&#39; and status = 1 and review_area_two is not null and review_area_two != &#39;&#39; union all select review_area_three as domain_value from experts where is_delete = &#39;0&#39; and status = 1 and review_area_three is not null and review_area_three != &#39;&#39;) a group by a.domain_value order by count(a.domain_value) desc limit 0,9;</description>
    </item>
  </channel>
</rss>