Compare commits

..

No commits in common. "2e02b9182d4bbb766bddb84970eff3a0c0bdc03f" and "372824ec5022492bf31b92a5d6e171f9aa89a5e1" have entirely different histories.

11 changed files with 256 additions and 812 deletions

View File

@ -1,309 +0,0 @@
CREATE OR REPLACE PACKAGE TELSALE_ARCHIEVEMENT_DEV_PKG IS
-- Author : WANGWEI-202
-- Created : 2023/3/10 15:13:34
-- Purpose : 桌面霸屏项目基础数据生成包
TYPE CUR_TYPE IS REF CURSOR;
-- 异常
DEPARTMENTCODE_EXCEPTION_CODE CONSTANT INTEGER := -20000;
DEPARTMENTCODE_EXCEPTION_MSG CONSTANT VARCHAR2(100) := '部门代码无效。';
CALLERCODE_EXCEPTION_CODE CONSTANT INTEGER := -20001;
CALLERCODE_EXCEPTION_MSG CONSTANT VARCHAR2(100) := '坐席工号无效。';
PROCEDURE DEPARTMENT_ARCHIEVEMENT
(
A_DEPARTMENT_CODE IN VARCHAR2,
A_ATTACHING_RATE OUT VARCHAR2,
A_ATTACHING_RATE_TARGET OUT VARCHAR2,
A_RENEWAL_RATE OUT VARCHAR2,
A_RENEWAL_RATE_TARGET OUT VARCHAR2,
A_TOTAL OUT INTEGER,
A_MENSUAL_CUR OUT CUR_TYPE
);
PROCEDURE CALLER_ARCHIEVEMENT
(
A_CALLER_CODE IN VARCHAR2,
A_ATTACHING_RATE OUT VARCHAR2,
A_RENEWAL_RATE OUT VARCHAR2,
A_TOTAL OUT INTEGER,
A_PRESENT_MONTH OUT NUMBER,
A_MENSUAL_CUR OUT CUR_TYPE
);
PROCEDURE CALLER_ARCH_RANKING_LIST
(
A_DEPARTMENT_CODE IN VARCHAR2,
A_YEAR IN VARCHAR2,
A_MONTH IN VARCHAR2,
A_ATTACHING_RANKING_LIST OUT CUR_TYPE,
A_RENEWAL_RANKING_LIST OUT CUR_TYPE
);
END TELSALE_ARCHIEVEMENT_DEV_PKG;
/
CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_DEV_PKG IS
-- 部门业绩
PROCEDURE DEPARTMENT_ARCHIEVEMENT
(
A_DEPARTMENT_CODE IN VARCHAR2,
A_ATTACHING_RATE OUT VARCHAR2,
A_ATTACHING_RATE_TARGET OUT VARCHAR2,
A_RENEWAL_RATE OUT VARCHAR2,
A_RENEWAL_RATE_TARGET OUT VARCHAR2,
A_TOTAL OUT INTEGER,
A_MENSUAL_CUR OUT CUR_TYPE
) IS
L_FIRSTDAY DATE;
L_DEPARTMENT_NAME VARCHAR2(100);
L_RENEWAL_RATE_TARGET NUMBER;
BEGIN
L_FIRSTDAY := TO_DATE(TO_CHAR(SYSDATE,
'yyyy') || '-01-01 00:00:00',
'yyyy-mm-dd hh24:mi:ss');
-- 获取部门名称
BEGIN
SELECT DEPARTMENT_NAME
INTO L_DEPARTMENT_NAME
FROM IDST0.BM_T BM
WHERE BM.DEPARTMENT_CODE = A_DEPARTMENT_CODE;
EXCEPTION
-- 如果没有找到部门名称,说明代码错误,抛出异常
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(DEPARTMENTCODE_EXCEPTION_CODE,
DEPARTMENTCODE_EXCEPTION_MSG);
END;
--车非渗透率&目标差距
BEGIN
SELECT ROUND(DEPT.当月保费渗透率,
2),
ROUND(DEPT.目标差距,
2)
INTO A_ATTACHING_RATE,
A_ATTACHING_RATE_TARGET
FROM DESKTOP_ARCHIEVEMENT_ADMIN.BI机构渗透率跟踪表 DEPT
WHERE DEPT.部门 = L_DEPARTMENT_NAME;
--解决round导致小数缺0的问题
SELECT DECODE(SUBSTR(A_ATTACHING_RATE_TARGET,
1,
1),
'.',
'0' || A_ATTACHING_RATE_TARGET,
A_ATTACHING_RATE_TARGET)
INTO A_ATTACHING_RATE_TARGET
FROM DUAL;
EXCEPTION
WHEN NO_DATA_FOUND THEN
A_ATTACHING_RATE := '0.0';
A_ATTACHING_RATE_TARGET := '0.0';
END;
--续保率&目标差距
BEGIN
SELECT ROUND(t."个车续保率(序时)(%)",
2),
ROUND(t."个车续保率(序时)(%)" - t."机构目标值1(%)",
2)
INTO A_RENEWAL_RATE,
A_RENEWAL_RATE_TARGET
FROM BI机构当月个车续保率跟踪表 T
WHERE T.责任部门 = L_DEPARTMENT_NAME;
--解决round导致小数缺0的问题
SELECT DECODE(SUBSTR(A_RENEWAL_RATE_TARGET,
1,
1),
'.',
'0' || A_RENEWAL_RATE_TARGET,
A_RENEWAL_RATE_TARGET)
INTO A_RENEWAL_RATE_TARGET
FROM DUAL;
EXCEPTION
WHEN NO_DATA_FOUND THEN
A_RENEWAL_RATE := '0.0';
A_RENEWAL_RATE_TARGET := '0.0';
END;
--总业绩
A_TOTAL := 0;
--每月业绩
OPEN A_MENSUAL_CUR FOR
SELECT CF.月份 MM,
ROUND(NVL(SUM(CF.车险个人客户保费 + CF.车非融合保费) / 10000,
0),
0) BF
FROM 坐席车非每日保费 CF
WHERE 部门代码 = A_DEPARTMENT_CODE
AND 签单日期 >= TO_DATE(TO_CHAR(SYSDATE,
'yyyy') || '-01-01 00:00:00',
'yyyy-mm-dd hh24:mi:ss')
AND 签单日期 < TO_DATE(TO_CHAR(SYSDATE,
'yyyy-mm') || '-01 00:00:00',
'yyyy-mm-dd hh24:mi:ss')
GROUP BY CF.月份
ORDER BY CF.月份;
END;
/*******************************************************/
-- 坐席业绩
PROCEDURE CALLER_ARCHIEVEMENT
(
A_CALLER_CODE IN VARCHAR2,
A_ATTACHING_RATE OUT VARCHAR2,
A_RENEWAL_RATE OUT VARCHAR2,
A_TOTAL OUT INTEGER,
A_PRESENT_MONTH OUT NUMBER,
A_MENSUAL_CUR OUT CUR_TYPE
) IS
L_CALLER_NAME VARCHAR2(100);
L_DEPARTMENT_NAME VARCHAR2(100);
L_THIS_YEAR VARCHAR2(4);
L_ROWNUM INTEGER;
BEGIN
--查询坐席名称,和部门名称,验证代码
BEGIN
SELECT ZX.人员姓名,
BM.DEPARTMENT_NAME
INTO L_CALLER_NAME,
L_DEPARTMENT_NAME
FROM TWR_TELSALER ZX,
TWR_TELSALER_TEAM T,
IDST0.BM_T BM
WHERE ZX.人员工号 = A_CALLER_CODE
AND ZX.团队名称 = T.TEAM_NAME
AND T.DEPARTMENT_CODE = BM.DEPARTMENT_CODE;
EXCEPTION
-- 如果没有查询到坐席名称,说明代码有误,抛出异常
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(CALLERCODE_EXCEPTION_CODE,
CALLERCODE_EXCEPTION_MSG);
END;
L_THIS_YEAR := TO_CHAR(SYSDATE,
'yyyy');
--总车险保费
SELECT ROUND(NVL(SUM(CF.车险个人客户保费),
0),
2) BF
INTO A_TOTAL
FROM 坐席车非每日保费 CF
WHERE CF.坐席名称 = L_CALLER_NAME
AND CF.部门 = L_DEPARTMENT_NAME
AND CF.年份 = L_THIS_YEAR;
--渗透率
BEGIN
SELECT ROWNUM,
ROUND(NVL(T.当月保费渗透率,
0),
2),
ROUND(NVL(t."车险保费(万)" * 10000,
0),
2)
INTO L_ROWNUM,
A_ATTACHING_RATE,
A_PRESENT_MONTH
FROM BI电销坐席车非渗透率跟踪表 T
WHERE T.经办 = L_CALLER_NAME
AND ROWNUM = 1;
EXCEPTION
WHEN NO_DATA_FOUND THEN
L_ROWNUM := 1;
A_ATTACHING_RATE := 0.0;
A_PRESENT_MONTH := 0.0;
END;
--续保率
BEGIN
SELECT ROWNUM,
ROUND(NVL(t."个车续保率(全月)(%)",
0),
2)
INTO L_ROWNUM,
A_RENEWAL_RATE
FROM BI电销坐席续保率跟踪表 T
WHERE T.责任人 = L_CALLER_NAME
AND ROWNUM = 1;
EXCEPTION
WHEN NO_DATA_FOUND THEN
L_ROWNUM := 1;
A_RENEWAL_RATE := 0.0;
END;
--每月业绩
OPEN A_MENSUAL_CUR FOR
SELECT CF.月份 MM,
ROUND(NVL(SUM(CF.车险个人客户保费),
0),
0) BF
FROM 坐席车非每日保费 CF
WHERE CF.坐席名称 = L_CALLER_NAME
AND CF.部门 = L_DEPARTMENT_NAME
AND 签单日期 >= TO_DATE(TO_CHAR(SYSDATE,
'yyyy') || '-01-01 00:00:00',
'yyyy-mm-dd hh24:mi:ss')
AND 签单日期 <= SYSDATE
GROUP BY CF.月份
ORDER BY CF.月份;
END;
/*******************************************************/
-- 坐席排行榜
PROCEDURE CALLER_ARCH_RANKING_LIST
(
A_DEPARTMENT_CODE IN VARCHAR2,
A_YEAR IN VARCHAR2,
A_MONTH IN VARCHAR2,
A_ATTACHING_RANKING_LIST OUT CUR_TYPE,
A_RENEWAL_RANKING_LIST OUT CUR_TYPE
) IS
L_DEPARTMENT_NAME VARCHAR2(100);
BEGIN
-- 获取部门名称
BEGIN
SELECT DEPARTMENT_NAME
INTO L_DEPARTMENT_NAME
FROM IDST0.BM_T BM
WHERE BM.DEPARTMENT_CODE = A_DEPARTMENT_CODE;
EXCEPTION
-- 如果没有找到部门名称,说明代码错误,抛出异常
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(DEPARTMENTCODE_EXCEPTION_CODE,
DEPARTMENTCODE_EXCEPTION_MSG);
END;
-- 车非融合率排行榜
OPEN A_ATTACHING_RANKING_LIST FOR
SELECT ROWNUM,
PAIHANG.经办 AS CALLER_NAME,
PAIHANG.XBL AS ATTACHING_RATE
FROM (SELECT T.经办,
ROUND(T.当月保费渗透率,
2) XBL
FROM BI电销坐席车非渗透率跟踪表 T
WHERE T.部门 = L_DEPARTMENT_NAME
ORDER BY T.当月保费渗透率 DESC) PAIHANG;
-- 续保率排行榜
OPEN A_RENEWAL_RANKING_LIST FOR
SELECT ROWNUM,
PAIHANG.责任人 AS CALLER_NAME,
PAIHANG.XBL AS RENEWAL_RATE
FROM (SELECT T.责任人,
ROUND(t."个车续保率(全月)(%)",
2) XBL
FROM BI电销坐席续保率跟踪表 T
WHERE T.责任部门 = L_DEPARTMENT_NAME
ORDER BY XBL DESC) PAIHANG;
END;
BEGIN
NULL;
END TELSALE_ARCHIEVEMENT_DEV_PKG;
/

