保存进度!

This commit is contained in:
unknown 2023-07-30 22:12:14 +08:00
parent dcc925bb41
commit b2a973f7bd
1 changed files with 26 additions and 20 deletions

View File

@ -145,7 +145,10 @@ CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS
-- 车非融合率排行榜
OPEN a_attaching_ranking_list FOR
SELECT ×øϯÃû³Æ,
SELECT rownum,
×øϯÃû³Æ as caller_name,
³µ·ÇÉø͸ÂÊ as attaching_rate
FROM (SELECT ×øϯÃû³Æ,
round(decode(SUM(车险个人客户保费),
0,
0,
@ -156,18 +159,21 @@ CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS
AND 年份 = a_year
AND 部门代码 = a_department_code
GROUP BY 坐席名称
ORDER BY ³µ·ÇÉø͸ÂÊ DESC;
ORDER BY ³µ·ÇÉø͸ÂÊ DESC);
-- 续保率排行榜
OPEN a_renewal_ranking_list FOR
SELECT ×øϯÃû³Æ,
SELECT rownum,
×øϯÃû³Æ as caller_name,
Ðø±£ÂÊ as renewal_rate
FROM (SELECT ×øϯÃû³Æ,
round(nvl((SUM(已续保累计) / SUM(到期数)) * 100,
0),
2) 续保率
FROM 坐席续保统计 xb
WHERE xb.部门 = l_department_name
GROUP BY 坐席名称
ORDER BY Ðø±£ÂÊ DESC;
ORDER BY Ðø±£ÂÊ DESC);
END;
BEGIN