统计业务类型

This commit is contained in:
秦鸿展
2026-08-25 22:23:18 +08:00
parent 940e4c56b0
commit 3c2f252347
4 changed files with 43 additions and 0 deletions
@@ -65,6 +65,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND TO_CHAR(ENTRY_TIME, 'YYYY-MM') = TO_CHAR(SYSDATE, 'YYYY-MM')
</select>
<!-- 今日预约-业务类型统计:按 businessName 分组统计今日预约数量(businessName 存中文名,如"航空打板") -->
<select id="queryTodayBusinessTypeStats" resultType="com.mhd.bi.domain.biPlatformRealData.repository.po.RealBusinessTypeStatPO">
SELECT
businessName AS businessName,
COUNT(1) AS count
FROM NGWL_TEST_YMS.QMS_MAIN_BUSINESS
WHERE businessName IS NOT NULL
AND TRUNC(CREATE_TIME) = TRUNC(SYSDATE)
GROUP BY businessName
ORDER BY COUNT(1) DESC
</select>
<!-- 任务负荷(今日 24 小时时段):按 EXTRACT(HOUR FROM ENTRY_TIME) 统计 -->
<select id="queryTaskLoadToday" resultType="com.mhd.bi.domain.biPlatformRealData.repository.po.RealTaskLoadPO">
SELECT