保存进度!

This commit is contained in:
unknown 2023-10-23 23:48:07 +08:00
parent a3c56df910
commit 6ddfe56e6d
1 changed files with 13 additions and 9 deletions

View File

@ -77,16 +77,20 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS
DEPARTMENTCODE_EXCEPTION_MSG); DEPARTMENTCODE_EXCEPTION_MSG);
END; END;
--车非渗透率 --车非渗透率
SELECT DECODE(SUM(CF.车险个人客户保费), /*SELECT DECODE(SUM(CF.车险个人客户保费),
0, 0,
0, 0,
ROUND((SUM(CF.车非融合保费) / SUM(CF.车险个人客户保费) * 100), ROUND((SUM(CF.车非融合保费) / SUM(CF.车险个人客户保费) * 100),
2)) 2))
INTO A_ATTACHING_RATE
FROM 坐席车非每日保费 CF
WHERE CF.月份 = L_THIS_MONTH
AND CF.年份 = L_THIS_YEAR
AND 部门代码 = A_DEPARTMENT_CODE;*/
SELECT dept.当月保费渗透率
INTO A_ATTACHING_RATE INTO A_ATTACHING_RATE
FROM 坐席车非每日保费 CF FROM desktop_archievement_admin.bi部门渗透率续保率统计表 dept
WHERE CF.月份 = L_THIS_MONTH WHERE dept.部门 = L_DEPARTMENT_NAME;
AND CF.年份 = L_THIS_YEAR
AND 部门代码 = A_DEPARTMENT_CODE;
--续保率 --续保率
SELECT DECODE(SUM(到期数), SELECT DECODE(SUM(到期数),
0, 0,