Compare commits

...

4 Commits

4 changed files with 63 additions and 2 deletions

View File

@ -15,6 +15,12 @@ CREATE OR REPLACE PACKAGE telsale_archievement_pkg IS
a_mensual_cur OUT cur_type a_mensual_cur OUT cur_type
); );
PROCEDURE caller_arch_ranking_list
(
a_department_code IN VARCHAR2,
a_chefei_ranking_list OUT cur_type
);
END telsale_archievement_pkg; END telsale_archievement_pkg;
/ /
CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS
@ -93,6 +99,30 @@ CREATE OR REPLACE PACKAGE BODY telsale_archievement_pkg IS
ORDER BY cf.Ô·Ý; ORDER BY cf.Ô·Ý;
END; END;
PROCEDURE caller_arch_ranking_list
(
a_department_code IN VARCHAR2,
a_chefei_ranking_list OUT cur_type
) IS
l_current_month VARCHAR2(10);
BEGIN
l_current_month := to_char(SYSDATE,
'mm') || '月';
OPEN a_chefei_ranking_list FOR
SELECT 坐席名称,
round(SUM(车非融合保费) / SUM(车险个人客户保费) * 100,
2) 车非渗透率
FROM 车非每日保费
WHERE 月份 = l_current_month
AND 部门代码 = a_department_code
GROUP BY 月份,
部门代码,
坐席名称
HAVING 月份 = '06月'
ORDER BY 车非渗透率 DESC;
END;
BEGIN BEGIN
NULL; NULL;
END telsale_archievement_pkg; END telsale_archievement_pkg;

View File

@ -39,3 +39,28 @@ SELECT
0) || '%' <EFBFBD> 0) || '%' <EFBFBD>
FROM <EFBFBD><EFBFBD> FROM <EFBFBD><EFBFBD>
GROUP BY ソ; GROUP BY ソ;
--
SELECT ,
,
,
SUM(),
SUM(),
round(SUM() / SUM() * 100,
2)
FROM
GROUP BY ,
,
HAVING = '06月'
ORDER BY ,
DESC;
SELECT ,
round(SUM() / SUM() * 100,
2)
FROM
WHERE = 'QDI'
AND = '06月'
GROUP BY
ORDER BY DESC;

View File

@ -8,6 +8,6 @@
* Copyright (c) ${2022} by Kane, All Rights Reserved. * Copyright (c) ${2022} by Kane, All Rights Reserved.
*/ */
// import { loginTestCaller } from "./requestTest.js"; import { testNewCitizen } from "./identify.js";
// loginTestCaller(); testNewCitizen();

View File

@ -78,4 +78,10 @@ public class ArchievementQueryController
return result; return result;
} }
@RequestMapping("/query_ranking_list.do")
public void queryCallerArchievementRankingList( )
{
}
} }