增加文件统计后端

This commit is contained in:
晴朗
2024-08-31 17:58:10 +08:00
parent 2561546ac2
commit 7820d4907f
5 changed files with 74 additions and 3 deletions

View File

@@ -163,4 +163,14 @@
</foreach>
</delete>
<!-- 文档类型统计-->
<select id="countType" resultType="java.util.Map">
select t.doc_type as types, sum(1) as statistics from t_document t where t.is_deleted = '0' group by t.doc_type;
</select>
<!-- 文档来源统计-->
<select id="countSource" resultType="java.util.Map">
select t.doc_source as types, sum(1) as statistics from t_document t where t.is_deleted = '0' group by t.doc_source;
</select>
</mapper>