View File

@ -1,4 +1,4 @@
CREATE OR REPLACE PACKAGE telsale_archievement_dev_pkg IS
CREATE OR REPLACE PACKAGE telsale_archievement_pkg IS
-- Author : WANGWEI-202
-- Created : 2023/3/10 15:13:34
@ -32,6 +32,16 @@ CREATE OR REPLACE PACKAGE telsale_archievement_dev_pkg IS
a_mensual_cur OUT cur_type
);
PROCEDURE caller_archievement2
(
a_caller_code IN VARCHAR2,
a_attaching_rate OUT VARCHAR2,
a_renewal_rate OUT VARCHAR2,
a_total OUT INTEGER,
a_present_month OUT NUMBER,
a_mensual_cur OUT cur_type
);
PROCEDURE caller_arch_ranking_list
(
a_department_code IN VARCHAR2,
@ -43,7 +53,7 @@ CREATE OR REPLACE PACKAGE telsale_archievement_dev_pkg IS
END telsale_archievement_pkg;
/
CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_dev_PKG IS
CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS
-- 部门业绩
PROCEDURE DEPARTMENT_ARCHIEVEMENT
(
@ -248,6 +258,104 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_dev_PKG IS
ORDER BY CF.月份;
END;
PROCEDURE caller_archievement2
(
a_caller_code IN VARCHAR2,
a_attaching_rate OUT VARCHAR2,
a_renewal_rate OUT VARCHAR2,
a_total OUT INTEGER,
a_present_month OUT NUMBER,
a_mensual_cur OUT cur_type
) IS
l_caller_name VARCHAR2(100);
l_department_name VARCHAR2(100);
--l_this_month VARCHAR2(4);
l_this_year VARCHAR2(4);
--l_firstday DATE;
l_rownum INTEGER;
BEGIN
--查询坐席名称,和部门名称,验证代码
BEGIN
SELECT zx.saler_name,
bm.department_name
INTO l_caller_name,
l_department_name
FROM tele_saler zx,
tele_saler_team team,
idst0.bm_t bm
WHERE zx.saler_code = a_caller_code
AND zx.team_code = team.team_code
AND team.department_code = bm.department_code;
/* SELECT saler_name
INTO l_caller_name
FROM tele_saler
WHERE saler_code = a_caller_code;*/
EXCEPTION
-- 如果没有查询到坐席名称,说明代码有误,抛出异常
WHEN no_data_found THEN
raise_application_error(CALLERCODE_EXCEPTION_CODE,
CALLERCODE_EXCEPTION_MSG);
END;
--l_this_month := to_char(SYSDATE,
-- 'mm');
l_this_year := to_char(SYSDATE,
'yyyy');
--l_firstday := to_date(l_this_year || '-01-01 00:00:00',
-- 'yyyy-mm-dd hh24:mi:ss');
--总车险保费
SELECT round(nvl(SUM(cf.车险个人客户保费),
0),
2) bf
INTO a_total
FROM 坐席车非每日保费 cf
WHERE cf.坐席名称 = l_caller_name
AND cf.部门 = l_department_name
AND cf.年份 = l_this_year;
--渗透率
SELECT rownum,
round(nvl(t.当月保费渗透率,
0),
2),
round(nvl(t."车险保费(万)" * 10000,
0),
2)
INTO l_rownum,
a_attaching_rate,
a_present_month
FROM BI电销坐席车非渗透率跟踪表 t
WHERE t.经办 = l_caller_name
AND rownum = 1;
--续保率
SELECT rownum,
round(nvl(t."个车续保率(全月)(%)",
0),
2)
INTO l_rownum,
a_renewal_rate
FROM BI电销坐席续保率跟踪表 t
WHERE t.责任人 = l_caller_name
AND rownum = 1;
--每月业绩
OPEN A_MENSUAL_CUR FOR
SELECT CF.月份 MM,
ROUND(NVL(SUM(CF.车险个人客户保费),
0),
0) BF
FROM 坐席车非每日保费 CF
WHERE cf.坐席名称 = l_caller_name
AND cf.部门 = l_department_name
AND 签单日期 >= TO_DATE(TO_CHAR(SYSDATE,
'yyyy') || '-01-01 00:00:00',
'yyyy-mm-dd hh24:mi:ss')
AND 签单日期 <= SYSDATE
GROUP BY CF.月份
ORDER BY CF.月份;
END;
/*******************************************************/
-- 坐席排行榜
PROCEDURE CALLER_ARCH_RANKING_LIST

View File

@ -10,11 +10,11 @@
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"echarts": "^5.4.3",
"element-plus": "^2.4.4",
"element-plus": "^2.4.3",
"mitt": "^3.0.1",
"moment": "^2.29.4",
"sass-loader": "^13.3.2",
"vue": "^3.3.12",
"vue": "^3.3.11",
"vue-router": "^4.2.5",
"vuex": "^4.1.0"
},
@ -28,7 +28,7 @@
"axios": "^1.6.2",
"babel": "^6.23.0",
"eslint-config-recommended": "^4.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-config-standard-with-typescript": "^42.0.0",
"eslint-plugin-vue": "^9.19.2",
"node-sass": "^9.0.0",
"sass": "^1.69.5",
@ -2318,36 +2318,36 @@
"dev": true
},
"node_modules/@vue/compiler-core": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.3.12.tgz",
"integrity": "sha512-qAtjyG3GBLG0chzp5xGCyRLLe6wFCHmjI82aGzwuGKyznNP+GJJMxjc0wOYWDB2YKfho7niJFdoFpo0CZZQg9w==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.3.11.tgz",
"integrity": "sha512-h97/TGWBilnLuRaj58sxNrsUU66fwdRKLOLQ9N/5iNDfp+DZhYH9Obhe0bXxhedl8fjAgpRANpiZfbgWyruQ0w==",
"dependencies": {
"@babel/parser": "^7.23.5",
"@vue/shared": "3.3.12",
"@vue/shared": "3.3.11",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
}
},
"node_modules/@vue/compiler-dom": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.3.12.tgz",
"integrity": "sha512-RdJU9oEYaoPKUdGXCy0l+i4clesdDeLmbvRlszoc9iagsnBnMmQtYfCPVQ5BHB6o7K4SCucDdJM2Dh3oXB0D6g==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.3.11.tgz",
"integrity": "sha512-zoAiUIqSKqAJ81WhfPXYmFGwDRuO+loqLxvXmfUdR5fOitPoUiIeFI9cTTyv9MU5O1+ZZglJVTusWzy+wfk5hw==",
"dependencies": {
"@vue/compiler-core": "3.3.12",
"@vue/shared": "3.3.12"
"@vue/compiler-core": "3.3.11",
"@vue/shared": "3.3.11"
}
},
"node_modules/@vue/compiler-sfc": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.3.12.tgz",
"integrity": "sha512-yy5b9e7b79dsGbMmglCe/YnhCQgBkHO7Uf6JfjWPSf2/5XH+MKn18LhzhHyxbHdJgnA4lZCqtXzLaJz8Pd8lMw==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.3.11.tgz",
"integrity": "sha512-U4iqPlHO0KQeK1mrsxCN0vZzw43/lL8POxgpzcJweopmqtoYy9nljJzWDIQS3EfjiYhfdtdk9Gtgz7MRXnz3GA==",
"dependencies": {
"@babel/parser": "^7.23.5",
"@vue/compiler-core": "3.3.12",
"@vue/compiler-dom": "3.3.12",
"@vue/compiler-ssr": "3.3.12",
"@vue/reactivity-transform": "3.3.12",
"@vue/shared": "3.3.12",
"@vue/compiler-core": "3.3.11",
"@vue/compiler-dom": "3.3.11",
"@vue/compiler-ssr": "3.3.11",
"@vue/reactivity-transform": "3.3.11",
"@vue/shared": "3.3.11",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.5",
"postcss": "^8.4.32",
@ -2355,12 +2355,12 @@
}
},
"node_modules/@vue/compiler-ssr": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.3.12.tgz",
"integrity": "sha512-adCiMJPznfWcQyk/9HSuXGja859IaMV+b8UNSVzDatqv7h0PvT9BEeS22+gjkWofDiSg5d78/ZLls3sLA+cn3A==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.3.11.tgz",
"integrity": "sha512-Zd66ZwMvndxRTgVPdo+muV4Rv9n9DwQ4SSgWWKWkPFebHQfVYRrVjeygmmDmPewsHyznCNvJ2P2d6iOOhdv8Qg==",
"dependencies": {
"@vue/compiler-dom": "3.3.12",
"@vue/shared": "3.3.12"
"@vue/compiler-dom": "3.3.11",
"@vue/shared": "3.3.11"
}
},
"node_modules/@vue/component-compiler-utils": {
@ -2459,60 +2459,60 @@
}
},
"node_modules/@vue/reactivity": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.3.12.tgz",
"integrity": "sha512-vOJORzO8DlIx88cgTnMLIf2GlLYpoXAKsuoQsK6SGdaqODjxO129pVPTd2s/N/Mb6KKZEFIHIEwWGmtN4YPs+g==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.3.11.tgz",
"integrity": "sha512-D5tcw091f0nuu+hXq5XANofD0OXnBmaRqMYl5B3fCR+mX+cXJIGNw/VNawBqkjLNWETrFW0i+xH9NvDbTPVh7g==",
"dependencies": {
"@vue/shared": "3.3.12"
"@vue/shared": "3.3.11"
}
},
"node_modules/@vue/reactivity-transform": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/reactivity-transform/-/reactivity-transform-3.3.12.tgz",
"integrity": "sha512-g5TijmML7FyKkLt6QnpqNmA4KD7K/T5SbXa88Bhq+hydNQEkzA8veVXWAQuNqg9rjaFYD0rPf0a9NofKA0ENgg==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/reactivity-transform/-/reactivity-transform-3.3.11.tgz",
"integrity": "sha512-fPGjH0wqJo68A0wQ1k158utDq/cRyZNlFoxGwNScE28aUFOKFEnCBsvyD8jHn+0kd0UKVpuGuaZEQ6r9FJRqCg==",
"dependencies": {
"@babel/parser": "^7.23.5",
"@vue/compiler-core": "3.3.12",
"@vue/shared": "3.3.12",
"@vue/compiler-core": "3.3.11",
"@vue/shared": "3.3.11",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.5"
}
},
"node_modules/@vue/runtime-core": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.3.12.tgz",
"integrity": "sha512-5iL4w7MZrSGKEZU2wFAYhDZdZmgn+s//73EfgDXW1M+ZUOl36md7tlWp1QFK/ladiq4FvQ82shVjo0KiPDPr0A==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.3.11.tgz",
"integrity": "sha512-g9ztHGwEbS5RyWaOpXuyIVFTschclnwhqEbdy5AwGhYOgc7m/q3NFwr50MirZwTTzX55JY8pSkeib9BX04NIpw==",
"dependencies": {
"@vue/reactivity": "3.3.12",
"@vue/shared": "3.3.12"
"@vue/reactivity": "3.3.11",
"@vue/shared": "3.3.11"
}
},
"node_modules/@vue/runtime-dom": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.3.12.tgz",
"integrity": "sha512-8mMzqiIdl+IYa/OXwKwk6/4ebLq7cYV1pUcwCSwBK2KerUa6cwGosen5xrCL9f8o2DJ9TfPFwbPEvH7OXzUpoA==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.3.11.tgz",
"integrity": "sha512-OlhtV1PVpbgk+I2zl+Y5rQtDNcCDs12rsRg71XwaA2/Rbllw6mBLMi57VOn8G0AjOJ4Mdb4k56V37+g8ukShpQ==",
"dependencies": {
"@vue/runtime-core": "3.3.12",
"@vue/shared": "3.3.12",
"csstype": "^3.1.3"
"@vue/runtime-core": "3.3.11",
"@vue/shared": "3.3.11",
"csstype": "^3.1.2"
}
},
"node_modules/@vue/server-renderer": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.3.12.tgz",
"integrity": "sha512-OZ0IEK5TU5GXb5J8/wSplyxvGGdIcwEmS8EIO302Vz8K6fGSgSJTU54X0Sb6PaefzZdiN3vHsLXO8XIeF8crQQ==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.3.11.tgz",
"integrity": "sha512-AIWk0VwwxCAm4wqtJyxBylRTXSy1wCLOKbWxHaHiu14wjsNYtiRCSgVuqEPVuDpErOlRdNnuRgipQfXRLjLN5A==",
"dependencies": {
"@vue/compiler-ssr": "3.3.12",
"@vue/shared": "3.3.12"
"@vue/compiler-ssr": "3.3.11",
"@vue/shared": "3.3.11"
},
"peerDependencies": {
"vue": "3.3.12"
"vue": "3.3.11"
}
},
"node_modules/@vue/shared": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.12.tgz",
"integrity": "sha512-6p0Yin0pclvnER7BLNOQuod9Z+cxSYh8pSh7CzHnWNjAIP6zrTlCdHRvSCb1aYEx6i3Q3kvfuWU7nG16CgG1ag=="
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.11.tgz",
"integrity": "sha512-u2G8ZQ9IhMWTMXaWqZycnK4UthG1fA238CD+DP4Dm4WJi5hdUKKLg0RMRaRpDPNMdkTwIDkp7WtD0Rd9BH9fLw=="
},
"node_modules/@vue/vue-loader-v15": {
"name": "vue-loader",
@ -4962,9 +4962,9 @@
"integrity": "sha512-UdREXMXzLkREF4jA8t89FQjA8WHI6ssP38PMY4/4KhXFQbtImnghh4GkCgrtiZwLKUKVD2iTVXvDVQjfomEQuA=="
},
"node_modules/element-plus": {
"version": "2.4.4",
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.4.4.tgz",
"integrity": "sha512-TlKubXJgxwhER0dw+8ULn9hr9kZjraV4R6Q/eidwWUwCKxwXYPBGmMKsZ/85tlxlhMYbcLZd/YZh6G3QkHX4fg==",
"version": "2.4.3",
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.4.3.tgz",
"integrity": "sha512-b3q26j+lM4SBqiyzw8HybybGnP2pk4MWgrnzzzYW5qKQUgV6EG1Zg7nMCfgCVccI8tNvZoTiUHb2mFaiB9qT8w==",
"dependencies": {
"@ctrl/tinycolor": "^3.4.1",
"@element-plus/icons-vue": "^2.3.1",
@ -6777,9 +6777,9 @@
}
},
"node_modules/eslint-config-standard-with-typescript": {
"version": "43.0.0",
"resolved": "https://registry.npmmirror.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-43.0.0.tgz",
"integrity": "sha512-AT0qK01M5bmsWiE3UZvaQO5da1y1n6uQckAKqGNe6zPW5IOzgMLXZxw77nnFm+C11nxAZXsCPrbsgJhSrGfX6Q==",
"version": "42.0.0",
"resolved": "https://registry.npmmirror.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-42.0.0.tgz",
"integrity": "sha512-m1/2g/Sicun1uFZOFigJVeOqo9fE7OkMsNtilcpHwdCdcGr21qsGqYiyxYSvvHfJwY7w5OTQH0hxk8sM2N5Ohg==",
"dev": true,
"dependencies": {
"@typescript-eslint/parser": "^6.4.0",
@ -14412,15 +14412,15 @@
}
},
"node_modules/vue": {
"version": "3.3.12",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.3.12.tgz",
"integrity": "sha512-jYNv2QmET2OTHsFzfWHMnqgCfqL4zfo97QwofdET+GBRCHhSCHuMTTvNIgeSn0/xF3JRT5OGah6MDwUFN7MPlg==",
"version": "3.3.11",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.3.11.tgz",
"integrity": "sha512-d4oBctG92CRO1cQfVBZp6WJAs0n8AK4Xf5fNjQCBeKCvMI1efGQ5E3Alt1slFJS9fZuPcFoiAiqFvQlv1X7t/w==",
"dependencies": {
"@vue/compiler-dom": "3.3.12",
"@vue/compiler-sfc": "3.3.12",
"@vue/runtime-dom": "3.3.12",
"@vue/server-renderer": "3.3.12",
"@vue/shared": "3.3.12"
"@vue/compiler-dom": "3.3.11",
"@vue/compiler-sfc": "3.3.11",
"@vue/runtime-dom": "3.3.11",
"@vue/server-renderer": "3.3.11",
"@vue/shared": "3.3.11"
},
"peerDependencies": {
"typescript": "*"

View File

@ -15,7 +15,7 @@
"mitt": "^3.0.1",
"moment": "^2.29.4",
"sass-loader": "^13.3.2",
"vue": "^3.3.12",
"vue": "^3.3.11",
"vue-router": "^4.2.5",
"vuex": "^4.1.0"
},
@ -29,7 +29,7 @@
"axios": "^1.6.2",
"babel": "^6.23.0",
"eslint-config-recommended": "^4.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-config-standard-with-typescript": "^42.0.0",
"eslint-plugin-vue": "^9.19.2",
"node-sass": "^9.0.0",
"sass": "^1.69.5",

View File

@ -12,18 +12,18 @@
<el-progress
type="circle"
:percentage="ui.percentage"
:status="ui.warningLevel"
status="success"
>
<template #default>
<span class="percentage-label">{{ ui.indicator }}</span>
<span :class="warningLevelClass">{{ percentage }}%</span>
<span class="percentage-value">{{ percentage }}%</span>
</template>
</el-progress>
</div>
</template>
<script lang="ts">
import { reactive, computed } from "vue";
import { reactive } from "vue";
export default {
name: "ArchievementCompleteRateComponent",
props: {
@ -36,42 +36,17 @@ export default {
type: String,
default: "",
},
warningLevel: { //
type: String,
default: "success",
},
},
setup( props )
{
const percentage = Number( props.percentage ).valueOf();
const warningLevelClass = computed((): string =>
{
let textClass = "";
if ( props.warningLevel === "success" )
{
textClass = "percentage-value";
}
else if ( props.warningLevel === "warning" )
{
textClass = "percentage-value-warning";
}
else if ( props.warningLevel === "exception" )
{
textClass = "percentage-value-exception";
}
return textClass;
});
const ui = reactive({
percentage,
indicator: props.indicator,
warningLevel: props.warningLevel,
});
return { ui, warningLevelClass, };
return { ui, };
},
};
</script>
@ -99,20 +74,6 @@ export default {
font-size: 28px;
}
.percentage-value-warning {
display: block;
margin-top: 10px;
font-size: 28px;
color: orange;
}
.percentage-value-exception {
display: block;
margin-top: 10px;
font-size: 28px;
color: red;
}
.percentage-label {
display: block;
margin-top: 10px;

View File

@ -20,9 +20,7 @@ interface DepartmentArchievement // 定义业绩对象的结构
total_archievement: number;
mensual_archievement_list: number[];
insurance_renewal_rate: string;
insurance_renewal_rate_target: string;
attaching_rate: string;
attaching_rate_target: string;
leading_reward_gainers: string[];
advance_reward_gainers: string[];
backward_list: string[];
@ -59,9 +57,7 @@ function queryDepartmentArchievement( departmentInfo: Department, render: any ):
total_archievement: 0,
mensual_archievement_list: [],
insurance_renewal_rate: "",
insurance_renewal_rate_target: "",
attaching_rate: "",
attaching_rate_target: "",
leading_reward_gainers: [],
advance_reward_gainers: [],
backward_list: [],
@ -82,9 +78,7 @@ function queryDepartmentArchievement( departmentInfo: Department, render: any ):
archievement.total_archievement = data.total_archievement;
archievement.mensual_archievement_list = [];
archievement.insurance_renewal_rate = data.insurance_renewal_rate ?? "0.0";
archievement.insurance_renewal_rate_target = data.insurance_renewal_rate_target ?? "0.0";
archievement.attaching_rate = data.attaching_rate ?? "0.0";
archievement.attaching_rate_target = data.attaching_rate_target ?? "0.0";
archievement.leading_reward_gainers = data.leading_reward_gainers ?? [];
archievement.advance_reward_gainers = data.advance_reward_gainers ?? [];
archievement.backward_list = data.backward_list ?? [];

View File

@ -25,12 +25,10 @@
<ArchievementCompleteRateComponent
indicator="续保完成率"
:percentage="ui.insurance_renewal_rate"
:warning-level="renewalRateWarningLevel(ui.insurance_renewal_rate_target)"
/>
<ArchievementCompleteRateComponent
indicator="车非渗透率"
:percentage="ui.attaching_rate"
:warning-level="attachingRateWarningLevel(ui.attaching_rate_target)"
/>
</div>
<div class="total-archievement-charts-wrapper">
@ -105,9 +103,7 @@ interface ui
chartData: number[];
totalArchievement: number;
attaching_rate: string;
attaching_rate_target: string;
insurance_renewal_rate: string; //
insurance_renewal_rate_target: string; //
leading_reward_gainers: string[]; //
advance_reward_gainers: string[]; //
dishonorPersons: string[];
@ -157,9 +153,7 @@ export default {
chartData: [0,], //
totalArchievement: 0, //
attaching_rate: "", //
attaching_rate_target: "", //
insurance_renewal_rate: "", //
insurance_renewal_rate_target: "", //
leading_reward_gainers: ["",], //
advance_reward_gainers: ["",], //
dishonorPersons: ["",],
@ -207,9 +201,7 @@ export default {
// ui.chartData = data.mensual_archievement_list;
// ui.totalArchievement = data.total_archievement;
ui.attaching_rate = data.attaching_rate;
ui.attaching_rate_target = data.attaching_rate_target;
ui.insurance_renewal_rate = data.insurance_renewal_rate;
ui.insurance_renewal_rate_target = data.insurance_renewal_rate_target;
ui.leading_reward_gainers = data.leading_reward_gainers;
ui.advance_reward_gainers = data.advance_reward_gainers;
ui.dishonorPersons = data.backward_list;
@ -339,52 +331,6 @@ export default {
clearInterval( timerHandler );
});
const attachingRateWarningLevel = ( attachingRateTarget: string ): string =>
{
const value: number = Number( attachingRateTarget );
let warningLevel = "";
console.log( "渗透率目标差值", attachingRateTarget, value );
if ( value >= 0.0 )
{
warningLevel = "success";
}
else if ( value > -0.5 && value < 0.0 )
{
warningLevel = "warning";
}
else if ( value <= -0.5 )
{
warningLevel = "exception";
}
return warningLevel;
};
const renewalRateWarningLevel = ( attachingRateTarget: string ): string =>
{
const value: number = Number( attachingRateTarget );
let warningLevel = "";
console.log( "续保率目标差值", attachingRateTarget, value );
if ( value >= 0.0 )
{
warningLevel = "success";
}
else if ( value >= -3 && value < 0.0 )
{
warningLevel = "warning";
}
else if ( value <= -3 )
{
warningLevel = "exception";
}
return warningLevel;
};
return {
ui,
callerInfo,
@ -393,8 +339,6 @@ export default {
renderData: applyDepartmentArchievementData,
refresh,
logoutDesktopArchievement,
attachingRateWarningLevel,
renewalRateWarningLevel,
};
},
};

View File

@ -25,6 +25,36 @@ public class DepartmentArchievement
// log4j2
private static Logger logger = LoggerFactory.getLogger(DepartmentArchievement.class);
/**
* 默认的构造函数提供给json使用
*/
public DepartmentArchievement()
{
this.totalArchievement = 0;
this.mensualArchievementList = null;
this.insuranceRenewalRate = "";
this.attachingRate = "";
this.departmentCode = "";
}
/**
* @brief 构造函数提供所有成员对象的值
* @param departmentCode 部门代码
* @param totalArchievement 总业绩
* @param mensualArchievementList 每月业绩表
* @param insuranceRenewalRate 续保率
* @param attachingRate 车非渗透率
*/
public DepartmentArchievement( String departmentCode, long totalArchievement,
ArrayList<MensualArchievementItem> mensualArchievementList, String insuranceRenewalRate, String attachingRate)
{
this.departmentCode = departmentCode;
this.totalArchievement = totalArchievement;
this.mensualArchievementList = mensualArchievementList;
this.insuranceRenewalRate = insuranceRenewalRate;
this.attachingRate = attachingRate;
}
/**
* 静态方法用于根据部门代码查询部门业绩生成一个 DepartmentArchievement 对象
* @param departmentCode 部门代码
@ -52,17 +82,15 @@ public class DepartmentArchievement
Integer totalArchievement = (Integer)params.get("a_total");
String attachingRate = (String)params.get("a_attaching_rate");
String attachingRateTarget = (String)params.get("a_attaching_rate_target");
String renewalRate = (String)params.get("a_renewal_rate");
String renewalRateTarget = (String)params.get("a_renewal_rate_target");
ArrayList<MensualArchievementItem> mensual = (ArrayList<MensualArchievementItem>)params.get("a_mensual_cur");
archievement = new DepartmentArchievement(
departmentCode,
totalArchievement.intValue(),
mensual,
renewalRate, renewalRateTarget,
attachingRate, attachingRateTarget);
renewalRate,
attachingRate);
}
catch ( IOException error )
{
@ -76,67 +104,6 @@ public class DepartmentArchievement
return archievement;
}
@JsonProperty( "department_code" )
private String departmentCode;
@JsonProperty( "total_archievement" )
private long totalArchievement; // 总业绩
// 每月业绩列表
// 要保证数据是按照月份排序
@JsonProperty( "mensual_archievement_list" )
private ArrayList<MensualArchievementItem> mensualArchievementList;
@JsonProperty( "insurance_renewal_rate" )
private String insuranceRenewalRate; // 续保率
@JsonProperty( "insurance_renewal_rate_target" )
private String insuranceRenewalRateTarget; // 续保率目标值
@JsonProperty( "attaching_rate" )
private String attachingRate; // 车非渗透率
@JsonProperty( "attaching_rate_target" )
private String attachingRateTarget; // 车非渗透率目标值
/**
* 默认的构造函数提供给json使用
*/
public DepartmentArchievement()
{
this.totalArchievement = 0;
this.mensualArchievementList = null;
this.insuranceRenewalRate = "";
this.attachingRate = "";
this.insuranceRenewalRateTarget = "";
this.attachingRateTarget = "";
this.departmentCode = "";
}
/**
* @brief 构造函数提供所有成员对象的值
* @param departmentCode 部门代码
* @param totalArchievement 总业绩
* @param mensualArchievementList 每月业绩表
* @param insuranceRenewalRate 续保率
* @param insuranceRenewalRateTarget 续保率目标值
* @param attachingRate 车非渗透率
* @param attachingRateTarget 车非渗透率目标值
*/
public DepartmentArchievement( String departmentCode, long totalArchievement,
ArrayList<MensualArchievementItem> mensualArchievementList, String insuranceRenewalRate,
String insuranceRenewalRateTarget, String attachingRate, String attachingRateTarget )
{
this.departmentCode = departmentCode;
this.totalArchievement = totalArchievement;
this.mensualArchievementList = mensualArchievementList;
this.insuranceRenewalRate = insuranceRenewalRate;
this.insuranceRenewalRateTarget = insuranceRenewalRateTarget;
this.attachingRate = attachingRate;
this.attachingRateTarget = attachingRateTarget;
}
public long getTotalArchievement()
{
return totalArchievement;
@ -172,117 +139,11 @@ public class DepartmentArchievement
return attachingRate;
}
@Override
public String toString()
{
return "DepartmentArchievement [departmentCode=" + departmentCode + ", totalArchievement="
+ totalArchievement + ", mensualArchievementList=" + mensualArchievementList
+ ", insuranceRenewalRate=" + insuranceRenewalRate + ", insuranceRenewalRateTarget="
+ insuranceRenewalRateTarget + ", attachingRate=" + attachingRate
+ ", attachingRateTarget=" + attachingRateTarget + "]";
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((departmentCode == null) ? 0 : departmentCode.hashCode());
result = prime * result + (int) (totalArchievement ^ (totalArchievement >>> 32));
result = prime * result
+ ((mensualArchievementList == null) ? 0 : mensualArchievementList.hashCode());
result = prime * result
+ ((insuranceRenewalRate == null) ? 0 : insuranceRenewalRate.hashCode());
result = prime * result + ((insuranceRenewalRateTarget == null) ? 0
: insuranceRenewalRateTarget.hashCode());
result = prime * result + ((attachingRate == null) ? 0 : attachingRate.hashCode());
result = prime * result
+ ((attachingRateTarget == null) ? 0 : attachingRateTarget.hashCode());
return result;
}
@Override
public boolean equals( Object obj )
{
if ( this == obj )
return true;
if ( obj == null )
return false;
if ( getClass() != obj.getClass() )
return false;
DepartmentArchievement other = (DepartmentArchievement) obj;
if ( departmentCode == null )
{
if ( other.departmentCode != null )
return false;
}
else if ( !departmentCode.equals( other.departmentCode ) )
return false;
if ( totalArchievement != other.totalArchievement )
return false;
if ( mensualArchievementList == null )
{
if ( other.mensualArchievementList != null )
return false;
}
else if ( !mensualArchievementList.equals( other.mensualArchievementList ) )
return false;
if ( insuranceRenewalRate == null )
{
if ( other.insuranceRenewalRate != null )
return false;
}
else if ( !insuranceRenewalRate.equals( other.insuranceRenewalRate ) )
return false;
if ( insuranceRenewalRateTarget == null )
{
if ( other.insuranceRenewalRateTarget != null )
return false;
}
else if ( !insuranceRenewalRateTarget.equals( other.insuranceRenewalRateTarget ) )
return false;
if ( attachingRate == null )
{
if ( other.attachingRate != null )
return false;
}
else if ( !attachingRate.equals( other.attachingRate ) )
return false;
if ( attachingRateTarget == null )
{
if ( other.attachingRateTarget != null )
return false;
}
else if ( !attachingRateTarget.equals( other.attachingRateTarget ) )
return false;
return true;
}
public void setAttachingRate( String attachingRate )
{
this.attachingRate = attachingRate;
}
public String getInsuranceRenewalRateTarget()
{
return insuranceRenewalRateTarget;
}
public void setInsuranceRenewalRateTarget( String insuranceRenewalRateTarget )
{
this.insuranceRenewalRateTarget = insuranceRenewalRateTarget;
}
public String getAttachingRateTarget()
{
return attachingRateTarget;
}
public void setAttachingRateTarget( String attachingRateTarget )
{
this.attachingRateTarget = attachingRateTarget;
}
public String getDepartmentCode()
{
return departmentCode;
@ -292,4 +153,21 @@ public class DepartmentArchievement
{
this.departmentCode = departmentCode;
}
@JsonProperty( "department_code" )
private String departmentCode;
@JsonProperty( "total_archievement" )
private long totalArchievement; // 总业绩
// 每月业绩列表
// 要保证数据是按照月份排序
@JsonProperty( "mensual_archievement_list" )
private ArrayList<MensualArchievementItem> mensualArchievementList;
@JsonProperty( "insurance_renewal_rate" )
private String insuranceRenewalRate; // 续保率
@JsonProperty( "attaching_rate" )
private String attachingRate; // 车非渗透率
}

View File

@ -70,10 +70,11 @@ public class ArchievementQueryController
result.setTotalArchievement( departmentArch.getTotalArchievement() );
result.setInsuranceRenewalRate( departmentArch.getInsuranceRenewalRate() );
result.setInsuranceRenewalRateTarget( departmentArch.getInsuranceRenewalRateTarget() );
result.setAttachingRate( departmentArch.getAttachingRate() );
result.setAttachingRateTarget( departmentArch.getAttachingRateTarget() );
// result.addAdvanceRewardGainer( "沈群" );
// result.addLeadingRewardGainer( "王鸿津" );
// result.addLeadingRewardGainer( "林宗泽" );
// result.addBackwardStaff( "王炜" );
result.setMensualArchievementList( departmentArch.getMensualArchievementList() );
}
catch ( IOException error )

View File

@ -7,6 +7,7 @@
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
package com.cpic.xim.web.controllers.archievement.department;
import java.util.ArrayList;
@ -22,35 +23,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
*/
public class DepartmentArchievementQueryResult extends QueryResponse
{
@JsonProperty( "total_archievement" )
private long totalArchievement; // 总业绩
// 每月业绩列表
// 要保证数据是按照月份排序
@JsonProperty( "mensual_archievement_list" )
private ArrayList<MensualArchievementItem> mensualArchievementList;
@JsonProperty( "insurance_renewal_rate" )
private String insuranceRenewalRate; // 续保率
@JsonProperty( "insurance_renewal_rate_target" )
private String insuranceRenewalRateTarget; // 续保率目标值
@JsonProperty( "attaching_rate" )
private String attachingRate; // 车非渗透率
@JsonProperty( "attaching_rate_target" )
private String attachingRateTarget; // 车非渗透率目标值
@JsonProperty( "leading_reward_gainers" )
private Vector<String> leadingRewardGainers; // 领跑奖
@JsonProperty( "advance_reward_gainers" )
private Vector<String> advanceRewardGainers; // 飞跃奖
@JsonProperty( "backward_list" )
private Vector<String> backwardList; // 消七灭六坐席
public DepartmentArchievementQueryResult()
{
mensualArchievementList = new ArrayList<MensualArchievementItem>();
@ -145,129 +117,26 @@ public class DepartmentArchievementQueryResult extends QueryResponse
this.backwardList = backwardList;
}
public String getInsuranceRenewalRateTarget()
{
return insuranceRenewalRateTarget;
}
@JsonProperty( "total_archievement" )
private long totalArchievement; // 总业绩
public void setInsuranceRenewalRateTarget( String insuranceRenewalRateTarget )
{
this.insuranceRenewalRateTarget = insuranceRenewalRateTarget;
}
// 每月业绩列表
// 要保证数据是按照月份排序
@JsonProperty( "mensual_archievement_list" )
private ArrayList<MensualArchievementItem> mensualArchievementList;
public String getAttachingRateTarget()
{
return attachingRateTarget;
}
@JsonProperty( "insurance_renewal_rate" )
private String insuranceRenewalRate; // 续保率
public void setAttachingRateTarget( String attachingRateTarget )
{
this.attachingRateTarget = attachingRateTarget;
}
@JsonProperty( "attaching_rate" )
private String attachingRate; // 车非渗透率
@Override
public String toString()
{
return "DepartmentArchievementQueryResult [totalArchievement=" + totalArchievement
+ ", mensualArchievementList=" + mensualArchievementList + ", insuranceRenewalRate="
+ insuranceRenewalRate + ", insuranceRenewalRateTarget="
+ insuranceRenewalRateTarget + ", attachingRate=" + attachingRate
+ ", attachingRateTarget=" + attachingRateTarget + ", leadingRewardGainers="
+ leadingRewardGainers + ", advanceRewardGainers=" + advanceRewardGainers
+ ", backwardList=" + backwardList + "]";
}
@JsonProperty( "leading_reward_gainers" )
private Vector<String> leadingRewardGainers; // 领跑奖
@Override
public int hashCode()
{
final int prime = 31;
int result = super.hashCode();
result = prime * result + (int) (totalArchievement ^ (totalArchievement >>> 32));
result = prime * result
+ ((mensualArchievementList == null) ? 0 : mensualArchievementList.hashCode());
result = prime * result
+ ((insuranceRenewalRate == null) ? 0 : insuranceRenewalRate.hashCode());
result = prime * result + ((insuranceRenewalRateTarget == null) ? 0
: insuranceRenewalRateTarget.hashCode());
result = prime * result + ((attachingRate == null) ? 0 : attachingRate.hashCode());
result = prime * result
+ ((attachingRateTarget == null) ? 0 : attachingRateTarget.hashCode());
result = prime * result
+ ((leadingRewardGainers == null) ? 0 : leadingRewardGainers.hashCode());
result = prime * result
+ ((advanceRewardGainers == null) ? 0 : advanceRewardGainers.hashCode());
result = prime * result + ((backwardList == null) ? 0 : backwardList.hashCode());
return result;
}
@JsonProperty( "advance_reward_gainers" )
private Vector<String> advanceRewardGainers; // 飞跃奖
@Override
public boolean equals( Object obj )
{
if ( this == obj )
return true;
if ( !super.equals( obj ) )
return false;
if ( getClass() != obj.getClass() )
return false;
DepartmentArchievementQueryResult other = (DepartmentArchievementQueryResult) obj;
if ( totalArchievement != other.totalArchievement )
return false;
if ( mensualArchievementList == null )
{
if ( other.mensualArchievementList != null )
return false;
}
else if ( !mensualArchievementList.equals( other.mensualArchievementList ) )
return false;
if ( insuranceRenewalRate == null )
{
if ( other.insuranceRenewalRate != null )
return false;
}
else if ( !insuranceRenewalRate.equals( other.insuranceRenewalRate ) )
return false;
if ( insuranceRenewalRateTarget == null )
{
if ( other.insuranceRenewalRateTarget != null )
return false;
}
else if ( !insuranceRenewalRateTarget.equals( other.insuranceRenewalRateTarget ) )
return false;
if ( attachingRate == null )
{
if ( other.attachingRate != null )
return false;
}
else if ( !attachingRate.equals( other.attachingRate ) )
return false;
if ( attachingRateTarget == null )
{
if ( other.attachingRateTarget != null )
return false;
}
else if ( !attachingRateTarget.equals( other.attachingRateTarget ) )
return false;
if ( leadingRewardGainers == null )
{
if ( other.leadingRewardGainers != null )
return false;
}
else if ( !leadingRewardGainers.equals( other.leadingRewardGainers ) )
return false;
if ( advanceRewardGainers == null )
{
if ( other.advanceRewardGainers != null )
return false;
}
else if ( !advanceRewardGainers.equals( other.advanceRewardGainers ) )
return false;
if ( backwardList == null )
{
if ( other.backwardList != null )
return false;
}
else if ( !backwardList.equals( other.backwardList ) )
return false;
return true;
}
@JsonProperty( "backward_list" )
private Vector<String> backwardList; // 消七灭六坐席
}

View File

@ -2,17 +2,15 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpic.xim.mybatis.mapper.ArchievementMapper">
<select id="getDepartmentArchievement" useCache="false" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
call telsale_archievement_dev_pkg.department_archievement(
call telsale_archievement_pkg.department_archievement(
#{a_department_code, mode=IN, jdbcType=VARCHAR},
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
#{a_attaching_rate_target, mode=OUT, jdbcType=VARCHAR},
#{a_renewal_rate, mode=OUT, jdbcType=VARCHAR},
#{a_renewal_rate_target, mode=OUT, jdbcType=VARCHAR},
#{a_total, mode=OUT, jdbcType=INTEGER, javaType=Integer},
#{a_mensual_cur, mode=OUT, jdbcType=CURSOR, resultMap=MensualArchievementMapper})
</select>
<select id="getCallerArchievement" useCache="false" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
call telsale_archievement_dev_pkg.caller_archievement(
call telsale_archievement_pkg.caller_archievement(
#{a_caller_code, mode=IN, jdbcType=VARCHAR},
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
#{a_renewal_rate, mode=OUT, jdbcType=VARCHAR},