Compare commits
No commits in common. "feature-telsaler" and "develop" have entirely different histories.
feature-te
...
develop
|
@ -729,6 +729,3 @@ target/*
|
||||||
# oracle
|
# oracle
|
||||||
*.~pck
|
*.~pck
|
||||||
*.~sql
|
*.~sql
|
||||||
|
|
||||||
# 输出目录
|
|
||||||
输出/*
|
|
|
@ -1,28 +0,0 @@
|
||||||
CREATE OR REPLACE PACKAGE TELSALER_TWR_UTILS IS
|
|
||||||
|
|
||||||
-- Author : KANE
|
|
||||||
-- Created : 2023/12/19 16:27:20
|
|
||||||
-- Purpose : twr数据报表相关的工具函数
|
|
||||||
|
|
||||||
PROCEDURE 清理TWR坐席清单;
|
|
||||||
|
|
||||||
PROCEDURE 清理TWR团队清单;
|
|
||||||
|
|
||||||
END TELSALER_TWR_UTILS;
|
|
||||||
/
|
|
||||||
CREATE OR REPLACE PACKAGE BODY TELSALER_TWR_UTILS IS
|
|
||||||
|
|
||||||
PROCEDURE 清理TWR坐席清单 IS
|
|
||||||
BEGIN
|
|
||||||
EXECUTE IMMEDIATE 'truncate table twr_telsaler_dev';
|
|
||||||
END;
|
|
||||||
|
|
||||||
PROCEDURE 清理TWR团队清单 IS
|
|
||||||
BEGIN
|
|
||||||
EXECUTE IMMEDIATE 'truncate table twr_telsaler_team_dev';
|
|
||||||
END;
|
|
||||||
|
|
||||||
BEGIN
|
|
||||||
NULL;
|
|
||||||
END TELSALER_TWR_UTILS;
|
|
||||||
/
|
|
|
@ -1,23 +0,0 @@
|
||||||
create or replace package Telsaler_twr_pkg is
|
|
||||||
|
|
||||||
-- Author : KANE
|
|
||||||
-- Created : 2023/11/26 18:19:22
|
|
||||||
-- Purpose : TWR系统导出报表相关的pkg
|
|
||||||
|
|
||||||
procedure 清理TWR电销坐席员工表;
|
|
||||||
|
|
||||||
end Telsaler_twr_pkg;
|
|
||||||
/
|
|
||||||
create or replace package body Telsaler_twr_pkg is
|
|
||||||
|
|
||||||
procedure 清理TWR电销坐席员工表
|
|
||||||
is
|
|
||||||
begin
|
|
||||||
execute immediate 'truncate table twr_telsaler';
|
|
||||||
end;
|
|
||||||
|
|
||||||
begin
|
|
||||||
-- Initialization
|
|
||||||
null;
|
|
||||||
end Telsaler_twr_pkg;
|
|
||||||
/
|
|
|
@ -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机构续保率跟踪表-24年" 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电销坐席续保率跟踪表-24年" 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;
|
|
||||||
/
|
|
|
@ -1,10 +1,10 @@
|
||||||
CREATE OR REPLACE PACKAGE TELSALE_ARCHIEVEMENT_PKG IS
|
CREATE OR REPLACE PACKAGE telsale_archievement_pkg IS
|
||||||
|
|
||||||
-- Author : WANGWEI-202
|
-- Author : WANGWEI-202
|
||||||
-- Created : 2023/3/10 15:13:34
|
-- Created : 2023/3/10 15:13:34
|
||||||
-- Purpose : 桌面霸屏项目基础数据生成包
|
-- Purpose : 桌面霸屏项目基础数据生成包
|
||||||
|
|
||||||
TYPE CUR_TYPE IS REF CURSOR;
|
TYPE cur_type IS REF CURSOR;
|
||||||
|
|
||||||
-- 异常
|
-- 异常
|
||||||
DEPARTMENTCODE_EXCEPTION_CODE CONSTANT INTEGER := -20000;
|
DEPARTMENTCODE_EXCEPTION_CODE CONSTANT INTEGER := -20000;
|
||||||
|
@ -13,55 +13,55 @@ CREATE OR REPLACE PACKAGE TELSALE_ARCHIEVEMENT_PKG IS
|
||||||
CALLERCODE_EXCEPTION_CODE CONSTANT INTEGER := -20001;
|
CALLERCODE_EXCEPTION_CODE CONSTANT INTEGER := -20001;
|
||||||
CALLERCODE_EXCEPTION_MSG CONSTANT VARCHAR2(100) := '坐席工号无效。';
|
CALLERCODE_EXCEPTION_MSG CONSTANT VARCHAR2(100) := '坐席工号无效。';
|
||||||
|
|
||||||
PROCEDURE DEPARTMENT_ARCHIEVEMENT
|
PROCEDURE department_archievement
|
||||||
(
|
(
|
||||||
A_DEPARTMENT_CODE IN VARCHAR2,
|
a_department_code IN VARCHAR2,
|
||||||
A_ATTACHING_RATE OUT VARCHAR2,
|
a_attaching_rate OUT VARCHAR2,
|
||||||
A_ATTACHING_RATE_TARGET OUT VARCHAR2,
|
a_renewal_rate OUT VARCHAR2,
|
||||||
A_RENEWAL_RATE OUT VARCHAR2,
|
a_total OUT INTEGER,
|
||||||
A_RENEWAL_RATE_TARGET OUT VARCHAR2,
|
a_mensual_cur OUT cur_type
|
||||||
A_TOTAL OUT INTEGER,
|
|
||||||
A_MENSUAL_CUR OUT CUR_TYPE
|
|
||||||
);
|
);
|
||||||
|
|
||||||
PROCEDURE CALLER_ARCHIEVEMENT
|
PROCEDURE caller_archievement
|
||||||
(
|
(
|
||||||
A_CALLER_CODE IN VARCHAR2,
|
a_caller_code IN VARCHAR2,
|
||||||
A_ATTACHING_RATE OUT VARCHAR2,
|
a_attaching_rate OUT VARCHAR2,
|
||||||
A_RENEWAL_RATE OUT VARCHAR2,
|
a_renewal_rate OUT VARCHAR2,
|
||||||
A_TOTAL OUT INTEGER,
|
a_total OUT INTEGER,
|
||||||
A_PRESENT_MONTH OUT NUMBER,
|
a_present_month OUT NUMBER,
|
||||||
A_MENSUAL_CUR OUT CUR_TYPE
|
a_mensual_cur OUT cur_type
|
||||||
);
|
);
|
||||||
|
|
||||||
PROCEDURE CALLER_ARCH_RANKING_LIST
|
PROCEDURE caller_arch_ranking_list
|
||||||
(
|
(
|
||||||
A_DEPARTMENT_CODE IN VARCHAR2,
|
a_department_code IN VARCHAR2,
|
||||||
A_YEAR IN VARCHAR2,
|
a_year IN VARCHAR2,
|
||||||
A_MONTH IN VARCHAR2,
|
a_month IN VARCHAR2,
|
||||||
A_ATTACHING_RANKING_LIST OUT CUR_TYPE,
|
a_attaching_ranking_list OUT cur_type,
|
||||||
A_RENEWAL_RANKING_LIST OUT CUR_TYPE
|
a_renewal_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
|
||||||
|
|
||||||
-- 部门业绩
|
-- 部门业绩
|
||||||
PROCEDURE DEPARTMENT_ARCHIEVEMENT
|
PROCEDURE DEPARTMENT_ARCHIEVEMENT
|
||||||
(
|
(
|
||||||
A_DEPARTMENT_CODE IN VARCHAR2,
|
A_DEPARTMENT_CODE IN VARCHAR2,
|
||||||
A_ATTACHING_RATE OUT VARCHAR2,
|
A_ATTACHING_RATE OUT VARCHAR2,
|
||||||
A_ATTACHING_RATE_TARGET OUT VARCHAR2,
|
|
||||||
A_RENEWAL_RATE OUT VARCHAR2,
|
A_RENEWAL_RATE OUT VARCHAR2,
|
||||||
A_RENEWAL_RATE_TARGET OUT VARCHAR2,
|
|
||||||
A_TOTAL OUT INTEGER,
|
A_TOTAL OUT INTEGER,
|
||||||
A_MENSUAL_CUR OUT CUR_TYPE
|
A_MENSUAL_CUR OUT CUR_TYPE
|
||||||
) IS
|
) IS
|
||||||
|
--L_THIS_MONTH VARCHAR2(4);
|
||||||
|
--L_THIS_YEAR VARCHAR2(4);
|
||||||
L_FIRSTDAY DATE;
|
L_FIRSTDAY DATE;
|
||||||
L_DEPARTMENT_NAME VARCHAR2(100);
|
L_DEPARTMENT_NAME VARCHAR2(100);
|
||||||
L_RENEWAL_RATE_TARGET NUMBER;
|
|
||||||
BEGIN
|
BEGIN
|
||||||
|
/*L_THIS_MONTH := TO_CHAR(SYSDATE,
|
||||||
|
'mm');
|
||||||
|
L_THIS_YEAR := TO_CHAR(SYSDATE,
|
||||||
|
'yyyy');*/
|
||||||
L_FIRSTDAY := TO_DATE(TO_CHAR(SYSDATE,
|
L_FIRSTDAY := TO_DATE(TO_CHAR(SYSDATE,
|
||||||
'yyyy') || '-01-01 00:00:00',
|
'yyyy') || '-01-01 00:00:00',
|
||||||
'yyyy-mm-dd hh24:mi:ss');
|
'yyyy-mm-dd hh24:mi:ss');
|
||||||
|
@ -77,62 +77,45 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS
|
||||||
RAISE_APPLICATION_ERROR(DEPARTMENTCODE_EXCEPTION_CODE,
|
RAISE_APPLICATION_ERROR(DEPARTMENTCODE_EXCEPTION_CODE,
|
||||||
DEPARTMENTCODE_EXCEPTION_MSG);
|
DEPARTMENTCODE_EXCEPTION_MSG);
|
||||||
END;
|
END;
|
||||||
|
--车非渗透率
|
||||||
--车非渗透率&目标差距
|
/*SELECT DECODE(SUM(CF.车险个人客户保费),
|
||||||
BEGIN
|
0,
|
||||||
SELECT ROUND(DEPT.当月保费渗透率,
|
0,
|
||||||
2),
|
ROUND((SUM(CF.车非融合保费) / SUM(CF.车险个人客户保费) * 100),
|
||||||
ROUND(DEPT.目标差距,
|
2))
|
||||||
|
INTO A_ATTACHING_RATE
|
||||||
|
FROM 坐席车非每日保费 CF
|
||||||
|
WHERE CF.月份 = L_THIS_MONTH
|
||||||
|
AND CF.年份 = L_THIS_YEAR
|
||||||
|
AND 部门代码 = A_DEPARTMENT_CODE;*/
|
||||||
|
SELECT round(dept.当月保费渗透率,
|
||||||
2)
|
2)
|
||||||
INTO A_ATTACHING_RATE,
|
INTO A_ATTACHING_RATE
|
||||||
A_ATTACHING_RATE_TARGET
|
FROM desktop_archievement_admin.BI机构渗透率跟踪表 dept
|
||||||
FROM BI机构渗透率跟踪表 DEPT
|
WHERE dept.部门 = L_DEPARTMENT_NAME;
|
||||||
WHERE DEPT.部门 = L_DEPARTMENT_NAME;
|
--续保率
|
||||||
|
/*SELECT DECODE(SUM(到期数),
|
||||||
--解决round导致小数缺0的问题
|
0,
|
||||||
SELECT DECODE(SUBSTR(A_ATTACHING_RATE_TARGET,
|
0,
|
||||||
1,
|
ROUND(SUM(已续保累计) / SUM(到期数) * 100,
|
||||||
1),
|
2))
|
||||||
'.',
|
INTO A_RENEWAL_RATE
|
||||||
'0' || A_ATTACHING_RATE_TARGET,
|
FROM 坐席续保统计
|
||||||
A_ATTACHING_RATE_TARGET)
|
WHERE 部门 = L_DEPARTMENT_NAME;*/
|
||||||
INTO A_ATTACHING_RATE_TARGET
|
SELECT round(t."个车续保率(全月)(%)",
|
||||||
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)
|
2)
|
||||||
INTO A_RENEWAL_RATE,
|
INTO A_RENEWAL_RATE
|
||||||
A_RENEWAL_RATE_TARGET
|
FROM BI机构当月个车续保率跟踪表 t
|
||||||
FROM "BI机构续保率跟踪表-24年" T
|
WHERE t.责任部门 = L_DEPARTMENT_NAME;
|
||||||
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;
|
SELECT ROUND(NVL(SUM(CF.车险个人客户保费 + CF.车非融合保费),
|
||||||
|
0),
|
||||||
|
0)
|
||||||
|
INTO A_TOTAL
|
||||||
|
FROM 坐席车非每日保费 CF
|
||||||
|
WHERE 部门代码 = A_DEPARTMENT_CODE
|
||||||
|
AND 签单日期 >= L_FIRSTDAY
|
||||||
|
AND 签单日期 <= SYSDATE;
|
||||||
--每月业绩
|
--每月业绩
|
||||||
OPEN A_MENSUAL_CUR FOR
|
OPEN A_MENSUAL_CUR FOR
|
||||||
SELECT CF.月份 MM,
|
SELECT CF.月份 MM,
|
||||||
|
@ -153,90 +136,86 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS
|
||||||
|
|
||||||
/*******************************************************/
|
/*******************************************************/
|
||||||
-- 坐席业绩
|
-- 坐席业绩
|
||||||
PROCEDURE CALLER_ARCHIEVEMENT
|
PROCEDURE caller_archievement
|
||||||
(
|
(
|
||||||
A_CALLER_CODE IN VARCHAR2,
|
a_caller_code IN VARCHAR2,
|
||||||
A_ATTACHING_RATE OUT VARCHAR2,
|
a_attaching_rate OUT VARCHAR2,
|
||||||
A_RENEWAL_RATE OUT VARCHAR2,
|
a_renewal_rate OUT VARCHAR2,
|
||||||
A_TOTAL OUT INTEGER,
|
a_total OUT INTEGER,
|
||||||
A_PRESENT_MONTH OUT NUMBER,
|
a_present_month OUT NUMBER,
|
||||||
A_MENSUAL_CUR OUT CUR_TYPE
|
a_mensual_cur OUT cur_type
|
||||||
) IS
|
) IS
|
||||||
L_CALLER_NAME VARCHAR2(100);
|
l_caller_name VARCHAR2(100);
|
||||||
L_DEPARTMENT_NAME VARCHAR2(100);
|
l_department_name VARCHAR2(100);
|
||||||
L_THIS_YEAR VARCHAR2(4);
|
--l_this_month VARCHAR2(4);
|
||||||
L_ROWNUM INTEGER;
|
l_this_year VARCHAR2(4);
|
||||||
|
--l_firstday DATE;
|
||||||
|
l_rownum INTEGER;
|
||||||
BEGIN
|
BEGIN
|
||||||
--查询坐席名称,和部门名称,验证代码
|
--查询坐席名称,和部门名称,验证代码
|
||||||
BEGIN
|
BEGIN
|
||||||
SELECT ZX.人员姓名,
|
SELECT zx.saler_name,
|
||||||
BM.DEPARTMENT_NAME
|
bm.department_name
|
||||||
INTO L_CALLER_NAME,
|
INTO l_caller_name,
|
||||||
L_DEPARTMENT_NAME
|
l_department_name
|
||||||
FROM TWR_TELSALER ZX,
|
FROM tele_saler zx,
|
||||||
TWR_TELSALER_TEAM T,
|
tele_saler_team team,
|
||||||
IDST0.BM_T BM
|
idst0.bm_t bm
|
||||||
WHERE ZX.人员工号 = A_CALLER_CODE
|
WHERE zx.saler_code = a_caller_code
|
||||||
AND ZX.团队名称 = T.TEAM_NAME
|
AND zx.team_code = team.team_code
|
||||||
AND T.DEPARTMENT_CODE = BM.DEPARTMENT_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
|
EXCEPTION
|
||||||
-- 如果没有查询到坐席名称,说明代码有误,抛出异常
|
-- 如果没有查询到坐席名称,说明代码有误,抛出异常
|
||||||
WHEN NO_DATA_FOUND THEN
|
WHEN no_data_found THEN
|
||||||
RAISE_APPLICATION_ERROR(CALLERCODE_EXCEPTION_CODE,
|
raise_application_error(CALLERCODE_EXCEPTION_CODE,
|
||||||
CALLERCODE_EXCEPTION_MSG);
|
CALLERCODE_EXCEPTION_MSG);
|
||||||
END;
|
END;
|
||||||
|
|
||||||
L_THIS_YEAR := TO_CHAR(SYSDATE,
|
--l_this_month := to_char(SYSDATE,
|
||||||
|
-- 'mm');
|
||||||
|
l_this_year := to_char(SYSDATE,
|
||||||
'yyyy');
|
'yyyy');
|
||||||
|
--l_firstday := to_date(l_this_year || '-01-01 00:00:00',
|
||||||
|
-- 'yyyy-mm-dd hh24:mi:ss');
|
||||||
|
|
||||||
--总车险保费
|
--总车险保费
|
||||||
SELECT ROUND(NVL(SUM(CF.车险个人客户保费),
|
SELECT round(nvl(SUM(cf.车险个人客户保费),
|
||||||
0),
|
0),
|
||||||
2) BF
|
2) bf
|
||||||
INTO A_TOTAL
|
INTO a_total
|
||||||
FROM 坐席车非每日保费 CF
|
FROM 坐席车非每日保费 cf
|
||||||
WHERE CF.坐席名称 = L_CALLER_NAME
|
WHERE cf.坐席名称 = l_caller_name
|
||||||
AND CF.部门 = L_DEPARTMENT_NAME
|
AND cf.部门 = l_department_name
|
||||||
AND CF.年份 = L_THIS_YEAR;
|
AND cf.年份 = l_this_year;
|
||||||
|
|
||||||
--渗透率
|
--渗透率
|
||||||
BEGIN
|
SELECT rownum,
|
||||||
SELECT ROWNUM,
|
round(nvl(t.当月保费渗透率,
|
||||||
ROUND(NVL(T.当月保费渗透率,
|
|
||||||
0),
|
0),
|
||||||
2),
|
2),
|
||||||
ROUND(NVL(t."车险保费(万)" * 10000,
|
round(nvl(t."车险保费(万)" * 10000,
|
||||||
0),
|
0),
|
||||||
2)
|
2)
|
||||||
INTO L_ROWNUM,
|
INTO l_rownum,
|
||||||
A_ATTACHING_RATE,
|
a_attaching_rate,
|
||||||
A_PRESENT_MONTH
|
a_present_month
|
||||||
FROM BI电销坐席车非渗透率跟踪表 T
|
FROM BI电销坐席车非渗透率跟踪表 t
|
||||||
WHERE T.经办 = L_CALLER_NAME
|
WHERE t.经办 = l_caller_name
|
||||||
AND ROWNUM = 1;
|
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,
|
||||||
SELECT ROWNUM,
|
round(nvl(t."个车续保率(全月)(%)",
|
||||||
ROUND(NVL(t."个车续保率(全月)(%)",
|
|
||||||
0),
|
0),
|
||||||
2)
|
2)
|
||||||
INTO L_ROWNUM,
|
INTO l_rownum,
|
||||||
A_RENEWAL_RATE
|
a_renewal_rate
|
||||||
FROM "BI电销坐席续保率跟踪表-24年" T
|
FROM BI电销坐席续保率跟踪表 t
|
||||||
WHERE T.责任人 = L_CALLER_NAME
|
WHERE t.责任人 = l_caller_name
|
||||||
AND ROWNUM = 1;
|
AND rownum = 1;
|
||||||
EXCEPTION
|
|
||||||
WHEN NO_DATA_FOUND THEN
|
|
||||||
L_ROWNUM := 1;
|
|
||||||
A_RENEWAL_RATE := 0.0;
|
|
||||||
END;
|
|
||||||
|
|
||||||
--每月业绩
|
--每月业绩
|
||||||
OPEN A_MENSUAL_CUR FOR
|
OPEN A_MENSUAL_CUR FOR
|
||||||
|
@ -245,8 +224,8 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS
|
||||||
0),
|
0),
|
||||||
0) BF
|
0) BF
|
||||||
FROM 坐席车非每日保费 CF
|
FROM 坐席车非每日保费 CF
|
||||||
WHERE CF.坐席名称 = L_CALLER_NAME
|
WHERE cf.坐席名称 = l_caller_name
|
||||||
AND CF.部门 = L_DEPARTMENT_NAME
|
AND cf.部门 = l_department_name
|
||||||
AND 签单日期 >= TO_DATE(TO_CHAR(SYSDATE,
|
AND 签单日期 >= TO_DATE(TO_CHAR(SYSDATE,
|
||||||
'yyyy') || '-01-01 00:00:00',
|
'yyyy') || '-01-01 00:00:00',
|
||||||
'yyyy-mm-dd hh24:mi:ss')
|
'yyyy-mm-dd hh24:mi:ss')
|
||||||
|
@ -281,27 +260,54 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS
|
||||||
END;
|
END;
|
||||||
-- 车非融合率排行榜
|
-- 车非融合率排行榜
|
||||||
OPEN A_ATTACHING_RANKING_LIST FOR
|
OPEN A_ATTACHING_RANKING_LIST FOR
|
||||||
SELECT ROWNUM,
|
SELECT rownum,
|
||||||
PAIHANG.经办 AS CALLER_NAME,
|
paihang.经办 AS caller_name,
|
||||||
PAIHANG.XBL AS ATTACHING_RATE
|
paihang.attaching_rate
|
||||||
FROM (SELECT T.经办,
|
FROM (SELECT DISTINCT *
|
||||||
ROUND(T.当月保费渗透率,
|
FROM (SELECT t.经办,
|
||||||
2) XBL
|
round(t.当月保费渗透率,
|
||||||
FROM BI电销坐席车非渗透率跟踪表 T
|
2) attaching_rate,
|
||||||
WHERE T.部门 = L_DEPARTMENT_NAME
|
zuoxi.department_name
|
||||||
ORDER BY T.当月保费渗透率 DESC) PAIHANG;
|
FROM BI电销坐席车非渗透率跟踪表 t,
|
||||||
|
(SELECT DISTINCT t.saler_code,
|
||||||
|
t.saler_name,
|
||||||
|
t.team_code,
|
||||||
|
team.team,
|
||||||
|
bm.department_name
|
||||||
|
FROM tele_saler t,
|
||||||
|
tele_saler_team team,
|
||||||
|
idst0.bm_t bm
|
||||||
|
WHERE t.team_code = team.team_code
|
||||||
|
AND team.department_code = bm.department_code
|
||||||
|
AND bm.department_name = L_DEPARTMENT_NAME) zuoxi
|
||||||
|
WHERE t.经办 = zuoxi.saler_name) st
|
||||||
|
ORDER BY st.department_name,
|
||||||
|
st.attaching_rate DESC) paihang;
|
||||||
-- 续保率排行榜
|
-- 续保率排行榜
|
||||||
OPEN A_RENEWAL_RANKING_LIST FOR
|
OPEN A_RENEWAL_RANKING_LIST FOR
|
||||||
SELECT ROWNUM,
|
SELECT rownum,
|
||||||
PAIHANG.责任人 AS CALLER_NAME,
|
paihang.责任人 AS CALLER_NAME,
|
||||||
PAIHANG.XBL AS RENEWAL_RATE
|
paihang.xbl AS RENEWAL_RATE
|
||||||
FROM (SELECT T.责任人,
|
FROM (SELECT DISTINCT *
|
||||||
ROUND(t."个车续保率(全月)(%)",
|
FROM (SELECT t.责任人,
|
||||||
2) XBL
|
round(t."个车续保率(全月)(%)",
|
||||||
FROM "BI电销坐席续保率跟踪表-24年" T
|
2) xbl,
|
||||||
WHERE T.责任部门 = L_DEPARTMENT_NAME
|
zuoxi.department_name
|
||||||
ORDER BY XBL DESC) PAIHANG;
|
FROM BI电销坐席续保率跟踪表 t,
|
||||||
|
(SELECT DISTINCT t.saler_code,
|
||||||
|
t.saler_name,
|
||||||
|
t.team_code,
|
||||||
|
team.team,
|
||||||
|
bm.department_name
|
||||||
|
FROM tele_saler t,
|
||||||
|
tele_saler_team team,
|
||||||
|
idst0.bm_t bm
|
||||||
|
WHERE t.team_code = team.team_code
|
||||||
|
AND team.department_code = bm.department_code
|
||||||
|
AND bm.department_name = L_DEPARTMENT_NAME) zuoxi
|
||||||
|
WHERE t.责任人 = zuoxi.saler_name) xb
|
||||||
|
ORDER BY xb.department_name,
|
||||||
|
xb.xbl DESC) paihang;
|
||||||
END;
|
END;
|
||||||
BEGIN
|
BEGIN
|
||||||
NULL;
|
NULL;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CREATE OR REPLACE PACKAGE TELSALE_BI_UTILS IS
|
CREATE OR REPLACE PACKAGE telsale_bi_utils IS
|
||||||
|
|
||||||
-- Author : WANGWEI-202
|
-- Author : WANGWEI-202
|
||||||
-- Created : 2023/10/12 15:31:13
|
-- Created : 2023/10/12 15:31:13
|
||||||
|
@ -12,9 +12,9 @@ CREATE OR REPLACE PACKAGE TELSALE_BI_UTILS IS
|
||||||
|
|
||||||
PROCEDURE 清理BI部门续保率跟踪表;
|
PROCEDURE 清理BI部门续保率跟踪表;
|
||||||
|
|
||||||
END TELSALE_BI_UTILS;
|
END telsale_bi_utils;
|
||||||
/
|
/
|
||||||
CREATE OR REPLACE PACKAGE BODY TELSALE_BI_UTILS IS
|
CREATE OR REPLACE PACKAGE BODY telsale_bi_utils IS
|
||||||
|
|
||||||
PROCEDURE 清理BI电销坐席车非渗透率跟踪表 IS
|
PROCEDURE 清理BI电销坐席车非渗透率跟踪表 IS
|
||||||
BEGIN
|
BEGIN
|
||||||
|
@ -23,8 +23,7 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_BI_UTILS IS
|
||||||
|
|
||||||
PROCEDURE 清理BI电销坐席续保率跟踪表 IS
|
PROCEDURE 清理BI电销坐席续保率跟踪表 IS
|
||||||
BEGIN
|
BEGIN
|
||||||
--EXECUTE IMMEDIATE 'truncate table BI电销坐席续保率跟踪表';
|
EXECUTE IMMEDIATE 'truncate table BI电销坐席续保率跟踪表';
|
||||||
EXECUTE IMMEDIATE 'truncate table "BI电销坐席续保率跟踪表-24年"';
|
|
||||||
END;
|
END;
|
||||||
|
|
||||||
PROCEDURE 清理BI部门渗透率跟踪表 IS
|
PROCEDURE 清理BI部门渗透率跟踪表 IS
|
||||||
|
@ -34,12 +33,11 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_BI_UTILS IS
|
||||||
|
|
||||||
PROCEDURE 清理BI部门续保率跟踪表 IS
|
PROCEDURE 清理BI部门续保率跟踪表 IS
|
||||||
BEGIN
|
BEGIN
|
||||||
--EXECUTE IMMEDIATE 'truncate table BI机构当月个车续保率跟踪表';
|
EXECUTE IMMEDIATE 'truncate table BI机构当月个车续保率跟踪表';
|
||||||
EXECUTE IMMEDIATE 'truncate table "BI机构续保率跟踪表-24年"';
|
|
||||||
END;
|
END;
|
||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
-- Initialization
|
-- Initialization
|
||||||
NULL;
|
NULL;
|
||||||
END TELSALE_BI_UTILS;
|
END telsale_bi_utils;
|
||||||
/
|
/
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
CREATE OR REPLACE PACKAGE TELSALE_BI_UTILS_DEV IS
|
|
||||||
|
|
||||||
-- Author : WANGWEI-202
|
|
||||||
-- Created : 2023/10/12 15:31:13
|
|
||||||
-- Purpose : bi数据报表相关的工具
|
|
||||||
|
|
||||||
PROCEDURE 清理BI电销坐席车非渗透率跟踪表;
|
|
||||||
|
|
||||||
PROCEDURE 清理BI电销坐席续保率跟踪表;
|
|
||||||
|
|
||||||
PROCEDURE 清理BI部门渗透率跟踪表;
|
|
||||||
|
|
||||||
PROCEDURE 清理BI部门续保率跟踪表;
|
|
||||||
|
|
||||||
END TELSALE_BI_UTILS_DEV;
|
|
||||||
/
|
|
||||||
CREATE OR REPLACE PACKAGE BODY TELSALE_BI_UTILS_DEV IS
|
|
||||||
|
|
||||||
PROCEDURE 清理BI电销坐席车非渗透率跟踪表 IS
|
|
||||||
BEGIN
|
|
||||||
EXECUTE IMMEDIATE 'truncate table BI电销坐席车非渗透率跟踪表';
|
|
||||||
END;
|
|
||||||
|
|
||||||
PROCEDURE 清理BI电销坐席续保率跟踪表 IS
|
|
||||||
BEGIN
|
|
||||||
--EXECUTE IMMEDIATE 'truncate table BI电销坐席续保率跟踪表';
|
|
||||||
EXECUTE IMMEDIATE 'truncate table "BI电销坐席续保率跟踪表-24年"';
|
|
||||||
END;
|
|
||||||
|
|
||||||
PROCEDURE 清理BI部门渗透率跟踪表 IS
|
|
||||||
BEGIN
|
|
||||||
EXECUTE IMMEDIATE 'truncate table BI机构渗透率跟踪表';
|
|
||||||
END;
|
|
||||||
|
|
||||||
PROCEDURE 清理BI部门续保率跟踪表 IS
|
|
||||||
BEGIN
|
|
||||||
--EXECUTE IMMEDIATE 'truncate table BI机构当月个车续保率跟踪表';
|
|
||||||
EXECUTE IMMEDIATE 'truncate table "BI机构续保率跟踪表-24年"';
|
|
||||||
END;
|
|
||||||
|
|
||||||
BEGIN
|
|
||||||
-- Initialization
|
|
||||||
NULL;
|
|
||||||
END TELSALE_BI_UTILS_DEV;
|
|
||||||
/
|
|
|
@ -1,17 +0,0 @@
|
||||||
select *
|
|
||||||
from twr_telsaler_team;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SELECT ry.人员工号,
|
|
||||||
ry.人员姓名,
|
|
||||||
team.team_code,
|
|
||||||
team.team_name,
|
|
||||||
bm.department_code,
|
|
||||||
bm.department_name
|
|
||||||
FROM twr_telsaler ry,
|
|
||||||
twr_telsaler_team team,
|
|
||||||
idst0.bm_t bm
|
|
||||||
WHERE ry.团队名称 = team.team_name
|
|
||||||
AND team.department_code = bm.department_code
|
|
||||||
AND (ry.人员工号 = '何小红' OR ry.人员姓名 = '何小红');
|
|
|
@ -1,3 +0,0 @@
|
||||||
SELECT * FROM datacenter.kx_bi_c_kb_qd WHERE 起保时间 >= DATE '2023-01-01';
|
|
||||||
|
|
||||||
SELECT * FROM 坐席车非每日保费 CF WHERE 坐席名称 = '黄鹏' ORDER BY 签单日期 DESC;
|
|
|
@ -1,30 +1,30 @@
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM REWARD_GAINERS
|
FROM reward_gainers
|
||||||
FOR UPDATE;
|
FOR UPDATE;
|
||||||
|
|
||||||
SELECT B.REWARD_NAME,
|
SELECT b.reward_name,
|
||||||
A.*
|
a.*
|
||||||
FROM REWARD_GAINERS A,
|
FROM reward_gainers a,
|
||||||
REWARD_PROJECTS B
|
reward_projects b
|
||||||
WHERE A.REWARD_INDEX = B.REWARD_INDEX;
|
WHERE a.reward_index = b.reward_index;
|
||||||
|
|
||||||
--坐席工号
|
--坐席工号
|
||||||
SELECT DISTINCT S.SALER_CODE,
|
SELECT DISTINCT s.saler_code,
|
||||||
S.SALER_NAME,
|
s.saler_name,
|
||||||
T.TEAM_CODE,
|
t.team_code,
|
||||||
T.TEAM,
|
t.team,
|
||||||
BM.DEPARTMENT_CODE,
|
bm.department_code,
|
||||||
BM.DEPARTMENT_NAME
|
bm.department_name
|
||||||
FROM TELE_SALER S,
|
FROM tele_saler s,
|
||||||
TELE_SALER_TEAM T,
|
tele_saler_team t,
|
||||||
IDST0.BM_T BM
|
idst0.bm_t bm
|
||||||
WHERE S.TEAM_CODE = T.TEAM_CODE
|
WHERE s.team_code = t.team_code
|
||||||
AND T.DEPARTMENT_CODE = BM.DEPARTMENT_CODE
|
AND t.department_code = bm.department_code
|
||||||
AND S.SALER_CODE = '61136';
|
AND s.saler_code = '61136';
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM TELE_SALER_TEAM T
|
FROM tele_saler_team t
|
||||||
WHERE T.TEAM_CODE = '107077'
|
WHERE t.team_code = '107077'
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM 坐席车非每日保费
|
FROM 坐席车非每日保费
|
||||||
|
@ -35,7 +35,7 @@ SELECT *
|
||||||
SELECT 部门,
|
SELECT 部门,
|
||||||
SUM(已续保累计) 已续保,
|
SUM(已续保累计) 已续保,
|
||||||
SUM(到期数) 到期保单,
|
SUM(到期数) 到期保单,
|
||||||
ROUND((SUM(已续保累计) / SUM(到期数)) * 100,
|
round((SUM(已续保累计) / SUM(到期数)) * 100,
|
||||||
0) || '%' 续保率
|
0) || '%' 续保率
|
||||||
FROM 坐席续保统计
|
FROM 坐席续保统计
|
||||||
GROUP BY 部门;
|
GROUP BY 部门;
|
||||||
|
@ -46,7 +46,7 @@ SELECT
|
||||||
坐席名称,
|
坐席名称,
|
||||||
SUM(车险个人客户保费),
|
SUM(车险个人客户保费),
|
||||||
SUM(车非融合保费),
|
SUM(车非融合保费),
|
||||||
ROUND(SUM(车非融合保费) / SUM(车险个人客户保费) * 100,
|
round(SUM(车非融合保费) / SUM(车险个人客户保费) * 100,
|
||||||
2) 车非渗透率
|
2) 车非渗透率
|
||||||
FROM 坐席车非每日保费
|
FROM 坐席车非每日保费
|
||||||
GROUP BY 月份,
|
GROUP BY 月份,
|
||||||
|
@ -57,7 +57,7 @@ HAVING
|
||||||
车非渗透率 DESC;
|
车非渗透率 DESC;
|
||||||
|
|
||||||
SELECT 坐席名称,
|
SELECT 坐席名称,
|
||||||
ROUND(SUM(车非融合保费) / SUM(车险个人客户保费) * 100,
|
round(SUM(车非融合保费) / SUM(车险个人客户保费) * 100,
|
||||||
2) 车非渗透率
|
2) 车非渗透率
|
||||||
FROM 坐席车非每日保费
|
FROM 坐席车非每日保费
|
||||||
WHERE 部门代码 = 'QDI'
|
WHERE 部门代码 = 'QDI'
|
||||||
|
@ -68,37 +68,37 @@ SELECT
|
||||||
|
|
||||||
--续保率
|
--续保率
|
||||||
SELECT 坐席名称,
|
SELECT 坐席名称,
|
||||||
ROUND(NVL(SUM(已续保累计) / SUM(到期数) * 100,
|
round(nvl(SUM(已续保累计) / SUM(到期数) * 100,
|
||||||
0),
|
0),
|
||||||
2) 续保率
|
2) 续保率
|
||||||
FROM 坐席续保统计 XB
|
FROM 坐席续保统计 xb
|
||||||
WHERE XB.部门 = '续保业务部'
|
WHERE xb.部门 = '续保业务部'
|
||||||
GROUP BY 坐席名称
|
GROUP BY 坐席名称
|
||||||
ORDER BY 坐席名称 DESC;
|
ORDER BY 坐席名称 DESC;
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
SELECT ZX.SALER_NAME,
|
SELECT zx.saler_name,
|
||||||
BM.DEPARTMENT_NAME
|
bm.department_name
|
||||||
FROM TELE_SALER ZX,
|
FROM tele_saler zx,
|
||||||
TELE_SALER_TEAM TEAM,
|
tele_saler_team team,
|
||||||
IDST0.BM_T BM
|
idst0.bm_t bm
|
||||||
WHERE ZX.SALER_NAME = '张楚沂'
|
WHERE zx.saler_name = '张楚沂'
|
||||||
AND ZX.TEAM_CODE = TEAM.TEAM_CODE
|
AND zx.team_code = team.team_code
|
||||||
AND TEAM.DEPARTMENT_CODE = BM.DEPARTMENT_CODE;
|
AND team.department_code = bm.department_code;
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
/*
|
/*
|
||||||
truncate table BI机构渗透率跟踪表;
|
truncate table BI机构渗透率跟踪表;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM BI电销坐席车非渗透率跟踪表 T
|
FROM BI电销坐席车非渗透率跟踪表 t
|
||||||
WHERE T.经办 = '杨苗';
|
WHERE t.经办 = '张楚沂';
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM "BI电销坐席续保率跟踪表-24年"
|
FROM BI电销坐席续保率跟踪表
|
||||||
WHERE 责任人 = '杨苗';
|
WHERE 责任人 = '张楚沂';
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM BI机构渗透率跟踪表;
|
FROM BI机构渗透率跟踪表;
|
||||||
|
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM "BI机构续保率跟踪表-24年";
|
FROM BI机构当月个车续保率跟踪表;
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
drop table twr_telsaler;
|
|
||||||
create table twr_telsaler
|
|
||||||
(
|
|
||||||
人员姓名 varchar2(40),
|
|
||||||
人员工号 varchar2(40),
|
|
||||||
籍贯 varchar2(40),
|
|
||||||
参加工作时间 varchar2(20),
|
|
||||||
入职日期 varchar2(20),
|
|
||||||
入司日期 varchar2(20),
|
|
||||||
业务类型 varchar2(40),
|
|
||||||
办公地省 varchar2(40),
|
|
||||||
办公地市 varchar2(40),
|
|
||||||
人员类别 varchar2(40),
|
|
||||||
现任岗位 varchar2(40),
|
|
||||||
现任职级 varchar2(40),
|
|
||||||
机构名称 varchar2(40),
|
|
||||||
职场分类 varchar2(40),
|
|
||||||
片区名称 varchar2(40),
|
|
||||||
团队名称 varchar2(40),
|
|
||||||
对口分公司 varchar2(40),
|
|
||||||
展业地区 varchar2(40),
|
|
||||||
招聘渠道 varchar2(40),
|
|
||||||
渠道明细 varchar2(40),
|
|
||||||
全日制最高学历 varchar2(40),
|
|
||||||
学历类型 varchar2(40),
|
|
||||||
用工性质名称 varchar2(40),
|
|
||||||
合同种类 varchar2(40),
|
|
||||||
合同类型 varchar2(40),
|
|
||||||
合同性质 varchar2(40),
|
|
||||||
合同签订次数 integer,
|
|
||||||
合同生效日期 varchar2(20),
|
|
||||||
合同到期日期 varchar2(20),
|
|
||||||
人员属性 varchar2(40),
|
|
||||||
保代员工号 varchar2(40),
|
|
||||||
职场属性 varchar2(40),
|
|
||||||
办公性质 varchar2(40),
|
|
||||||
保代人员属性 varchar2(40),
|
|
||||||
人员状态 varchar2(40)
|
|
||||||
);
|
|
|
@ -1,7 +0,0 @@
|
||||||
drop table twr_telsaler_team;
|
|
||||||
create table twr_telsaler_team
|
|
||||||
(
|
|
||||||
team_name varchar2(40) not null,
|
|
||||||
team_code varchar2(20),
|
|
||||||
department_code varchar2(6) not null
|
|
||||||
);
|
|
|
@ -11,40 +11,3 @@ NODE_ENV='development'
|
||||||
VITE_URL_VALIDATE_ACCOUNT="http://222.76.244.118:11101/desktop_archievement_backend/account/query_staff_info.do"
|
VITE_URL_VALIDATE_ACCOUNT="http://222.76.244.118:11101/desktop_archievement_backend/account/query_staff_info.do"
|
||||||
VITE_URL_LOGIN = "http://222.76.244.118:11101/admin-system/account/p13_account_check"
|
VITE_URL_LOGIN = "http://222.76.244.118:11101/admin-system/account/p13_account_check"
|
||||||
VITE_URL_DEPARTMENT_ARCHIEVEMENT="http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do"
|
VITE_URL_DEPARTMENT_ARCHIEVEMENT="http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do"
|
||||||
|
|
||||||
### URL相关 ##########
|
|
||||||
#登录
|
|
||||||
VITE_URL_LOGIN="http://222.76.244.118:11101/admin-system/account/p13_account_check"
|
|
||||||
VITE_URL_LOGIN_CALLER="http://222.76.244.118:11101/desktop_archievement_backend/account/query_telsaler_info.do"
|
|
||||||
|
|
||||||
#部门业绩查询
|
|
||||||
VITE_URL_DEPARTMENT_ARCHIEVEMENT="http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do"
|
|
||||||
#坐席业绩查询
|
|
||||||
VITE_URL_CALLER_ARCHIEVEMENT="http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_caller_archievement.do"
|
|
||||||
|
|
||||||
#排行榜
|
|
||||||
VITE_URL_RANKINGLIST="http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_ranking_list.do"
|
|
||||||
|
|
||||||
|
|
||||||
## 奖项相关 ##
|
|
||||||
## 查询奖励项目
|
|
||||||
VITE_URL_RWARD_PROJECTS="http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_projects.do"
|
|
||||||
## 查询获奖人员
|
|
||||||
VITE_URL_REWARD_GAINERS="http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_gainers.do"
|
|
||||||
## 添加获奖人员
|
|
||||||
VITE_URL_ADD_REWARD_TELSALER="http://222.76.244.118:11101/desktop_archievement_backend/rewards/add_telsaler_reward.do"
|
|
||||||
## 更新获奖人员
|
|
||||||
VITE_URL_UPDATE_REWARD_TELSALER="http://222.76.244.118:11101/desktop_archievement_backend/rewards/update_telsaler_reward.do"
|
|
||||||
## 删除获奖人员
|
|
||||||
VITE_URL_DEL_REWARD_TELSALER="http://222.76.244.118:11101/desktop_archievement_backend/rewards/delete_telsaler_reward.do"
|
|
||||||
|
|
||||||
## 上传文件
|
|
||||||
VITE_URL_UPLOAD_FILE="http://222.76.244.118:11101/desktop_archievement_backend/file/file-upload.do"
|
|
||||||
## 导入报表
|
|
||||||
VITE_URL_IMPORT_REPORT="http://222.76.244.118:11101/desktop_archievement_backend/import_bi_data/excel.do"
|
|
||||||
|
|
||||||
## 请求BI报表数据
|
|
||||||
VITE_URL_BI_TELSALER_ATTACHINGRATE="http://222.76.244.118:11101/desktop_archievement_backend/archievement/bi_telsaler_attachingrate.do"
|
|
||||||
VITE_URL_BI_TELSALER_RENEWALRATE="http://222.76.244.118:11101/desktop_archievement_backend/archievement/bi_telsaler_renewalrate.do"
|
|
||||||
VITE_URL_BI_DEPARTMENT_ATTACHINGRATE="http://222.76.244.118:11101/desktop_archievement_backend/archievement/bi_department_attachingrate.do"
|
|
||||||
VITE_URL_BI_DEPARTMENT_RENEWALRATE="http://222.76.244.118:11101/desktop_archievement_backend/archievement/bi_department_renewalrate.do"
|
|
|
@ -1,49 +0,0 @@
|
||||||
###
|
|
||||||
# @Author: Kane
|
|
||||||
# @Date: 2023-03-14 23:46:12
|
|
||||||
# @LastEditors: Kane
|
|
||||||
# @FilePath: /task_schedule/.env.production
|
|
||||||
# @Description:
|
|
||||||
#
|
|
||||||
# Copyright (c) ${2022} by Kane, All Rights Reserved.
|
|
||||||
###
|
|
||||||
VITE_URL_VALIDATE_ACCOUNT="http://10.39.0.61:8081/desktop_archievement_backend/account/query_staff_info.do"
|
|
||||||
VITE_URL_LOGIN="http://10.39.0.61:8081/admin-system/account/p13_account_check"
|
|
||||||
VITE_URL_DEPARTMENT_ARCHIEVEMENT="http://10.39.0.61:8081/desktop_archievement_backend/archievement/query_department_archievement.do"
|
|
||||||
|
|
||||||
### URL相关 ##########
|
|
||||||
#登录
|
|
||||||
VITE_URL_LOGIN="http://10.39.0.61:8081/admin-system/account/p13_account_check"
|
|
||||||
VITE_URL_LOGIN_CALLER="http://10.39.0.61:8081/desktop_archievement_backend/account/query_telsaler_info.do"
|
|
||||||
|
|
||||||
#部门业绩查询
|
|
||||||
VITE_URL_DEPARTMENT_ARCHIEVEMENT="http://10.39.0.61:8081/desktop_archievement_backend/archievement/query_department_archievement.do"
|
|
||||||
#坐席业绩查询
|
|
||||||
VITE_URL_CALLER_ARCHIEVEMENT="http://10.39.0.61:8081/desktop_archievement_backend/archievement/query_caller_archievement.do"
|
|
||||||
|
|
||||||
#排行榜
|
|
||||||
VITE_URL_RANKINGLIST="http://10.39.0.61:8081/desktop_archievement_backend/archievement/query_ranking_list.do"
|
|
||||||
|
|
||||||
|
|
||||||
## 奖项相关 ##
|
|
||||||
## 查询奖励项目
|
|
||||||
VITE_URL_RWARD_PROJECTS="http://10.39.0.61:8081/desktop_archievement_backend/rewards/query_reward_projects.do"
|
|
||||||
## 查询获奖人员
|
|
||||||
VITE_URL_REWARD_GAINERS="http://10.39.0.61:8081/desktop_archievement_backend/rewards/query_reward_gainers.do"
|
|
||||||
## 添加获奖人员
|
|
||||||
VITE_URL_ADD_REWARD_TELSALER="http://10.39.0.61:8081/desktop_archievement_backend/rewards/add_telsaler_reward.do"
|
|
||||||
## 更新获奖人员
|
|
||||||
VITE_URL_UPDATE_REWARD_TELSALER="http://10.39.0.61:8081/desktop_archievement_backend/rewards/update_telsaler_reward.do"
|
|
||||||
## 删除获奖人员
|
|
||||||
VITE_URL_DEL_REWARD_TELSALER="http://10.39.0.61:8081/desktop_archievement_backend/rewards/delete_telsaler_reward.do"
|
|
||||||
|
|
||||||
## 上传文件
|
|
||||||
VITE_URL_UPLOAD_FILE="http://10.39.0.61:8081/desktop_archievement_backend/file/file-upload.do"
|
|
||||||
## 导入报表
|
|
||||||
VITE_URL_IMPORT_REPORT="http://10.39.0.61:8081/desktop_archievement_backend/import_bi_data/excel.do"
|
|
||||||
|
|
||||||
## 请求BI报表数据
|
|
||||||
VITE_URL_BI_TELSALER_ATTACHINGRATE="http://10.39.0.61:8081/desktop_archievement_backend/archievement/bi_telsaler_attachingrate.do"
|
|
||||||
VITE_URL_BI_TELSALER_RENEWALRATE="http://10.39.0.61:8081/desktop_archievement_backend/archievement/bi_telsaler_renewalrate.do"
|
|
||||||
VITE_URL_BI_DEPARTMENT_ATTACHINGRATE="http://10.39.0.61:8081/desktop_archievement_backend/archievement/bi_department_attachingrate.do"
|
|
||||||
VITE_URL_BI_DEPARTMENT_RENEWALRATE="http://10.39.0.61:8081/desktop_archievement_backend/archievement/bi_department_renewalrate.do"
|
|
|
@ -113,7 +113,6 @@ module.exports = {
|
||||||
// typescript
|
// typescript
|
||||||
"@typescript-eslint/indent": ["warn", 4,],
|
"@typescript-eslint/indent": ["warn", 4,],
|
||||||
"@typescript-eslint/no-explicit-any": "warn",
|
"@typescript-eslint/no-explicit-any": "warn",
|
||||||
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
||||||
"@typescript-eslint/no-extra-semi": "off",
|
"@typescript-eslint/no-extra-semi": "off",
|
||||||
"@typescript-eslint/no-inferrable-types": "off",
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
"@typescript-eslint/no-unused-vars": "warn",
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
|
@ -160,7 +159,6 @@ module.exports = {
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
||||||
"@typescript-eslint/indent": ["error", 4,],
|
"@typescript-eslint/indent": ["error", 4,],
|
||||||
"@typescript-eslint/no-extra-semi": "off",
|
"@typescript-eslint/no-extra-semi": "off",
|
||||||
"@typescript-eslint/no-inferrable-types": "off",
|
"@typescript-eslint/no-inferrable-types": "off",
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
npm uninstall `
|
|
||||||
@babel/eslint-parser `
|
|
||||||
@rushstack/eslint-patch `
|
|
||||||
@typescript-eslint/eslint-plugin `
|
|
||||||
@vitejs/plugin-vue `
|
|
||||||
@vue/cli-plugin-eslint `
|
|
||||||
@vue/eslint-config-typescript `
|
|
||||||
babel `
|
|
||||||
eslint-config-recommended `
|
|
||||||
eslint-config-standard-with-typescript `
|
|
||||||
eslint-plugin-vue `
|
|
||||||
node-sass `
|
|
||||||
sass `
|
|
||||||
sass-loader `
|
|
||||||
style-loader `
|
|
||||||
ts-node `
|
|
||||||
vue-eslint-parser
|
|
|
@ -1,40 +0,0 @@
|
||||||
{
|
|
||||||
"name": "task_schedule",
|
|
||||||
"private": true,
|
|
||||||
"version": "0.0.0",
|
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
|
||||||
"dev": "vite",
|
|
||||||
"build": "vite build",
|
|
||||||
"preview": "vite preview"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@element-plus/icons-vue": "^2.3.1",
|
|
||||||
"echarts": "^5.4.3",
|
|
||||||
"element-plus": "^2.5.3",
|
|
||||||
"mitt": "^3.0.1",
|
|
||||||
"moment": "^2.30.1",
|
|
||||||
"vue": "^3.4.15",
|
|
||||||
"vue-router": "^4.2.5",
|
|
||||||
"vuex": "^4.1.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@babel/eslint-parser": "^7.23.3",
|
|
||||||
"@rushstack/eslint-patch": "^1.7.1",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
||||||
"@vitejs/plugin-vue": "^5.0.3",
|
|
||||||
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
||||||
"@vue/eslint-config-typescript": "^12.0.0",
|
|
||||||
"axios": "^1.6.6",
|
|
||||||
"babel": "^6.23.0",
|
|
||||||
"eslint-config-recommended": "^4.1.0",
|
|
||||||
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
||||||
"eslint-plugin-vue": "^9.20.1",
|
|
||||||
"node-sass": "^9.0.0",
|
|
||||||
"sass": "^1.70.0",
|
|
||||||
"sass-loader": "^14.0.0",
|
|
||||||
"style-loader": "^3.3.4",
|
|
||||||
"ts-node": "^10.9.2",
|
|
||||||
"vue-eslint-parser": "^9.4.2"
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,20 +9,32 @@
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@element-plus/icons-vue": "^2.3.1",
|
"@element-plus/icons-vue": "^2.1.0",
|
||||||
"axios": "^1.6.7",
|
"echarts": "^5.4.3",
|
||||||
"echarts": "^5.5.0",
|
"element-plus": "^2.4.1",
|
||||||
"element-plus": "^2.5.6",
|
|
||||||
"mitt": "^3.0.1",
|
"mitt": "^3.0.1",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.29.4",
|
||||||
"vue": "^3.4.21",
|
"sass-loader": "^13.3.2",
|
||||||
"vue-router": "^4.3.0",
|
"vue": "^3.3.6",
|
||||||
|
"vue-router": "^4.2.5",
|
||||||
"vuex": "^4.1.0"
|
"vuex": "^4.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^5.0.4",
|
"@babel/eslint-parser": "^7.22.15",
|
||||||
|
"@rushstack/eslint-patch": "^1.5.1",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
||||||
|
"@vitejs/plugin-vue": "^4.4.0",
|
||||||
|
"@vue/cli-plugin-eslint": "^5.0.8",
|
||||||
|
"@vue/eslint-config-typescript": "^12.0.0",
|
||||||
|
"axios": "^1.5.1",
|
||||||
|
"babel": "^6.23.0",
|
||||||
"eslint-config-recommended": "^4.1.0",
|
"eslint-config-recommended": "^4.1.0",
|
||||||
"eslint-config-standard-with-typescript": "^43.0.1",
|
"eslint-config-standard-with-typescript": "^39.1.1",
|
||||||
"eslint-plugin-vue": "^9.22.0"
|
"eslint-plugin-vue": "^9.17.0",
|
||||||
|
"node-sass": "^9.0.0",
|
||||||
|
"sass": "^1.69.4",
|
||||||
|
"style-loader": "^3.3.3",
|
||||||
|
"ts-node": "^10.9.1",
|
||||||
|
"vue-eslint-parser": "^9.3.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,18 +12,18 @@
|
||||||
<el-progress
|
<el-progress
|
||||||
type="circle"
|
type="circle"
|
||||||
:percentage="ui.percentage"
|
:percentage="ui.percentage"
|
||||||
:status="ui.warningLevel"
|
status="success"
|
||||||
>
|
>
|
||||||
<template #default>
|
<template #default>
|
||||||
<span class="percentage-label">{{ ui.indicator }}</span>
|
<span class="percentage-label">{{ ui.indicator }}</span>
|
||||||
<span :class="warningLevelClass">{{ percentage }}%</span>
|
<span class="percentage-value">{{ percentage }}%</span>
|
||||||
</template>
|
</template>
|
||||||
</el-progress>
|
</el-progress>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { reactive, computed } from "vue";
|
import { reactive } from "vue";
|
||||||
export default {
|
export default {
|
||||||
name: "ArchievementCompleteRateComponent",
|
name: "ArchievementCompleteRateComponent",
|
||||||
props: {
|
props: {
|
||||||
|
@ -36,42 +36,17 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
warningLevel: { // 警告等级
|
|
||||||
type: String,
|
|
||||||
default: "success",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
setup( props )
|
setup( props )
|
||||||
{
|
{
|
||||||
const percentage = Number( props.percentage ).valueOf();
|
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({
|
const ui = reactive({
|
||||||
percentage,
|
percentage,
|
||||||
indicator: props.indicator,
|
indicator: props.indicator,
|
||||||
warningLevel: props.warningLevel,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return { ui, warningLevelClass, };
|
return { ui, };
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -99,21 +74,6 @@ export default {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.percentage-value-warning {
|
|
||||||
display: block;
|
|
||||||
margin-top: 10px;
|
|
||||||
font-size: 28px;
|
|
||||||
color: #e59f46;
|
|
||||||
}
|
|
||||||
|
|
||||||
.percentage-value-exception {
|
|
||||||
display: block;
|
|
||||||
margin-top: 10px;
|
|
||||||
font-size: 28px;
|
|
||||||
color: red;
|
|
||||||
// color: #f3666b;
|
|
||||||
}
|
|
||||||
|
|
||||||
.percentage-label {
|
.percentage-label {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -78,22 +78,32 @@
|
||||||
// @ts-expect-error 之后再补充类型文件
|
// @ts-expect-error 之后再补充类型文件
|
||||||
import { hasOnlyChild } from "@/router/index.js";
|
import { hasOnlyChild } from "@/router/index.js";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
|
// import { useRoute, useRouter, type RouteRecordNormalized, type _RouteRecordBase } from "vue-router";
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
|
|
||||||
|
// declare interface SideBarRouteRecordNormalized extends RouteRecordNormalized
|
||||||
|
// {
|
||||||
|
// hidden?: boolean;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// declare interface SideBarRouteRecordSingleView extends _RouteRecordBase
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "LayoutAside",
|
name: "LayoutAside",
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
const userRout = useRoute();
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const routes = router.getRoutes();// as SideBarRouteRecordNormalized[];
|
const routes = router.getRoutes();// as SideBarRouteRecordNormalized[];
|
||||||
|
|
||||||
const currentPath = computed(() =>
|
const currentPath = computed(() =>
|
||||||
{
|
{
|
||||||
return userRout.path;
|
return useRoute().path;
|
||||||
});
|
});
|
||||||
|
|
||||||
return { userRout, routes, currentPath, hasOnlyChild, };
|
return { routes, currentPath, hasOnlyChild, };
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<span class="company-name">CPIC</span>
|
<span class="company-name">CPIC</span>
|
||||||
<div class="version-wrapper">
|
<div class="version-wrapper">
|
||||||
<span>桌面霸屏后台管理</span>
|
<span>桌面霸屏后台管理</span>
|
||||||
<span>Build-20240111</span>
|
<span>Build-20230915</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons-wrapper">
|
<div class="buttons-wrapper">
|
||||||
<component
|
<component
|
||||||
|
|
|
@ -16,9 +16,6 @@ interface BIReportType
|
||||||
reportTypeName: string;
|
reportTypeName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 导入报表的请求对象
|
|
||||||
*/
|
|
||||||
interface ImportBIReportRequest
|
interface ImportBIReportRequest
|
||||||
{
|
{
|
||||||
filePath: string,
|
filePath: string,
|
||||||
|
@ -27,127 +24,21 @@ interface ImportBIReportRequest
|
||||||
sheetIndex: number,
|
sheetIndex: number,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 导入报表的相应对象
|
|
||||||
*/
|
|
||||||
interface ImportBIReportResponse
|
interface ImportBIReportResponse
|
||||||
{
|
|
||||||
success: boolean, // 请求成功标志
|
|
||||||
message: string, // 请求结果说明
|
|
||||||
importedCount: number, // 导入记录的数量
|
|
||||||
}
|
|
||||||
|
|
||||||
// BI坐席渗透率报表记录
|
|
||||||
interface BITelsalerAttachingRateRecord
|
|
||||||
{
|
|
||||||
departmentName: string; // 部门
|
|
||||||
telsalerName: string; // 经办人
|
|
||||||
motoPremium: number; // 车险保费
|
|
||||||
nomotoPremium: number; // 非车险保费
|
|
||||||
motoPremiumProportion: number; // 车险保费占比
|
|
||||||
attachingRate: number; // 保费渗透率
|
|
||||||
attachingRateChange: number; // 渗透率环比上月
|
|
||||||
customerHandleRate: number; // 当月客户渗透率
|
|
||||||
customerHandleRateChange: number; // 客户渗透率环比上月
|
|
||||||
noMotoPremiumPerCustomer: number; // 当月车非客均保费
|
|
||||||
noMotoPremiumPerCustomerChange: number; // 客均保费环比上月
|
|
||||||
}
|
|
||||||
|
|
||||||
interface QueryBITelsalerAttachingRateReportResponse
|
|
||||||
{
|
{
|
||||||
success: boolean,
|
success: boolean,
|
||||||
message: string,
|
message: string,
|
||||||
records: BITelsalerAttachingRateRecord[];
|
importedCount: number,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ImportBIReportResponseHandler = ( response: ImportBIReportResponse, error?: any ) => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BI坐席续保率报表记录
|
*
|
||||||
*/
|
|
||||||
interface BITelsalerRenewalRateRecord
|
|
||||||
{
|
|
||||||
责任部门: string;
|
|
||||||
责任人: string;
|
|
||||||
机构目标值: number;
|
|
||||||
到期数全月: number;
|
|
||||||
序时到期数占比: number;
|
|
||||||
个车续保率序时: number;
|
|
||||||
个车续保率全月: number;
|
|
||||||
环比昨日: number;
|
|
||||||
环比上月: number;
|
|
||||||
平均提前签单天数: number;
|
|
||||||
环比: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface QueryBITelsalerRenewalRateReportResponse
|
|
||||||
{
|
|
||||||
success: boolean;
|
|
||||||
message: string;
|
|
||||||
records: BITelsalerRenewalRateRecord[];
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 机构 ***/
|
|
||||||
// 机构渗透率
|
|
||||||
/**
|
|
||||||
* 机构渗漏率报表记录
|
|
||||||
*/
|
|
||||||
interface BIDepartmentAttachingRateRecord
|
|
||||||
{
|
|
||||||
departmentName: string;
|
|
||||||
departmentObject: number;
|
|
||||||
objectGap: number;
|
|
||||||
motoPremium: number;
|
|
||||||
motoPremiumProPortion: number;
|
|
||||||
nomotoPremium: number;
|
|
||||||
attachingRate: number;
|
|
||||||
attachingRateChange: number;
|
|
||||||
motoInsuranceCustomerCount: number;
|
|
||||||
customerHandleRate: number;
|
|
||||||
customerHandleRateChange: number;
|
|
||||||
premiumPerCustomer: number;
|
|
||||||
premiumPerCustomerChange: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface QueryBIDepartmentAttachingRateResponse
|
|
||||||
{
|
|
||||||
success: boolean;
|
|
||||||
message: string;
|
|
||||||
records: BIDepartmentAttachingRateRecord[];
|
|
||||||
}
|
|
||||||
|
|
||||||
// 机构续保率
|
|
||||||
interface BIDepartmentRenewalRateRecord
|
|
||||||
{
|
|
||||||
责任部门: string;
|
|
||||||
机构目标值: number;
|
|
||||||
到期数全月: number;
|
|
||||||
序时到期数占比: number;
|
|
||||||
个车续保率序时: number;
|
|
||||||
个车续保率全月: number;
|
|
||||||
环比昨日: number;
|
|
||||||
环比上月: number;
|
|
||||||
平均提前签单天数: number;
|
|
||||||
环比: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface QueryBIDepartmentRenewalRateResponse
|
|
||||||
{
|
|
||||||
success: boolean;
|
|
||||||
message: string;
|
|
||||||
records: BIDepartmentRenewalRateRecord[];
|
|
||||||
}
|
|
||||||
|
|
||||||
type ImportBIReportResponseHandler = ( response: ImportBIReportResponse, error: any ) => void;
|
|
||||||
type QueryBITelsalerAttachingRateDataHandler = ( response: QueryBITelsalerAttachingRateReportResponse, error: any ) => void;
|
|
||||||
type QueryBITelsalerRenewalRateDataHandler = ( response: QueryBITelsalerRenewalRateReportResponse, error: any ) => void;
|
|
||||||
type QueryBIDepartmentAttachingRateDataHandler = ( response: QueryBIDepartmentAttachingRateResponse, error: any ) => void;
|
|
||||||
type QueryBIDepartmentRenewalRateDataHandler = ( response: QueryBIDepartmentRenewalRateResponse, error: any ) => void;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 请求导入BI报表
|
|
||||||
* @param request 请求参数
|
* @param request 请求参数
|
||||||
* @param handler 调用者提供的请求结果处理函数
|
* @param handler 调用者提供的请求结果处理函数
|
||||||
*/
|
*/
|
||||||
function importBIReport( request: ImportBIReportRequest, handler: ImportBIReportResponseHandler ): void
|
function importBIReport( request: ImportBIReportRequest, handler: any ): void
|
||||||
{
|
{
|
||||||
const importResponse: ImportBIReportResponse = {
|
const importResponse: ImportBIReportResponse = {
|
||||||
success: false,
|
success: false,
|
||||||
|
@ -165,7 +56,7 @@ function importBIReport( request: ImportBIReportRequest, handler: ImportBIReport
|
||||||
const data: ImportBIReportResponse = response.data;
|
const data: ImportBIReportResponse = response.data;
|
||||||
|
|
||||||
importResponse.success = data.success ?? false;
|
importResponse.success = data.success ?? false;
|
||||||
importResponse.message = data.message ?? "请求完成,但服务器未返回请求结果消息!";
|
importResponse.message = data.message ?? "";
|
||||||
importResponse.importedCount = data.importedCount ?? 0;
|
importResponse.importedCount = data.importedCount ?? 0;
|
||||||
|
|
||||||
handler( importResponse, null );
|
handler( importResponse, null );
|
||||||
|
@ -179,178 +70,10 @@ function importBIReport( request: ImportBIReportRequest, handler: ImportBIReport
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 请求BI坐席渗透率数据
|
|
||||||
* @param handler 处理请求结果的handler函数。
|
|
||||||
*/
|
|
||||||
function queryBITelsalerAttachingRateData( handler: QueryBITelsalerAttachingRateDataHandler ): void
|
|
||||||
{
|
|
||||||
const queryResponse: QueryBITelsalerAttachingRateReportResponse = {
|
|
||||||
success: false,
|
|
||||||
message: "",
|
|
||||||
records: [],
|
|
||||||
};
|
|
||||||
|
|
||||||
instance.request({
|
|
||||||
url: API_URL.URL_BI_TELSALER_ATTACHINGRATE,
|
|
||||||
method: "post",
|
|
||||||
})
|
|
||||||
.then(( response: AxiosResponse<any, any> ): void =>
|
|
||||||
{
|
|
||||||
const data = response.data ?? {};
|
|
||||||
|
|
||||||
queryResponse.success = data.success ?? false;
|
|
||||||
queryResponse.message = data.message ?? "";
|
|
||||||
queryResponse.records = data.records ?? [];
|
|
||||||
|
|
||||||
console.log( "请求BI坐席渗透率数据", queryResponse );
|
|
||||||
handler( queryResponse, null );
|
|
||||||
})
|
|
||||||
.catch(( error ): void =>
|
|
||||||
{
|
|
||||||
queryResponse.message = "请求BI坐席渗漏率报表数据时出现错误,请查看控制台消息!";
|
|
||||||
queryResponse.success = false;
|
|
||||||
|
|
||||||
console.log( error );
|
|
||||||
|
|
||||||
handler( queryResponse, error );
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 请求BI坐席续保率数据
|
|
||||||
* @param handler 调用者提供的处理请求结果的函数。
|
|
||||||
*/
|
|
||||||
function queryBITelsalerRenewalData( handler: QueryBITelsalerRenewalRateDataHandler ): void
|
|
||||||
{
|
|
||||||
const queryResponse: QueryBITelsalerRenewalRateReportResponse = {
|
|
||||||
success: false,
|
|
||||||
message: "",
|
|
||||||
records: [],
|
|
||||||
};
|
|
||||||
|
|
||||||
instance.request({
|
|
||||||
url: API_URL.URL_BI_TELSALER_RENEWALRATE,
|
|
||||||
method: "post",
|
|
||||||
})
|
|
||||||
.then(( response: AxiosResponse<any, any> ): void =>
|
|
||||||
{
|
|
||||||
const data = response.data ?? {};
|
|
||||||
|
|
||||||
queryResponse.success = data.success ?? false;
|
|
||||||
queryResponse.message = data.message ?? "";
|
|
||||||
queryResponse.records = data.records ?? [];
|
|
||||||
|
|
||||||
console.log( "请求BI坐席续保率数据", queryResponse );
|
|
||||||
handler( queryResponse, null );
|
|
||||||
})
|
|
||||||
.catch(( error: any ): void =>
|
|
||||||
{
|
|
||||||
queryResponse.success = false;
|
|
||||||
queryResponse.message = "查询BI坐席续保率数据失败,请查看控制台!";
|
|
||||||
|
|
||||||
console.log( error );
|
|
||||||
|
|
||||||
handler( queryResponse, error );
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 请求机构渗透率数据
|
|
||||||
* @param handler 调用者提供的处理请求结果的函数。
|
|
||||||
*/
|
|
||||||
function queryDepartmentAttachingRateData( handler: QueryBIDepartmentAttachingRateDataHandler ): void
|
|
||||||
{
|
|
||||||
const queryResponse: QueryBIDepartmentAttachingRateResponse = {
|
|
||||||
success: false,
|
|
||||||
message: "",
|
|
||||||
records: [],
|
|
||||||
};
|
|
||||||
|
|
||||||
instance.request({
|
|
||||||
url: API_URL.URL_BI_DEPARTMENT_ATTACHINGRATE,
|
|
||||||
method: "post",
|
|
||||||
})
|
|
||||||
.then(( response: AxiosResponse<any, any> ): void =>
|
|
||||||
{
|
|
||||||
const data = response.data ?? {};
|
|
||||||
|
|
||||||
queryResponse.success = data.success ?? false;
|
|
||||||
queryResponse.message = data.message ?? "请求完成,但结果未知!";
|
|
||||||
queryResponse.records = data.records ?? [];
|
|
||||||
|
|
||||||
handler( queryResponse, null );
|
|
||||||
})
|
|
||||||
.catch(( error: any ): void =>
|
|
||||||
{
|
|
||||||
queryResponse.success = false;
|
|
||||||
queryResponse.message = "查询BI机构续渗透失败,请查看控制台!";
|
|
||||||
queryResponse.records = [];
|
|
||||||
|
|
||||||
console.log( "查询BI机构渗透率失败:", error );
|
|
||||||
|
|
||||||
handler( queryResponse, error );
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 请求BI机构续保率数据
|
|
||||||
* @param handler 调用者提供的处理请求结果的函数。
|
|
||||||
*/
|
|
||||||
function queryDepartmentRenewalRateData( handler: QueryBIDepartmentRenewalRateDataHandler ): void
|
|
||||||
{
|
|
||||||
const queryResponse: QueryBIDepartmentRenewalRateResponse = {
|
|
||||||
success: false,
|
|
||||||
message: "",
|
|
||||||
records: [],
|
|
||||||
};
|
|
||||||
|
|
||||||
instance.request({
|
|
||||||
url: API_URL.URL_BI_DEPARTMENT_RENEWALRATE,
|
|
||||||
method: "post",
|
|
||||||
})
|
|
||||||
.then(( response: AxiosResponse<any, any> ): void =>
|
|
||||||
{
|
|
||||||
const data = response.data ?? {};
|
|
||||||
|
|
||||||
queryResponse.success = data.success ?? false;
|
|
||||||
queryResponse.message = data.message ?? "请求完成,但结果未知!";
|
|
||||||
queryResponse.records = data.records ?? [];
|
|
||||||
|
|
||||||
handler( queryResponse, null );
|
|
||||||
})
|
|
||||||
.catch(( error: any ): void =>
|
|
||||||
{
|
|
||||||
queryResponse.success = false;
|
|
||||||
queryResponse.message = "查询BI机构续保率失败,请查看控制台!";
|
|
||||||
queryResponse.records = [];
|
|
||||||
|
|
||||||
console.log( "查询BI机构续保率失败:", error );
|
|
||||||
|
|
||||||
handler( queryResponse, error );
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
type BIReportType,
|
type BIReportType,
|
||||||
type ImportBIReportRequest,
|
type ImportBIReportRequest,
|
||||||
type ImportBIReportResponse,
|
type ImportBIReportResponse,
|
||||||
type ImportBIReportResponseHandler,
|
type ImportBIReportResponseHandler,
|
||||||
type BITelsalerAttachingRateRecord,
|
importBIReport
|
||||||
type QueryBITelsalerAttachingRateReportResponse,
|
|
||||||
type QueryBITelsalerAttachingRateDataHandler,
|
|
||||||
type QueryBITelsalerRenewalRateDataHandler,
|
|
||||||
type BITelsalerRenewalRateRecord,
|
|
||||||
type QueryBITelsalerRenewalRateReportResponse,
|
|
||||||
type BIDepartmentAttachingRateRecord,
|
|
||||||
type QueryBIDepartmentAttachingRateResponse,
|
|
||||||
type QueryBIDepartmentAttachingRateDataHandler,
|
|
||||||
type BIDepartmentRenewalRateRecord,
|
|
||||||
type QueryBIDepartmentRenewalRateResponse,
|
|
||||||
type QueryBIDepartmentRenewalRateDataHandler,
|
|
||||||
importBIReport,
|
|
||||||
queryBITelsalerAttachingRateData,
|
|
||||||
queryBITelsalerRenewalData,
|
|
||||||
queryDepartmentAttachingRateData,
|
|
||||||
queryDepartmentRenewalRateData
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,7 +25,7 @@ interface LoginInfo
|
||||||
|
|
||||||
interface LoginCallerInfo
|
interface LoginCallerInfo
|
||||||
{
|
{
|
||||||
telsaler: string;
|
telsaler_code: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RequestResult
|
interface RequestResult
|
||||||
|
|
|
@ -7,41 +7,49 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
// 请求的url
|
|
||||||
const API_URL = {
|
const API_URL = {
|
||||||
// 登录
|
// URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
|
||||||
URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
|
// URL_LOGIN: "http://222.76.244.118:11101/admin-system/account/p13_account_check",
|
||||||
URL_LOGIN_CALLER: import.meta.env.VITE_URL_LOGIN_CALLER,
|
URL_LOGIN: "http://10.39.0.41:8081/admin-system/account/p13_account_check",
|
||||||
|
|
||||||
|
// URL_LOGIN_CALLER: "http://localhost:8080/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||||
|
// URL_LOGIN_CALLER: "http://222.76.244.118:11101/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||||
|
URL_LOGIN_CALLER: "http://10.39.0.41:8081/desktop_archievement_backend/account/query_telsaler_info.do",
|
||||||
|
|
||||||
|
// URL_DEPARTMENT_ARCHIEVEMENT: import.meta.env.VITE_URL_DEPARTMENT_ARCHIEVEMENT,
|
||||||
|
// URL_DEPARTMENT_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||||
|
URL_DEPARTMENT_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_department_archievement.do",
|
||||||
|
|
||||||
|
// URL_RANKINGLIST: "http://localhost:8080/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||||
|
// URL_RANKINGLIST: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||||
|
URL_RANKINGLIST: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_ranking_list.do",
|
||||||
|
|
||||||
// 机构业绩
|
|
||||||
URL_DEPARTMENT_ARCHIEVEMENT: import.meta.env.VITE_URL_DEPARTMENT_ARCHIEVEMENT,
|
|
||||||
// 坐席业绩查询
|
// 坐席业绩查询
|
||||||
URL_CALLER_ARCHIEVEMENT: import.meta.env.VITE_URL_CALLER_ARCHIEVEMENT,
|
// URL_CALLER_ARCHIEVEMENT: "http://222.76.244.118:11101/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||||
|
URL_CALLER_ARCHIEVEMENT: "http://10.39.0.41:8081/desktop_archievement_backend/archievement/query_caller_archievement.do",
|
||||||
// 排行榜
|
|
||||||
URL_RANKINGLIST: import.meta.env.VITE_URL_RANKINGLIST,
|
|
||||||
|
|
||||||
/** 奖项相关 **/
|
/** 奖项相关 **/
|
||||||
// 查询奖励项目
|
// 查询奖励项目
|
||||||
URL_RWARD_PROJECTS: import.meta.env.VITE_URL_RWARD_PROJECTS,
|
// URL_RWARD_PROJECTS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||||
|
URL_RWARD_PROJECTS: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/query_reward_projects.do",
|
||||||
// 查询获奖人员
|
// 查询获奖人员
|
||||||
URL_REWARD_GAINERS: import.meta.env.VITE_URL_REWARD_GAINERS,
|
URL_REWARD_GAINERS: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/query_reward_gainers.do",
|
||||||
|
// URL_REWARD_GAINERS: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/query_reward_gainers.do",
|
||||||
// 添加获奖人员
|
// 添加获奖人员
|
||||||
URL_ADD_REWARD_TELSALER: import.meta.env.VITE_URL_ADD_REWARD_TELSALER,
|
URL_ADD_REWARD_TELSALER: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/add_telsaler_reward.do",
|
||||||
|
// URL_ADD_REWARD_TELSALER: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/add_telsaler_reward.do",
|
||||||
// 更新获奖人员
|
// 更新获奖人员
|
||||||
URL_UPDATE_REWARD_TELSALER: import.meta.env.VITE_URL_UPDATE_REWARD_TELSALER,
|
URL_UPDATE_REWARD_TELSALER: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/update_telsaler_reward.do",
|
||||||
|
// URL_ADD_REWARD_TELSALER: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/update_telsaler_reward.do",
|
||||||
// 删除获奖人员
|
// 删除获奖人员
|
||||||
URL_DEL_REWARD_TELSALER: import.meta.env.VITE_URL_DEL_REWARD_TELSALER,
|
URL_DEL_REWARD_TELSALER: "http://10.39.0.41:8081/desktop_archievement_backend/rewards/delete_telsaler_reward.do",
|
||||||
|
// URL_ADD_REWARD_TELSALER: "http://222.76.244.118:11101/desktop_archievement_backend/rewards/delete_telsaler_reward.do",
|
||||||
// 上传文件
|
// 上传文件
|
||||||
URL_UPLOAD_FILE: import.meta.env.VITE_URL_UPLOAD_FILE,
|
URL_UPLOAD_FILE: "http://10.39.0.41:8081/desktop_archievement_backend/file/file-upload.do",
|
||||||
|
// URL_UPLOAD_FILE: "http://222.76.244.118:11101/desktop_archievement_backend/file/file-upload.do",
|
||||||
// 导入报表
|
// 导入报表
|
||||||
URL_IMPORT_REPORT: import.meta.env.VITE_URL_IMPORT_REPORT,
|
URL_IMPORT_REPORT: "http://10.39.0.41:8081/desktop_archievement_backend/import_bi_data/excel.do",
|
||||||
|
// URL_IMPORT_REPORT: "http://222.76.244.118:11101/desktop_archievement_backend/import_bi_data/excel.do",
|
||||||
// 请求BI报表数据
|
|
||||||
URL_BI_TELSALER_ATTACHINGRATE: import.meta.env.VITE_URL_BI_TELSALER_ATTACHINGRATE,
|
|
||||||
URL_BI_TELSALER_RENEWALRATE: import.meta.env.VITE_URL_BI_TELSALER_RENEWALRATE,
|
|
||||||
URL_BI_DEPARTMENT_ATTACHINGRATE: import.meta.env.VITE_URL_BI_DEPARTMENT_ATTACHINGRATE,
|
|
||||||
URL_BI_DEPARTMENT_RENEWALRATE: import.meta.env.VITE_URL_BI_DEPARTMENT_RENEWALRATE,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export { API_URL };
|
export { API_URL };
|
||||||
|
|
|
@ -13,7 +13,7 @@ import axios, { type AxiosInstance } from "axios";
|
||||||
const service: AxiosInstance = axios.create(
|
const service: AxiosInstance = axios.create(
|
||||||
{
|
{
|
||||||
baseURL: "",
|
baseURL: "",
|
||||||
timeout: 30000,
|
timeout: 10000,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-12-20 23:02:53
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /task_schedule/src/utils/api/systemParameters.ts
|
|
||||||
* @Description: 应用参数相关的代码
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
import { service as instance } from "@/utils/api/request.js";
|
|
||||||
|
|
||||||
interface SystemParameter
|
|
||||||
{
|
|
||||||
paramterName: string;
|
|
||||||
parameterValue: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export { type SystemParameter };
|
|
|
@ -20,9 +20,7 @@ interface DepartmentArchievement // 定义业绩对象的结构
|
||||||
total_archievement: number;
|
total_archievement: number;
|
||||||
mensual_archievement_list: number[];
|
mensual_archievement_list: number[];
|
||||||
insurance_renewal_rate: string;
|
insurance_renewal_rate: string;
|
||||||
insurance_renewal_rate_target: string;
|
|
||||||
attaching_rate: string;
|
attaching_rate: string;
|
||||||
attaching_rate_target: string;
|
|
||||||
leading_reward_gainers: string[];
|
leading_reward_gainers: string[];
|
||||||
advance_reward_gainers: string[];
|
advance_reward_gainers: string[];
|
||||||
backward_list: string[];
|
backward_list: string[];
|
||||||
|
@ -59,9 +57,7 @@ function queryDepartmentArchievement( departmentInfo: Department, render: any ):
|
||||||
total_archievement: 0,
|
total_archievement: 0,
|
||||||
mensual_archievement_list: [],
|
mensual_archievement_list: [],
|
||||||
insurance_renewal_rate: "",
|
insurance_renewal_rate: "",
|
||||||
insurance_renewal_rate_target: "",
|
|
||||||
attaching_rate: "",
|
attaching_rate: "",
|
||||||
attaching_rate_target: "",
|
|
||||||
leading_reward_gainers: [],
|
leading_reward_gainers: [],
|
||||||
advance_reward_gainers: [],
|
advance_reward_gainers: [],
|
||||||
backward_list: [],
|
backward_list: [],
|
||||||
|
@ -82,9 +78,7 @@ function queryDepartmentArchievement( departmentInfo: Department, render: any ):
|
||||||
archievement.total_archievement = data.total_archievement;
|
archievement.total_archievement = data.total_archievement;
|
||||||
archievement.mensual_archievement_list = [];
|
archievement.mensual_archievement_list = [];
|
||||||
archievement.insurance_renewal_rate = data.insurance_renewal_rate ?? "0.0";
|
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 = data.attaching_rate ?? "0.0";
|
||||||
archievement.attaching_rate_target = data.attaching_rate_target ?? "0.0";
|
|
||||||
archievement.leading_reward_gainers = data.leading_reward_gainers ?? [];
|
archievement.leading_reward_gainers = data.leading_reward_gainers ?? [];
|
||||||
archievement.advance_reward_gainers = data.advance_reward_gainers ?? [];
|
archievement.advance_reward_gainers = data.advance_reward_gainers ?? [];
|
||||||
archievement.backward_list = data.backward_list ?? [];
|
archievement.backward_list = data.backward_list ?? [];
|
||||||
|
|
|
@ -170,8 +170,6 @@ function addRewardTelsaler( data: AddRewardTelsalerRequest, handler: any ): void
|
||||||
message: "",
|
message: "",
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log( "URL:", API_URL.URL_ADD_REWARD_TELSALER );
|
|
||||||
|
|
||||||
instance.request({
|
instance.request({
|
||||||
method: "post",
|
method: "post",
|
||||||
url: API_URL.URL_ADD_REWARD_TELSALER,
|
url: API_URL.URL_ADD_REWARD_TELSALER,
|
||||||
|
|
|
@ -25,12 +25,10 @@
|
||||||
<ArchievementCompleteRateComponent
|
<ArchievementCompleteRateComponent
|
||||||
indicator="续保完成率"
|
indicator="续保完成率"
|
||||||
:percentage="ui.insurance_renewal_rate"
|
:percentage="ui.insurance_renewal_rate"
|
||||||
:warning-level="renewalRateWarningLevel(ui.insurance_renewal_rate_target)"
|
|
||||||
/>
|
/>
|
||||||
<ArchievementCompleteRateComponent
|
<ArchievementCompleteRateComponent
|
||||||
indicator="车非渗透率"
|
indicator="车非渗透率"
|
||||||
:percentage="ui.attaching_rate"
|
:percentage="ui.attaching_rate"
|
||||||
:warning-level="attachingRateWarningLevel(ui.attaching_rate_target)"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="total-archievement-charts-wrapper">
|
<div class="total-archievement-charts-wrapper">
|
||||||
|
@ -105,9 +103,7 @@ interface ui
|
||||||
chartData: number[];
|
chartData: number[];
|
||||||
totalArchievement: number;
|
totalArchievement: number;
|
||||||
attaching_rate: string;
|
attaching_rate: string;
|
||||||
attaching_rate_target: string;
|
|
||||||
insurance_renewal_rate: string; // 续保率
|
insurance_renewal_rate: string; // 续保率
|
||||||
insurance_renewal_rate_target: string; // 续保率
|
|
||||||
leading_reward_gainers: string[]; // 领跑奖
|
leading_reward_gainers: string[]; // 领跑奖
|
||||||
advance_reward_gainers: string[]; // 飞跃奖
|
advance_reward_gainers: string[]; // 飞跃奖
|
||||||
dishonorPersons: string[];
|
dishonorPersons: string[];
|
||||||
|
@ -157,9 +153,7 @@ export default {
|
||||||
chartData: [0,], // 业绩表
|
chartData: [0,], // 业绩表
|
||||||
totalArchievement: 0, // 总业绩
|
totalArchievement: 0, // 总业绩
|
||||||
attaching_rate: "", // 车非渗透率
|
attaching_rate: "", // 车非渗透率
|
||||||
attaching_rate_target: "", // 车非渗透率目标值
|
|
||||||
insurance_renewal_rate: "", // 续保率
|
insurance_renewal_rate: "", // 续保率
|
||||||
insurance_renewal_rate_target: "", // 续保率目标值
|
|
||||||
leading_reward_gainers: ["",], // 领跑奖
|
leading_reward_gainers: ["",], // 领跑奖
|
||||||
advance_reward_gainers: ["",], // 飞跃奖
|
advance_reward_gainers: ["",], // 飞跃奖
|
||||||
dishonorPersons: ["",],
|
dishonorPersons: ["",],
|
||||||
|
@ -207,9 +201,7 @@ export default {
|
||||||
// ui.chartData = data.mensual_archievement_list;
|
// ui.chartData = data.mensual_archievement_list;
|
||||||
// ui.totalArchievement = data.total_archievement;
|
// ui.totalArchievement = data.total_archievement;
|
||||||
ui.attaching_rate = data.attaching_rate;
|
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 = data.insurance_renewal_rate;
|
||||||
ui.insurance_renewal_rate_target = data.insurance_renewal_rate_target;
|
|
||||||
ui.leading_reward_gainers = data.leading_reward_gainers;
|
ui.leading_reward_gainers = data.leading_reward_gainers;
|
||||||
ui.advance_reward_gainers = data.advance_reward_gainers;
|
ui.advance_reward_gainers = data.advance_reward_gainers;
|
||||||
ui.dishonorPersons = data.backward_list;
|
ui.dishonorPersons = data.backward_list;
|
||||||
|
@ -339,52 +331,6 @@ export default {
|
||||||
clearInterval( timerHandler );
|
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 {
|
return {
|
||||||
ui,
|
ui,
|
||||||
callerInfo,
|
callerInfo,
|
||||||
|
@ -393,8 +339,6 @@ export default {
|
||||||
renderData: applyDepartmentArchievementData,
|
renderData: applyDepartmentArchievementData,
|
||||||
refresh,
|
refresh,
|
||||||
logoutDesktopArchievement,
|
logoutDesktopArchievement,
|
||||||
attachingRateWarningLevel,
|
|
||||||
renewalRateWarningLevel,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -169,7 +169,7 @@ export default {
|
||||||
{
|
{
|
||||||
// 是坐席
|
// 是坐席
|
||||||
const loginInfo: LoginCallerInfo = {
|
const loginInfo: LoginCallerInfo = {
|
||||||
telsaler: ui.account,
|
telsaler_code: ui.account,
|
||||||
};
|
};
|
||||||
|
|
||||||
// 登录
|
// 登录
|
||||||
|
|
|
@ -9,18 +9,39 @@
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="data_management_wrapper">
|
<div class="data_management_wrapper">
|
||||||
|
<!-- <div class="telsaler-dataupload-wrapper">
|
||||||
|
<el-upload
|
||||||
|
v-model="ui.fileList"
|
||||||
|
drag
|
||||||
|
action="http://localhost:8080/desktop_archievement_backend/file/file-upload.do"
|
||||||
|
:on-preview="handlePreview"
|
||||||
|
:on-remove="handleRemove"
|
||||||
|
:on-success="handleUploadSuccess"
|
||||||
|
:before-remove="beforeRemove"
|
||||||
|
:limit="1"
|
||||||
|
:on-exceed="handleExceed"
|
||||||
|
:data="ui.uploadData"
|
||||||
|
name="files"
|
||||||
|
>
|
||||||
|
<el-button type="primary">
|
||||||
|
上传
|
||||||
|
</el-button>
|
||||||
|
<template #tip>
|
||||||
|
<div class="el-upload__tip">
|
||||||
|
文件不能大于100MB。
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-upload>
|
||||||
|
</div> -->
|
||||||
<el-tabs>
|
<el-tabs>
|
||||||
<el-tab-pane label="坐席车非渗透率">
|
<el-tab-pane label="坐席车非渗透率">
|
||||||
<TelsalerAttachingRateView />
|
<TelsalerAttachingRateView />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="坐席续保率">
|
<el-tab-pane label="坐席续保率">
|
||||||
<TelsalerRenewalRateView />
|
坐席车非渗透率
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="机构渗透率">
|
<el-tab-pane label="机构">
|
||||||
<DepartmentAttachingRateView />
|
坐席车非渗透率
|
||||||
</el-tab-pane>
|
|
||||||
<el-tab-pane label="机构续保率">
|
|
||||||
<DepartmentRenewalRateView />
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,13 +50,9 @@
|
||||||
import { ref, reactive } from "vue";
|
import { ref, reactive } from "vue";
|
||||||
import { ElMessage, ElMessageBox, type UploadFile, type UploadFiles, type UploadProps, type UploadUserFile } from "element-plus";
|
import { ElMessage, ElMessageBox, type UploadFile, type UploadFiles, type UploadProps, type UploadUserFile } from "element-plus";
|
||||||
import TelsalerAttachingRateView from "@/views/data/bi/TelsalerAttachingRateView.vue";
|
import TelsalerAttachingRateView from "@/views/data/bi/TelsalerAttachingRateView.vue";
|
||||||
import TelsalerRenewalRateView from "@/views/data/bi/TelsalerRenewalRateView.vue";
|
|
||||||
import DepartmentRenewalRateView from "@/views/data/bi/DepartmentRenewalRateView.vue";
|
|
||||||
import DepartmentAttachingRateView from "@/views/data/bi/DepartmentAttachingRateView.vue";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "DataManagement",
|
name: "DataManagement",
|
||||||
components: { TelsalerAttachingRateView, TelsalerRenewalRateView, DepartmentRenewalRateView, DepartmentAttachingRateView, },
|
components: { TelsalerAttachingRateView, },
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
const ui = reactive({
|
const ui = reactive({
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-10-17 10:56:43
|
* @Date: 2023-10-17 10:56:43
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @FilePath: /task_schedule/src/views/data/DataUploadView.vue
|
* @FilePath: /task_schedule/src/views/data/bi/BiDataUploadView.vue
|
||||||
* @Description: 上传文件用的组件
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
||||||
-->
|
-->
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
<el-upload
|
<el-upload
|
||||||
drag
|
drag
|
||||||
:action="ui.urlFileUpload"
|
action="http://222.76.244.118:11101/desktop_archievement_backend/file/file-upload.do"
|
||||||
name="files"
|
name="files"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:data="ui.uploadParameters"
|
:data="ui.uploadParameters"
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { reactive, onBeforeMount } from "vue";
|
import { reactive, ref } from "vue";
|
||||||
import {
|
import {
|
||||||
type BIReportType,
|
type BIReportType,
|
||||||
type ImportBIReportRequest,
|
type ImportBIReportRequest,
|
||||||
|
@ -70,7 +70,6 @@ import {
|
||||||
type ImportBIReportResponseHandler,
|
type ImportBIReportResponseHandler,
|
||||||
importBIReport
|
importBIReport
|
||||||
} from "@/utils/BIReport.js";
|
} from "@/utils/BIReport.js";
|
||||||
import { API_URL } from "@/utils/api/config.js";
|
|
||||||
import { type FileUploadResponse } from "@/utils/fileUpload.js";
|
import { type FileUploadResponse } from "@/utils/fileUpload.js";
|
||||||
// import { UploadFilled } from "@element-plus/icons-vue";
|
// import { UploadFilled } from "@element-plus/icons-vue";
|
||||||
import { type UploadProps, type UploadFile, type UploadFiles, ElMessage, ElMessageBox } from "element-plus";
|
import { type UploadProps, type UploadFile, type UploadFiles, ElMessage, ElMessageBox } from "element-plus";
|
||||||
|
@ -85,7 +84,6 @@ interface UI
|
||||||
hasCaption: boolean,
|
hasCaption: boolean,
|
||||||
uploadParameters: any,
|
uploadParameters: any,
|
||||||
showFileList: boolean,
|
showFileList: boolean,
|
||||||
urlFileUpload: string,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -94,43 +92,38 @@ export default {
|
||||||
reportType: {
|
reportType: {
|
||||||
type: Number,
|
type: Number,
|
||||||
require: true,
|
require: true,
|
||||||
default: (): number => 0,
|
default: (): number => -9999,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup( props )
|
setup()
|
||||||
{
|
{
|
||||||
const ui: UI = reactive({
|
const ui: UI = reactive({
|
||||||
showUI: false,
|
showUI: false,
|
||||||
selectedReportType: 0,
|
selectedReportType: 0,
|
||||||
reportType: [
|
reportType: [
|
||||||
{
|
{
|
||||||
reportTypeCode: 1,
|
reportTypeCode: 0,
|
||||||
reportTypeName: "坐席车非渗透率",
|
reportTypeName: "坐席车非渗透率",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
reportTypeCode: 2,
|
reportTypeCode: 1,
|
||||||
reportTypeName: "坐席续保率",
|
reportTypeName: "坐席续保率",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
reportTypeCode: 3,
|
reportTypeCode: 2,
|
||||||
reportTypeName: "部门车非渗透率",
|
reportTypeName: "部门车非渗透率",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
reportTypeCode: 4,
|
reportTypeCode: 3,
|
||||||
reportTypeName: "当月个车续保率跟踪报表【机构】",
|
reportTypeName: "当月个车续保率跟踪报表【机构】",
|
||||||
},
|
|
||||||
{
|
|
||||||
reportTypeCode: 10,
|
|
||||||
reportTypeName: "TWr坐席清单",
|
|
||||||
},],
|
},],
|
||||||
sheetIndex: 0,
|
sheetIndex: 0,
|
||||||
firstRow: 1,
|
firstRow: 2,
|
||||||
hasCaption: true,
|
hasCaption: true,
|
||||||
uploadParameters: {
|
uploadParameters: {
|
||||||
"task-name": "1234",
|
"task-name": "1234",
|
||||||
},
|
},
|
||||||
showFileList: false,
|
showFileList: false,
|
||||||
urlFileUpload: API_URL.URL_UPLOAD_FILE,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -221,11 +214,6 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onBeforeMount((): void =>
|
|
||||||
{
|
|
||||||
ui.selectedReportType = props.reportType;
|
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
ui,
|
ui,
|
||||||
onUploadSuccess,
|
onUploadSuccess,
|
|
@ -0,0 +1,31 @@
|
||||||
|
<!--
|
||||||
|
* @Author: Kane
|
||||||
|
* @Date: 2023-10-17 14:53:17
|
||||||
|
* @LastEditors: Kane
|
||||||
|
* @FilePath: /task_schedule/src/views/data/bi/DepartmentArchievementView.vue
|
||||||
|
* @Description:
|
||||||
|
*
|
||||||
|
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="wrapper" />
|
||||||
|
</template>
|
||||||
|
<script lang="ts">
|
||||||
|
import { reactive } from "vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DepartmentArchievementView",
|
||||||
|
setup()
|
||||||
|
{
|
||||||
|
const ui = reactive({
|
||||||
|
showUI: true,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.wrapper {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,226 +0,0 @@
|
||||||
<!--
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-10-17 14:53:17
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /task_schedule/src/views/data/bi/DepartmentAttachingRateView.vue
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="wrapper">
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-col span="24">
|
|
||||||
<el-button
|
|
||||||
type="warning"
|
|
||||||
icon="upload"
|
|
||||||
@click="showUploadFileDialog"
|
|
||||||
>
|
|
||||||
上传
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
icon="refresh"
|
|
||||||
@click="refresh"
|
|
||||||
>
|
|
||||||
刷新
|
|
||||||
</el-button>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-table
|
|
||||||
width="100%"
|
|
||||||
stripe
|
|
||||||
border
|
|
||||||
:data="tableData"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
label="部门"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="department">
|
|
||||||
<span>{{ department.row.departmentName }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="车险保费(万)"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="department">
|
|
||||||
<span>{{ department.row.motoPremium.toFixed(2) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="非车险保费(万)"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="department">
|
|
||||||
<span>{{ department.row.nomotoPremium.toFixed(2) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="渗透率"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="department">
|
|
||||||
<span>{{ department.row.attachingRate.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<div class="pagination_wrapper">
|
|
||||||
<el-pagination
|
|
||||||
v-model="ui.tableCurrentPageIndex"
|
|
||||||
class="pull_left"
|
|
||||||
size="small"
|
|
||||||
background
|
|
||||||
:page-size="ui.tablePageSize"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
|
||||||
:total="0"
|
|
||||||
@current-change="onCurrentPageIndexChange"
|
|
||||||
@size-change="onTablePageSizeChange"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="upload-dialog-wrapper"
|
|
||||||
>
|
|
||||||
<el-dialog
|
|
||||||
v-model="ui.showUploadDialog"
|
|
||||||
title="上传报表"
|
|
||||||
width="600px"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:close-on-press-escape="false"
|
|
||||||
:show-close="true"
|
|
||||||
>
|
|
||||||
<DataUploadView :report-type="3" />
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script lang="ts">
|
|
||||||
import { reactive, computed, onBeforeMount } from "vue";
|
|
||||||
import {
|
|
||||||
type BIDepartmentAttachingRateRecord,
|
|
||||||
type QueryBIDepartmentAttachingRateResponse,
|
|
||||||
type QueryBIDepartmentAttachingRateDataHandler,
|
|
||||||
queryDepartmentAttachingRateData
|
|
||||||
} from "@/utils/BIReport.js";
|
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
|
||||||
import DataUploadView from "@/views/data/DataUploadView.vue";
|
|
||||||
|
|
||||||
interface UI
|
|
||||||
{
|
|
||||||
showUI: boolean,
|
|
||||||
showUploadDialog: boolean,
|
|
||||||
tablePageSize: number,
|
|
||||||
tableCurrentPageIndex: number,
|
|
||||||
BIDepartmentAttachingRateData: BIDepartmentAttachingRateRecord[],
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "DepartmentAttachingRateView",
|
|
||||||
components: { DataUploadView, },
|
|
||||||
setup()
|
|
||||||
{
|
|
||||||
const ui: UI = reactive({
|
|
||||||
showUI: true,
|
|
||||||
showUploadDialog: false,
|
|
||||||
tablePageSize: 10,
|
|
||||||
tableCurrentPageIndex: 1,
|
|
||||||
BIDepartmentAttachingRateData: [],
|
|
||||||
});
|
|
||||||
|
|
||||||
const tableData = computed((): BIDepartmentAttachingRateRecord[] =>
|
|
||||||
{
|
|
||||||
const tableCount = ui.BIDepartmentAttachingRateData.length;
|
|
||||||
const startIndex = ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 ) > tableCount ? tableCount - ui.tablePageSize : ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 );
|
|
||||||
const endIndex = ui.tablePageSize * ui.tableCurrentPageIndex;
|
|
||||||
|
|
||||||
return ui.BIDepartmentAttachingRateData.slice( startIndex, endIndex );
|
|
||||||
});
|
|
||||||
|
|
||||||
const onCurrentPageIndexChange = ( pageIndex: number ): void =>
|
|
||||||
{
|
|
||||||
ui.tableCurrentPageIndex = pageIndex;
|
|
||||||
};
|
|
||||||
|
|
||||||
const onTablePageSizeChange = ( pageSize: number ): void =>
|
|
||||||
{
|
|
||||||
ui.tablePageSize = pageSize;
|
|
||||||
};
|
|
||||||
|
|
||||||
const handler: QueryBIDepartmentAttachingRateDataHandler = ( response: QueryBIDepartmentAttachingRateResponse, error: any ): void =>
|
|
||||||
{
|
|
||||||
// 判断一下标志位
|
|
||||||
if ( response.success )
|
|
||||||
{
|
|
||||||
// 请求成功
|
|
||||||
ElMessage({
|
|
||||||
message: "更新成功",
|
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
|
|
||||||
ui.BIDepartmentAttachingRateData = response.records;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// 请求失败
|
|
||||||
ElMessageBox.confirm(
|
|
||||||
response.message,
|
|
||||||
"请求机构渗透率数据失败",
|
|
||||||
{
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
type: "warning",
|
|
||||||
center: true,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
.then((): void => {})
|
|
||||||
.catch((): void => {});
|
|
||||||
|
|
||||||
if ( error !== null )
|
|
||||||
{
|
|
||||||
console.log( "请求机构渗透率数据失败", error );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const refresh = (): void =>
|
|
||||||
{
|
|
||||||
queryDepartmentAttachingRateData( handler );
|
|
||||||
};
|
|
||||||
|
|
||||||
const showUploadFileDialog = (): void =>
|
|
||||||
{
|
|
||||||
ui.showUploadDialog = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
onBeforeMount((): void =>
|
|
||||||
{
|
|
||||||
refresh();
|
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
|
||||||
ui,
|
|
||||||
tableData,
|
|
||||||
onCurrentPageIndexChange,
|
|
||||||
onTablePageSizeChange,
|
|
||||||
showUploadFileDialog,
|
|
||||||
handler,
|
|
||||||
refresh,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.wrapper {
|
|
||||||
margin: 0px 10px 10px 10px;
|
|
||||||
|
|
||||||
>*+* {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination_wrapper {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -1,243 +0,0 @@
|
||||||
<!--
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-10 17:48:01
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /task_schedule/src/views/data/bi/DepartmentRenewalRateView.vue
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div class="wrapper">
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-button
|
|
||||||
type="warning"
|
|
||||||
icon="upload"
|
|
||||||
@click="showUploadFileDialog"
|
|
||||||
>
|
|
||||||
上传
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
icon="refresh"
|
|
||||||
@click="refresh"
|
|
||||||
>
|
|
||||||
刷新
|
|
||||||
</el-button>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-table
|
|
||||||
:data="tableData"
|
|
||||||
style="width:100%;"
|
|
||||||
border
|
|
||||||
stripe
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
label="部门"
|
|
||||||
align="center"
|
|
||||||
width="250px"
|
|
||||||
>
|
|
||||||
<template #default="dept">
|
|
||||||
<span>{{ dept.row.责任部门 }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="机构目标值"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="dept">
|
|
||||||
<span>{{ dept.row.机构目标值.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="到期数全月"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="dept">
|
|
||||||
<span>{{ dept.row.到期数全月 }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="序时到期数占比"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="dept">
|
|
||||||
<span>{{ dept.row.序时到期数占比.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="个车续保率序时"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="dept">
|
|
||||||
<span>{{ dept.row.个车续保率序时.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="个车续保率全月"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="dept">
|
|
||||||
<span>{{ dept.row.个车续保率全月.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<div class="pagination-wrapper">
|
|
||||||
<el-pagination
|
|
||||||
v-model="ui.tableCurrentPageIndex"
|
|
||||||
class="pull_left"
|
|
||||||
size="small"
|
|
||||||
background
|
|
||||||
:page-size="ui.tablePageSize"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
|
||||||
:total="0"
|
|
||||||
@current-change="onCurrentPageIndexChange"
|
|
||||||
@size-change="onTablePageSizeChange"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="upload-dialog-wrapper"
|
|
||||||
>
|
|
||||||
<el-dialog
|
|
||||||
v-model="ui.showUploadDialog"
|
|
||||||
title="上传报表"
|
|
||||||
width="600px"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:close-on-press-escape="false"
|
|
||||||
:show-close="true"
|
|
||||||
>
|
|
||||||
<DataUploadView :report-type="4" />
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script lang="ts">
|
|
||||||
import { reactive, computed, onBeforeMount } from "vue";
|
|
||||||
import {
|
|
||||||
type BIDepartmentRenewalRateRecord,
|
|
||||||
type QueryBIDepartmentRenewalRateResponse,
|
|
||||||
type QueryBIDepartmentRenewalRateDataHandler,
|
|
||||||
queryDepartmentRenewalRateData
|
|
||||||
} from "@/utils/BIReport.js";
|
|
||||||
import { ElMessageBox, ElMessage } from "element-plus";
|
|
||||||
import DataUploadView from "@/views/data/DataUploadView.vue";
|
|
||||||
|
|
||||||
interface UI
|
|
||||||
{
|
|
||||||
showUI: boolean;
|
|
||||||
showUploadDialog: boolean;
|
|
||||||
tablePageSize: number;
|
|
||||||
tableCurrentPageIndex: number;
|
|
||||||
BIDepartmentRenewalRateData: BIDepartmentRenewalRateRecord[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "DepartmentRenewalRateView",
|
|
||||||
components: { DataUploadView, },
|
|
||||||
setup()
|
|
||||||
{
|
|
||||||
const ui: UI = reactive({
|
|
||||||
showUI: true,
|
|
||||||
showUploadDialog: false,
|
|
||||||
tablePageSize: 10,
|
|
||||||
tableCurrentPageIndex: 1,
|
|
||||||
BIDepartmentRenewalRateData: [],
|
|
||||||
});
|
|
||||||
|
|
||||||
// on
|
|
||||||
const onCurrentPageIndexChange = ( pageIndex: number ): void =>
|
|
||||||
{
|
|
||||||
ui.tableCurrentPageIndex = pageIndex;
|
|
||||||
};
|
|
||||||
|
|
||||||
const onTablePageSizeChange = ( pageSize: number ): void =>
|
|
||||||
{
|
|
||||||
ui.tablePageSize = pageSize;
|
|
||||||
};
|
|
||||||
|
|
||||||
// 计算变量
|
|
||||||
const tableData = computed((): BIDepartmentRenewalRateRecord[] =>
|
|
||||||
{
|
|
||||||
const tableCount = ui.BIDepartmentRenewalRateData.length;
|
|
||||||
const startIndex = ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 ) < tableCount ? ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 ) : ( tableCount - ui.tablePageSize );
|
|
||||||
const endIndex = ui.tablePageSize * ui.tableCurrentPageIndex < tableCount ? ui.tablePageSize * ui.tableCurrentPageIndex : tableCount;
|
|
||||||
|
|
||||||
return ui.BIDepartmentRenewalRateData.slice( startIndex, endIndex );
|
|
||||||
});
|
|
||||||
|
|
||||||
// handler
|
|
||||||
const handler: QueryBIDepartmentRenewalRateDataHandler = ( response: QueryBIDepartmentRenewalRateResponse, error: any ): void =>
|
|
||||||
{
|
|
||||||
if ( response.success )
|
|
||||||
{
|
|
||||||
ui.BIDepartmentRenewalRateData = response.records;
|
|
||||||
|
|
||||||
ElMessage({
|
|
||||||
message: "更新完成",
|
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ElMessageBox.confirm(
|
|
||||||
response.message,
|
|
||||||
"请求BI机构续保率数据失败",
|
|
||||||
{
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
type: "warning",
|
|
||||||
center: true,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
.then((): void => {})
|
|
||||||
.catch((): void => {});
|
|
||||||
|
|
||||||
if ( error !== null )
|
|
||||||
{
|
|
||||||
console.log( error );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const showUploadFileDialog = (): void =>
|
|
||||||
{
|
|
||||||
ui.showUploadDialog = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
onBeforeMount((): void =>
|
|
||||||
{
|
|
||||||
refresh();
|
|
||||||
});
|
|
||||||
|
|
||||||
const refresh = (): void =>
|
|
||||||
{
|
|
||||||
queryDepartmentRenewalRateData( handler );
|
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
|
||||||
ui,
|
|
||||||
onCurrentPageIndexChange,
|
|
||||||
onTablePageSizeChange,
|
|
||||||
showUploadFileDialog,
|
|
||||||
// 计算变量
|
|
||||||
tableData,
|
|
||||||
refresh,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.wrapper {
|
|
||||||
margin: 0px 10px 10px 10px;
|
|
||||||
|
|
||||||
>*+* {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination-wrapper {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -18,71 +18,43 @@
|
||||||
>
|
>
|
||||||
上传
|
上传
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
icon="refresh"
|
|
||||||
@click="refresh"
|
|
||||||
>
|
|
||||||
刷新
|
|
||||||
</el-button>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table
|
<el-table
|
||||||
border
|
border
|
||||||
stripe
|
stripe
|
||||||
style="width:100%;"
|
style="width:100%;"
|
||||||
:data="tableData"
|
|
||||||
>
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="selection"
|
||||||
|
align="center"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="部门"
|
label="部门"
|
||||||
align="center"
|
align="center"
|
||||||
width="300"
|
width="200"
|
||||||
>
|
/>
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.departmentName }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="名称"
|
label="名称"
|
||||||
align="center"
|
align="center"
|
||||||
width="200"
|
width="200"
|
||||||
>
|
/>
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.telsalerName }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="车险保费"
|
label="车险保费(万)"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
/>
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ Math.trunc( telsaler.row.motoPremium * 10000) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="非车险保费"
|
label="非车险保费(万)"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
/>
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ Math.trunc( telsaler.row.nomotoPremium * 10000) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="当月保费渗透率"
|
label="当月保费渗透率"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
/>
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.attachingRate.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="渗透率环比上月"
|
label="渗透率环比上月"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
/>
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.attachingRateChange.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="pagination_wrapper">
|
<div class="pagination_wrapper">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
|
@ -93,7 +65,7 @@
|
||||||
:page-size="ui.tablePageSize"
|
:page-size="ui.tablePageSize"
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
:total="tableCount"
|
:total="0"
|
||||||
@current-change="onCurrentPageIndexChange"
|
@current-change="onCurrentPageIndexChange"
|
||||||
@size-change="onTablePageSizeChange"
|
@size-change="onTablePageSizeChange"
|
||||||
/>
|
/>
|
||||||
|
@ -109,42 +81,25 @@
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
:show-close="true"
|
:show-close="true"
|
||||||
>
|
>
|
||||||
<DataUploadView :report-type="1" />
|
<BiDataUploadView />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { reactive, onBeforeMount, computed } from "vue";
|
import { reactive } from "vue";
|
||||||
import {
|
import BiDataUploadView from "@/views/data/bi/BiDataUploadView.vue";
|
||||||
type BITelsalerAttachingRateRecord,
|
|
||||||
type QueryBITelsalerAttachingRateReportResponse,
|
|
||||||
type QueryBITelsalerAttachingRateDataHandler,
|
|
||||||
queryBITelsalerAttachingRateData
|
|
||||||
} from "@/utils/BIReport.js";
|
|
||||||
import DataUploadView from "@/views/data/DataUploadView.vue";
|
|
||||||
import { ElMessageBox, ElMessage } from "element-plus";
|
|
||||||
|
|
||||||
interface UI
|
|
||||||
{
|
|
||||||
showUI: boolean,
|
|
||||||
showUploadDialog: boolean,
|
|
||||||
tableCurrentPageIndex: number,
|
|
||||||
tablePageSize: number,
|
|
||||||
BITelsalerAttachingRateData: BITelsalerAttachingRateRecord[],
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TelsalerAttachingRateView",
|
name: "TelsalerAttachingRateView",
|
||||||
components: { DataUploadView, },
|
components: { BiDataUploadView, },
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
const ui: UI = reactive({
|
const ui = reactive({
|
||||||
showUI: true,
|
showUI: true,
|
||||||
showUploadDialog: false,
|
showUploadDialog: false,
|
||||||
tableCurrentPageIndex: 1,
|
tableCurrentPageIndex: 1,
|
||||||
tablePageSize: 10,
|
tablePageSize: 10,
|
||||||
BITelsalerAttachingRateData: [],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const showUploadFileDialog = (): void =>
|
const showUploadFileDialog = (): void =>
|
||||||
|
@ -162,84 +117,18 @@ export default {
|
||||||
ui.tablePageSize = pageSize;
|
ui.tablePageSize = pageSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 请求处理handler ********/
|
|
||||||
const queryBITelsalerAttachingRateDataHandler: QueryBITelsalerAttachingRateDataHandler = ( response: QueryBITelsalerAttachingRateReportResponse, error: any ): void =>
|
|
||||||
{
|
|
||||||
// 判断调用成功标志位
|
|
||||||
if ( response.success )
|
|
||||||
{
|
|
||||||
ui.BITelsalerAttachingRateData = response.records;
|
|
||||||
|
|
||||||
ElMessage({
|
|
||||||
message: "更新成功",
|
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// 错误处理
|
|
||||||
ElMessageBox.confirm(
|
|
||||||
response.message,
|
|
||||||
"请求BI坐席渗透率数据错误",
|
|
||||||
{
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
type: "warning",
|
|
||||||
center: true,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
.then((): void => {})
|
|
||||||
.catch((): void => {});
|
|
||||||
|
|
||||||
if ( error !== null )
|
|
||||||
{
|
|
||||||
console.log( error );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const tableCount = computed((): number =>
|
|
||||||
{
|
|
||||||
return ui.BITelsalerAttachingRateData.length;
|
|
||||||
});
|
|
||||||
|
|
||||||
const tableData = computed((): BITelsalerAttachingRateRecord[] =>
|
|
||||||
{
|
|
||||||
const tableCount = ui.BITelsalerAttachingRateData.length;
|
|
||||||
const startIndex = ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 ) > tableCount ? tableCount - ui.tablePageSize : ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 );
|
|
||||||
const endIndex = ui.tablePageSize * ui.tableCurrentPageIndex;
|
|
||||||
|
|
||||||
return ui.BITelsalerAttachingRateData.slice( startIndex, endIndex );
|
|
||||||
});
|
|
||||||
|
|
||||||
onBeforeMount((): void =>
|
|
||||||
{
|
|
||||||
queryBITelsalerAttachingRateData( queryBITelsalerAttachingRateDataHandler );
|
|
||||||
});
|
|
||||||
|
|
||||||
const refresh = (): void =>
|
|
||||||
{
|
|
||||||
console.log( import.meta.env.VITE_TEST );
|
|
||||||
queryBITelsalerAttachingRateData( queryBITelsalerAttachingRateDataHandler );
|
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
ui,
|
ui,
|
||||||
showUploadFileDialog,
|
showUploadFileDialog,
|
||||||
onCurrentPageIndexChange,
|
onCurrentPageIndexChange,
|
||||||
onTablePageSizeChange,
|
onTablePageSizeChange,
|
||||||
// 计算变量
|
|
||||||
tableData,
|
|
||||||
tableCount,
|
|
||||||
// 函数
|
|
||||||
queryBITelsalerAttachingRateDataHandler,
|
|
||||||
refresh,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.wrapper {
|
.wrapper {
|
||||||
margin: 0px 10px 10px 10px;
|
margin: 10px;
|
||||||
|
|
||||||
>*+* {
|
>*+* {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -1,241 +1,30 @@
|
||||||
<!--
|
src/views/data/bi/TelsalerAttachingRateView.vue<!--
|
||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-10-17 23:31:19
|
* @Date: 2023-10-17 14:41:39
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @FilePath: /task_schedule/src/views/data/bi/TelsalerRenewalRateView.vue
|
* @FilePath: /task_schedule/src/views/data/TelsalerAttachingRateView.vue
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="wrapper">
|
<div class="wrapper" />
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-button
|
|
||||||
type="warning"
|
|
||||||
icon="Upload"
|
|
||||||
@click="showUploadFileDialog"
|
|
||||||
>
|
|
||||||
上传
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
icon="refresh"
|
|
||||||
@click="refresh"
|
|
||||||
>
|
|
||||||
刷新
|
|
||||||
</el-button>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-table
|
|
||||||
border
|
|
||||||
stripe
|
|
||||||
style="width:100%;"
|
|
||||||
:data="tableData"
|
|
||||||
>
|
|
||||||
<el-table-column
|
|
||||||
label="部门"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.责任部门 }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="责任人"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.责任人 }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="到期数-全月"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.到期数全月 }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="个车续保率(序时)(%)"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.个车续保率序时.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="个车续保率(全月)(%)"
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template #default="telsaler">
|
|
||||||
<span>{{ telsaler.row.个车续保率全月.toFixed(2) + "%" }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<div class="pagination_wrapper">
|
|
||||||
<el-pagination
|
|
||||||
v-model="ui.tableCurrentPageIndex"
|
|
||||||
class="pull_left"
|
|
||||||
size="small"
|
|
||||||
background
|
|
||||||
:page-size="ui.tablePageSize"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
|
||||||
:total="0"
|
|
||||||
@current-change="onCurrentPageIndexChange"
|
|
||||||
@size-change="onTablePageSizeChange"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="upload-dialog-wrapper"
|
|
||||||
>
|
|
||||||
<el-dialog
|
|
||||||
v-model="ui.showUploadDialog"
|
|
||||||
title="上传报表"
|
|
||||||
width="600px"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:close-on-press-escape="false"
|
|
||||||
:show-close="true"
|
|
||||||
>
|
|
||||||
<DataUploadView :report-type="2" />
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { reactive, computed, onBeforeMount } from "vue";
|
import { reactive } from "vue";
|
||||||
import DataUploadView from "@/views/data/DataUploadView.vue";
|
|
||||||
import {
|
|
||||||
type QueryBITelsalerRenewalRateDataHandler,
|
|
||||||
type BITelsalerRenewalRateRecord,
|
|
||||||
type QueryBITelsalerRenewalRateReportResponse,
|
|
||||||
queryBITelsalerRenewalData
|
|
||||||
} from "@/utils/BIReport.js";
|
|
||||||
import { ElMessageBox, ElMessage } from "element-plus";
|
|
||||||
|
|
||||||
interface UI
|
|
||||||
{
|
|
||||||
showUI: boolean,
|
|
||||||
showUploadDialog: boolean,
|
|
||||||
tableCurrentPageIndex: number,
|
|
||||||
tablePageSize: number,
|
|
||||||
BITelsalerRenewalRateData: BITelsalerRenewalRateRecord[],
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TelsalerAttachingRateView",
|
name: "TelsalerAttachingRateView",
|
||||||
components: { DataUploadView, },
|
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
const ui: UI = reactive({
|
const ui = reactive({
|
||||||
showUI: true,
|
showUI: true,
|
||||||
showUploadDialog: false,
|
|
||||||
tableCurrentPageIndex: 1,
|
|
||||||
tablePageSize: 10,
|
|
||||||
BITelsalerRenewalRateData: [],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const showUploadFileDialog = (): void =>
|
|
||||||
{
|
|
||||||
ui.showUploadDialog = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
const onCurrentPageIndexChange = ( index: number ): void =>
|
|
||||||
{
|
|
||||||
ui.tableCurrentPageIndex = index;
|
|
||||||
};
|
|
||||||
|
|
||||||
const onTablePageSizeChange = ( pageSize: number ): void =>
|
|
||||||
{
|
|
||||||
ui.tablePageSize = pageSize;
|
|
||||||
};
|
|
||||||
|
|
||||||
const tableData = computed((): BITelsalerRenewalRateRecord[] =>
|
|
||||||
{
|
|
||||||
const tableCount = ui.BITelsalerRenewalRateData.length;
|
|
||||||
const startIndex = ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 ) > tableCount ? tableCount - ui.tablePageSize : ui.tablePageSize * ( ui.tableCurrentPageIndex - 1 );
|
|
||||||
const endIndex = ui.tablePageSize * ui.tableCurrentPageIndex;
|
|
||||||
|
|
||||||
return ui.BITelsalerRenewalRateData.slice( startIndex, endIndex );
|
|
||||||
});
|
|
||||||
|
|
||||||
const tableCount = computed((): number =>
|
|
||||||
{
|
|
||||||
return ui.BITelsalerRenewalRateData.length;
|
|
||||||
});
|
|
||||||
|
|
||||||
// handler
|
|
||||||
const queryBITelsalerRenewalRateDataHander: QueryBITelsalerRenewalRateDataHandler = ( response: QueryBITelsalerRenewalRateReportResponse, error: any ): void =>
|
|
||||||
{
|
|
||||||
// 判断调用成功标志位
|
|
||||||
if ( response.success )
|
|
||||||
{
|
|
||||||
ui.BITelsalerRenewalRateData = response.records;
|
|
||||||
|
|
||||||
ElMessage({
|
|
||||||
message: "更新成功",
|
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// 错误处理
|
|
||||||
ElMessageBox.confirm(
|
|
||||||
response.message,
|
|
||||||
"请求BI坐席续保率数据错误",
|
|
||||||
{
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
type: "warning",
|
|
||||||
center: true,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
.then((): void => {})
|
|
||||||
.catch((): void => {});
|
|
||||||
|
|
||||||
if ( error !== null )
|
|
||||||
{
|
|
||||||
console.log( error );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
onBeforeMount((): void =>
|
|
||||||
{
|
|
||||||
queryBITelsalerRenewalData( queryBITelsalerRenewalRateDataHander );
|
|
||||||
});
|
|
||||||
|
|
||||||
const refresh = (): void =>
|
|
||||||
{
|
|
||||||
queryBITelsalerRenewalData( queryBITelsalerRenewalRateDataHander );
|
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
|
||||||
ui,
|
|
||||||
showUploadFileDialog,
|
|
||||||
onCurrentPageIndexChange,
|
|
||||||
onTablePageSizeChange,
|
|
||||||
// 计算变量
|
|
||||||
tableData,
|
|
||||||
tableCount,
|
|
||||||
// 函数
|
|
||||||
refresh,
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.wrapper {
|
.wrapper {
|
||||||
margin: 0px 10px 10px 10px;
|
margin: 10px;
|
||||||
|
|
||||||
>*+* {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination_wrapper {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* @Date: 2023-03-23 16:05:08
|
* @Date: 2023-03-23 16:05:08
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @FilePath: /task_schedule/src/views/telsaler/TelsalerManagement.vue
|
* @FilePath: /task_schedule/src/views/telsaler/TelsalerManagement.vue
|
||||||
* @Description: 坐席管理组件
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
-->
|
-->
|
||||||
|
@ -51,19 +51,9 @@
|
||||||
>
|
>
|
||||||
查询
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button icon="refresh">
|
||||||
icon="refresh"
|
|
||||||
@click="onResetQuery"
|
|
||||||
>
|
|
||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
|
||||||
icon="upload"
|
|
||||||
type="warning"
|
|
||||||
@click="ui.showUploadDialog = true;"
|
|
||||||
>
|
|
||||||
上传
|
|
||||||
</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -112,38 +102,19 @@
|
||||||
@size-change="onTablePageSizeChange"
|
@size-change="onTablePageSizeChange"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="upload-dialog-wrapper">
|
|
||||||
<el-dialog
|
|
||||||
v-model="ui.showUploadDialog"
|
|
||||||
title="上传报表"
|
|
||||||
width="600px"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:close-on-press-escape="false"
|
|
||||||
:show-close="true"
|
|
||||||
>
|
|
||||||
<DataUploadView :report-type="10" />
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import DataUploadView from "@/views/data/DataUploadView.vue";
|
|
||||||
import { reactive, computed } from "vue";
|
import { reactive, computed } from "vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TelsalerManagement",
|
name: "TelsalerManagement",
|
||||||
components: { DataUploadView, },
|
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
const ui = reactive({
|
const ui = reactive({
|
||||||
showUploadDialog: false,
|
|
||||||
caller_code: "",
|
caller_code: "",
|
||||||
caller_name: "",
|
caller_name: "",
|
||||||
section_office_code: "",
|
section_office_code: "",
|
||||||
section_office_name: "",
|
section_office_name: "",
|
||||||
department_code: "",
|
|
||||||
department_name: "",
|
|
||||||
team_name: "",
|
|
||||||
table_current_page_index: 1,
|
table_current_page_index: 1,
|
||||||
table_page_size: 50,
|
table_page_size: 50,
|
||||||
callers: [],
|
callers: [],
|
||||||
|
@ -171,18 +142,7 @@ export default {
|
||||||
return 10 * 50 + 40;
|
return 10 * 50 + 40;
|
||||||
});
|
});
|
||||||
|
|
||||||
const onResetQuery = (): void =>
|
return { ui, onCurrentPageIndexChange, onTablePageSizeChange, tableHeight, };
|
||||||
{
|
|
||||||
ui.caller_code = "";
|
|
||||||
ui.caller_name = "";
|
|
||||||
ui.section_office_code = "";
|
|
||||||
ui.section_office_name = "";
|
|
||||||
ui.department_code = "";
|
|
||||||
ui.department_name = "";
|
|
||||||
ui.team_name = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
return { ui, onResetQuery, onCurrentPageIndexChange, onTablePageSizeChange, tableHeight, };
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* @Date: 2023-09-27 10:13:31
|
* @Date: 2023-09-27 10:13:31
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @FilePath: /task_schedule/src/views/telsaler/TelsalerManagementView.vue
|
* @FilePath: /task_schedule/src/views/telsaler/TelsalerManagementView.vue
|
||||||
* @Description: 坐席和团队管理父组件
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
-->
|
-->
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
<el-tab-pane>
|
<el-tab-pane>
|
||||||
<template #label>
|
<template #label>
|
||||||
<el-icon><Document /></el-icon>
|
<el-icon><Document /></el-icon>
|
||||||
<span>团队管理</span>
|
<span>导入导出</span>
|
||||||
</template>
|
</template>
|
||||||
导入导出
|
导入导出
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
|
@ -11,11 +11,10 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"target": "ESNext",
|
"target": "ES2015",
|
||||||
"module": "ESNext",
|
"module": "ES2015",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"strictNullChecks": true,
|
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-02-15 09:25:52
|
* @Date: 2023-02-15 09:25:52
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-11-13 10:42:29
|
* @LastEditTime: 2023-06-25 09:51:13
|
||||||
* @FilePath: /task_schedule/vite.config.js
|
* @FilePath: /task_schedule/vite.config.js
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
|
@ -19,9 +19,6 @@ export default defineConfig(( command, mode ) =>
|
||||||
|
|
||||||
return {
|
return {
|
||||||
server:{ host: "localhost", port: 5173, },
|
server:{ host: "localhost", port: 5173, },
|
||||||
build: {
|
|
||||||
outDir: "../../../输出/web",
|
|
||||||
},
|
|
||||||
plugins: [vue(),],
|
plugins: [vue(),],
|
||||||
base: "./",
|
base: "./",
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"name": "desktop_archievement_backend",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
|
@ -13,7 +13,7 @@
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
<spring.version>5.3.30</spring.version>
|
<spring.version>5.3.24</spring.version>
|
||||||
<log4j2.version>2.20.0</log4j2.version>
|
<log4j2.version>2.20.0</log4j2.version>
|
||||||
<!-- <spring.version>6.0.11</spring.version> -->
|
<!-- <spring.version>6.0.11</spring.version> -->
|
||||||
</properties>
|
</properties>
|
||||||
|
@ -162,9 +162,7 @@
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<version>3.3.2</version>
|
<version>3.3.2</version>
|
||||||
<configuration>
|
<configuration></configuration>
|
||||||
<outputDirectory>${project.build.directory}/../../../../输出/back/</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-01 15:50:40
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/mapper/QueryBIArchievementDataMapper.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.mybatis.mapper;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord;
|
|
||||||
|
|
||||||
public interface QueryBIArchievementDataMapper
|
|
||||||
{
|
|
||||||
public ArrayList<BITelsalerAttachingRateRecord> queryBITelsalerAttachingRate();
|
|
||||||
|
|
||||||
public ArrayList<BITelsalerRenewalRateRecord> queryBITesalerRenewalRate();
|
|
||||||
|
|
||||||
public ArrayList<BIDepartmentAttachingRateRecord> queryBIDepartmentAttachingRate();
|
|
||||||
|
|
||||||
public ArrayList<BIDepartmentRenewalRateRecord> queryBIDepartmentRenewalRate();
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-25 18:48:11
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/mapper/TWrTelsalerMapper.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.mybatis.mapper;
|
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import com.cpic.xim.mybatis.pojo.TWrTelsalerRecord;
|
|
||||||
|
|
||||||
public interface TWrTelsalerMapper
|
|
||||||
{
|
|
||||||
public TWrTelsalerRecord queryTWrTelsalerInfo( @Param("telsaler") String telsaler );
|
|
||||||
|
|
||||||
public void insertTWrTelsalerRecordToDB( TWrTelsalerRecord record );
|
|
||||||
|
|
||||||
public void cleanTWrTelsalerRecord();
|
|
||||||
|
|
||||||
public void cleanTWrTelsalerTeamRecord();
|
|
||||||
}
|
|
|
@ -19,14 +19,13 @@ public class BIDepartmentRenewalRateRecord
|
||||||
private double 个车续保率全月;
|
private double 个车续保率全月;
|
||||||
private double 环比昨日;
|
private double 环比昨日;
|
||||||
private double 环比上月;
|
private double 环比上月;
|
||||||
// private int 平均提前签单天数;
|
private int 平均提前签单天数;
|
||||||
// private double 环比;
|
private double 环比;
|
||||||
|
|
||||||
public BIDepartmentRenewalRateRecord()
|
public BIDepartmentRenewalRateRecord() {}
|
||||||
{}
|
|
||||||
|
|
||||||
public BIDepartmentRenewalRateRecord( String 责任部门, double 机构目标值, int 到期数全月, double 序时到期数占比,
|
public BIDepartmentRenewalRateRecord( String 责任部门, double 机构目标值, int 到期数全月, double 序时到期数占比,
|
||||||
double 个车续保率序时, double 个车续保率全月, double 环比昨日, double 环比上月 )
|
double 个车续保率序时, double 个车续保率全月, double 环比昨日, double 环比上月, int 平均提前签单天数, double 环比 )
|
||||||
{
|
{
|
||||||
this.责任部门 = 责任部门;
|
this.责任部门 = 责任部门;
|
||||||
this.机构目标值 = 机构目标值;
|
this.机构目标值 = 机构目标值;
|
||||||
|
@ -36,8 +35,8 @@ public class BIDepartmentRenewalRateRecord
|
||||||
this.个车续保率全月 = 个车续保率全月;
|
this.个车续保率全月 = 个车续保率全月;
|
||||||
this.环比昨日 = 环比昨日;
|
this.环比昨日 = 环比昨日;
|
||||||
this.环比上月 = 环比上月;
|
this.环比上月 = 环比上月;
|
||||||
// this.平均提前签单天数 = 平均提前签单天数;
|
this.平均提前签单天数 = 平均提前签单天数;
|
||||||
// this.环比 = 环比;
|
this.环比 = 环比;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String get责任部门()
|
public String get责任部门()
|
||||||
|
@ -120,6 +119,25 @@ public class BIDepartmentRenewalRateRecord
|
||||||
this.环比上月 = 环比上月;
|
this.环比上月 = 环比上月;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int get平均提前签单天数()
|
||||||
|
{
|
||||||
|
return 平均提前签单天数;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set平均提前签单天数( int 平均提前签单天数 )
|
||||||
|
{
|
||||||
|
this.平均提前签单天数 = 平均提前签单天数;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double get环比()
|
||||||
|
{
|
||||||
|
return 环比;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set环比( double 环比 )
|
||||||
|
{
|
||||||
|
this.环比 = 环比;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode()
|
public int hashCode()
|
||||||
|
@ -141,6 +159,9 @@ public class BIDepartmentRenewalRateRecord
|
||||||
result = prime * result + (int) (temp ^ (temp >>> 32));
|
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||||
temp = Double.doubleToLongBits( 环比上月 );
|
temp = Double.doubleToLongBits( 环比上月 );
|
||||||
result = prime * result + (int) (temp ^ (temp >>> 32));
|
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||||
|
result = prime * result + 平均提前签单天数;
|
||||||
|
temp = Double.doubleToLongBits( 环比 );
|
||||||
|
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,6 +196,10 @@ public class BIDepartmentRenewalRateRecord
|
||||||
return false;
|
return false;
|
||||||
if ( Double.doubleToLongBits( 环比上月 ) != Double.doubleToLongBits( other.环比上月 ) )
|
if ( Double.doubleToLongBits( 环比上月 ) != Double.doubleToLongBits( other.环比上月 ) )
|
||||||
return false;
|
return false;
|
||||||
|
if ( 平均提前签单天数 != other.平均提前签单天数 )
|
||||||
|
return false;
|
||||||
|
if ( Double.doubleToLongBits( 环比 ) != Double.doubleToLongBits( other.环比 ) )
|
||||||
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,6 +208,7 @@ public class BIDepartmentRenewalRateRecord
|
||||||
{
|
{
|
||||||
return "BIDepartmentRenewalRateRecord [责任部门=" + 责任部门 + ", 机构目标值=" + 机构目标值 + ", 到期数全月="
|
return "BIDepartmentRenewalRateRecord [责任部门=" + 责任部门 + ", 机构目标值=" + 机构目标值 + ", 到期数全月="
|
||||||
+ 到期数全月 + ", 序时到期数占比=" + 序时到期数占比 + ", 个车续保率序时=" + 个车续保率序时 + ", 个车续保率全月=" + 个车续保率全月
|
+ 到期数全月 + ", 序时到期数占比=" + 序时到期数占比 + ", 个车续保率序时=" + 个车续保率序时 + ", 个车续保率全月=" + 个车续保率全月
|
||||||
+ ", 环比昨日=" + 环比昨日 + ", 环比上月=" + 环比上月 + "]";
|
+ ", 环比昨日=" + 环比昨日 + ", 环比上月=" + 环比上月 + ", 平均提前签单天数=" + 平均提前签单天数 + ", 环比=" + 环比
|
||||||
|
+ "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
*/
|
*/
|
||||||
package com.cpic.xim.mybatis.pojo;
|
package com.cpic.xim.mybatis.pojo;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
public class BITelsalerAttachingRateRecord
|
public class BITelsalerAttachingRateRecord
|
||||||
|
@ -17,6 +18,10 @@ public class BITelsalerAttachingRateRecord
|
||||||
@JsonProperty( "departmentName" )
|
@JsonProperty( "departmentName" )
|
||||||
private String departmentName;
|
private String departmentName;
|
||||||
|
|
||||||
|
// 统计日期
|
||||||
|
@JsonProperty( "summaryDate" )
|
||||||
|
private LocalDate summaryDate;
|
||||||
|
|
||||||
// 坐席名称
|
// 坐席名称
|
||||||
@JsonProperty( "telsalerName" )
|
@JsonProperty( "telsalerName" )
|
||||||
private String telsalerName;
|
private String telsalerName;
|
||||||
|
@ -42,28 +47,29 @@ public class BITelsalerAttachingRateRecord
|
||||||
private double attachingRateChange;
|
private double attachingRateChange;
|
||||||
|
|
||||||
// 当月客户渗透率
|
// 当月客户渗透率
|
||||||
@JsonProperty( "customerHandleRate" )
|
@JsonProperty( "customerHandleRateCell" )
|
||||||
private double customerHandleRate;
|
private double customerHandleRate;
|
||||||
|
|
||||||
// 客户渗透率环比上月
|
// 客户渗透率环比上月
|
||||||
@JsonProperty( "customerHandleRateChange" )
|
@JsonProperty( "customerHandleRateChangeCell" )
|
||||||
private double customerHandleRateChange;
|
private double customerHandleRateChange;
|
||||||
|
|
||||||
// 当月车非客均保费
|
// 当月车非客均保费
|
||||||
@JsonProperty( "noMotoPremiumPerCustomer" )
|
@JsonProperty( "noMotoPremiumPerCustomerCell" )
|
||||||
private double noMotoPremiumPerCustomer;
|
private double noMotoPremiumPerCustomer;
|
||||||
|
|
||||||
// 客均保费环比上月
|
// 客均保费环比上月
|
||||||
@JsonProperty( "noMotoPremiumPerCustomerChange" )
|
@JsonProperty( "noMotoPremiumPerCustomerChangeCell" )
|
||||||
private double noMotoPremiumPerCustomerChange;
|
private double noMotoPremiumPerCustomerChange;
|
||||||
|
|
||||||
public BITelsalerAttachingRateRecord( String departmentName,
|
public BITelsalerAttachingRateRecord( String departmentName, LocalDate summaryDate,
|
||||||
String telsalerName, double motoPremium, double nomotoPremium,
|
String telsalerName, double motoPremium, double nomotoPremium,
|
||||||
double motoPremiumProportion, double attachingRate, double attachingRateChange,
|
double motoPremiumProportion, double attachingRate, double attachingRateChange,
|
||||||
double customerHandleRate, double customerHandleRateChange,
|
double customerHandleRate, double customerHandleRateChange,
|
||||||
double noMotoPremiumPerCustomer, double noMotoPremiumPerCustomerChange )
|
double noMotoPremiumPerCustomer, double noMotoPremiumPerCustomerChange )
|
||||||
{
|
{
|
||||||
this.departmentName = departmentName;
|
this.departmentName = departmentName;
|
||||||
|
this.summaryDate = summaryDate;
|
||||||
this.telsalerName = telsalerName;
|
this.telsalerName = telsalerName;
|
||||||
this.motoPremium = motoPremium;
|
this.motoPremium = motoPremium;
|
||||||
this.nomotoPremium = nomotoPremium;
|
this.nomotoPremium = nomotoPremium;
|
||||||
|
@ -123,7 +129,7 @@ public class BITelsalerAttachingRateRecord
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return "BITelsalerAttachingRateRecord [departmentName=" + departmentName + ", summaryDate="
|
return "BITelsalerAttachingRateRecord [departmentName=" + departmentName + ", summaryDate="
|
||||||
+ ", telsalerName=" + telsalerName + ", motoPremium=" + motoPremium
|
+ summaryDate + ", telsalerName=" + telsalerName + ", motoPremium=" + motoPremium
|
||||||
+ ", nomotoPremium=" + nomotoPremium + ", motoPremiumProportion="
|
+ ", nomotoPremium=" + nomotoPremium + ", motoPremiumProportion="
|
||||||
+ motoPremiumProportion + ", attachingRate=" + attachingRate
|
+ motoPremiumProportion + ", attachingRate=" + attachingRate
|
||||||
+ ", attachingRateChange=" + attachingRateChange + ", customerHandleRate="
|
+ ", attachingRateChange=" + attachingRateChange + ", customerHandleRate="
|
||||||
|
@ -138,6 +144,7 @@ public class BITelsalerAttachingRateRecord
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode());
|
result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode());
|
||||||
|
result = prime * result + ((summaryDate == null) ? 0 : summaryDate.hashCode());
|
||||||
result = prime * result + ((telsalerName == null) ? 0 : telsalerName.hashCode());
|
result = prime * result + ((telsalerName == null) ? 0 : telsalerName.hashCode());
|
||||||
long temp;
|
long temp;
|
||||||
temp = Double.doubleToLongBits( motoPremium );
|
temp = Double.doubleToLongBits( motoPremium );
|
||||||
|
@ -178,6 +185,13 @@ public class BITelsalerAttachingRateRecord
|
||||||
}
|
}
|
||||||
else if ( !departmentName.equals( other.departmentName ) )
|
else if ( !departmentName.equals( other.departmentName ) )
|
||||||
return false;
|
return false;
|
||||||
|
if ( summaryDate == null )
|
||||||
|
{
|
||||||
|
if ( other.summaryDate != null )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if ( !summaryDate.equals( other.summaryDate ) )
|
||||||
|
return false;
|
||||||
if ( telsalerName == null )
|
if ( telsalerName == null )
|
||||||
{
|
{
|
||||||
if ( other.telsalerName != null )
|
if ( other.telsalerName != null )
|
||||||
|
@ -215,6 +229,16 @@ public class BITelsalerAttachingRateRecord
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LocalDate getSummaryDate()
|
||||||
|
{
|
||||||
|
return summaryDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSummaryDate( LocalDate summaryDate )
|
||||||
|
{
|
||||||
|
this.summaryDate = summaryDate;
|
||||||
|
}
|
||||||
|
|
||||||
public String getTelsalerName()
|
public String getTelsalerName()
|
||||||
{
|
{
|
||||||
return telsalerName;
|
return telsalerName;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* @Date: 2023-10-09 21:45:39
|
* @Date: 2023-10-09 21:45:39
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/BITelsalerRenewalRateRecord.java
|
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/BITelsalerRenewalRateRecord.java
|
||||||
* @Description: BI导出的坐席续保率 Excel文件行记录。
|
* @Description: BI导出的续保率Excel文件行记录。
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -20,11 +20,12 @@ public class BITelsalerRenewalRateRecord
|
||||||
private double 个车续保率全月;
|
private double 个车续保率全月;
|
||||||
private double 环比昨日;
|
private double 环比昨日;
|
||||||
private double 环比上月;
|
private double 环比上月;
|
||||||
// private double 平均提前签单天数;
|
private double 平均提前签单天数;
|
||||||
// private double 环比;
|
private double 环比;
|
||||||
|
|
||||||
public BITelsalerRenewalRateRecord( String 责任部门, String 责任人, double 机构目标值, double 到期数全月,
|
public BITelsalerRenewalRateRecord( String 责任部门, String 责任人, double 机构目标值, double 到期数全月,
|
||||||
double 序时到期数占比, double 个车续保率序时, double 个车续保率全月, double 环比昨日, double 环比上月 )
|
double 序时到期数占比, double 个车续保率序时, double 个车续保率全月, double 环比昨日, double 环比上月,
|
||||||
|
double 平均提前签单天数, double 环比 )
|
||||||
{
|
{
|
||||||
this.责任部门 = 责任部门;
|
this.责任部门 = 责任部门;
|
||||||
this.责任人 = 责任人;
|
this.责任人 = 责任人;
|
||||||
|
@ -35,8 +36,32 @@ public class BITelsalerRenewalRateRecord
|
||||||
this.个车续保率全月 = 个车续保率全月;
|
this.个车续保率全月 = 个车续保率全月;
|
||||||
this.环比昨日 = 环比昨日;
|
this.环比昨日 = 环比昨日;
|
||||||
this.环比上月 = 环比上月;
|
this.环比上月 = 环比上月;
|
||||||
|
this.平均提前签单天数 = 平均提前签单天数;
|
||||||
|
this.环比 = 环比;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double get平均提前签单天数()
|
||||||
|
{
|
||||||
|
return 平均提前签单天数;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set平均提前签单天数( double 平均提前签单天数 )
|
||||||
|
{
|
||||||
|
this.平均提前签单天数 = 平均提前签单天数;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double get环比()
|
||||||
|
{
|
||||||
|
return 环比;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void set环比( double 环比 )
|
||||||
|
{
|
||||||
|
this.环比 = 环比;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String get责任部门()
|
public String get责任部门()
|
||||||
{
|
{
|
||||||
return 责任部门;
|
return 责任部门;
|
||||||
|
@ -69,6 +94,10 @@ public class BITelsalerRenewalRateRecord
|
||||||
result = prime * result + (int) (temp ^ (temp >>> 32));
|
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||||
temp = Double.doubleToLongBits( 环比上月 );
|
temp = Double.doubleToLongBits( 环比上月 );
|
||||||
result = prime * result + (int) (temp ^ (temp >>> 32));
|
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||||
|
temp = Double.doubleToLongBits( 平均提前签单天数 );
|
||||||
|
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||||
|
temp = Double.doubleToLongBits( 环比 );
|
||||||
|
result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,6 +139,10 @@ public class BITelsalerRenewalRateRecord
|
||||||
return false;
|
return false;
|
||||||
if ( Double.doubleToLongBits( 环比上月 ) != Double.doubleToLongBits( other.环比上月 ) )
|
if ( Double.doubleToLongBits( 环比上月 ) != Double.doubleToLongBits( other.环比上月 ) )
|
||||||
return false;
|
return false;
|
||||||
|
if ( Double.doubleToLongBits( 平均提前签单天数 ) != Double.doubleToLongBits( other.平均提前签单天数 ) )
|
||||||
|
return false;
|
||||||
|
if ( Double.doubleToLongBits( 环比 ) != Double.doubleToLongBits( other.环比 ) )
|
||||||
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +151,8 @@ public class BITelsalerRenewalRateRecord
|
||||||
{
|
{
|
||||||
return "BITelsalerRenewalRateRecord [责任部门=" + 责任部门 + ", 责任人=" + 责任人 + ", 机构目标值=" + 机构目标值
|
return "BITelsalerRenewalRateRecord [责任部门=" + 责任部门 + ", 责任人=" + 责任人 + ", 机构目标值=" + 机构目标值
|
||||||
+ ", 到期数全月=" + 到期数全月 + ", 序时到期数占比=" + 序时到期数占比 + ", 个车续保率序时=" + 个车续保率序时
|
+ ", 到期数全月=" + 到期数全月 + ", 序时到期数占比=" + 序时到期数占比 + ", 个车续保率序时=" + 个车续保率序时
|
||||||
+ ", 个车续保率全月=" + 个车续保率全月 + ", 环比昨日=" + 环比昨日 + ", 环比上月=" + 环比上月 + "]";
|
+ ", 个车续保率全月=" + 个车续保率全月 + ", 环比昨日=" + 环比昨日 + ", 环比上月=" + 环比上月 + ", 平均提前签单天数="
|
||||||
|
+ 平均提前签单天数 + ", 环比=" + 环比 + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String get责任人()
|
public String get责任人()
|
||||||
|
|
|
@ -1,755 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-24 14:34:16
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/TwrTelsalerRecord.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.mybatis.pojo;
|
|
||||||
|
|
||||||
public class TWrTelsalerRecord
|
|
||||||
{
|
|
||||||
private String 人员姓名;
|
|
||||||
private String 人员工号;
|
|
||||||
private String 籍贯;
|
|
||||||
private String 参加工作时间;
|
|
||||||
private String 入职日期;
|
|
||||||
private String 入司日期;
|
|
||||||
private String 业务类型;
|
|
||||||
private String 办公地省;
|
|
||||||
private String 办公地市;
|
|
||||||
private String 人员类别;
|
|
||||||
private String 现任岗位;
|
|
||||||
private String 现任职级;
|
|
||||||
private String 机构名称;
|
|
||||||
private String 职场分类;
|
|
||||||
private String 片区名称;
|
|
||||||
private String 团队名称;
|
|
||||||
private String 对口分公司;
|
|
||||||
private String 展业地区;
|
|
||||||
private String 招聘渠道;
|
|
||||||
private String 渠道明细;
|
|
||||||
private String 全日制最高学历;
|
|
||||||
private String 学历类型;
|
|
||||||
private String 用工性质名称;
|
|
||||||
private String 合同种类;
|
|
||||||
private String 合同类型;
|
|
||||||
private String 合同性质;
|
|
||||||
private int 合同签订次数;
|
|
||||||
private String 合同生效日期;
|
|
||||||
private String 合同到期日期;
|
|
||||||
private String 人员属性;
|
|
||||||
private String 保代员工号;
|
|
||||||
private String 职场属性;
|
|
||||||
private String 办公性质;
|
|
||||||
private String 保代人员属性;
|
|
||||||
private String 人员状态;
|
|
||||||
|
|
||||||
public TWrTelsalerRecord( String 人员姓名, String 人员工号, String 籍贯, String 参加工作时间, String 入职日期,
|
|
||||||
String 入司日期, String 业务类型, String 办公地省, String 办公地市, String 人员类别, String 现任岗位,
|
|
||||||
String 现任职级, String 机构名称, String 职场分类, String 片区名称, String 团队名称, String 对口分公司,
|
|
||||||
String 展业地区, String 招聘渠道, String 渠道明细, String 全日制最高学历, String 学历类型, String 用工性质名称,
|
|
||||||
String 合同种类, String 合同类型, String 合同性质, int 合同签订次数, String 合同生效日期, String 合同到期日期,
|
|
||||||
String 人员属性, String 保代员工号, String 职场属性, String 办公性质, String 保代人员属性, String 人员状态 )
|
|
||||||
{
|
|
||||||
this.人员姓名 = 人员姓名;
|
|
||||||
this.人员工号 = 人员工号;
|
|
||||||
this.籍贯 = 籍贯;
|
|
||||||
this.参加工作时间 = 参加工作时间;
|
|
||||||
this.入职日期 = 入职日期;
|
|
||||||
this.入司日期 = 入司日期;
|
|
||||||
this.业务类型 = 业务类型;
|
|
||||||
this.办公地省 = 办公地省;
|
|
||||||
this.办公地市 = 办公地市;
|
|
||||||
this.人员类别 = 人员类别;
|
|
||||||
this.现任岗位 = 现任岗位;
|
|
||||||
this.现任职级 = 现任职级;
|
|
||||||
this.机构名称 = 机构名称;
|
|
||||||
this.职场分类 = 职场分类;
|
|
||||||
this.片区名称 = 片区名称;
|
|
||||||
this.团队名称 = 团队名称;
|
|
||||||
this.对口分公司 = 对口分公司;
|
|
||||||
this.展业地区 = 展业地区;
|
|
||||||
this.招聘渠道 = 招聘渠道;
|
|
||||||
this.渠道明细 = 渠道明细;
|
|
||||||
this.全日制最高学历 = 全日制最高学历;
|
|
||||||
this.学历类型 = 学历类型;
|
|
||||||
this.用工性质名称 = 用工性质名称;
|
|
||||||
this.合同种类 = 合同种类;
|
|
||||||
this.合同类型 = 合同类型;
|
|
||||||
this.合同性质 = 合同性质;
|
|
||||||
this.合同签订次数 = 合同签订次数;
|
|
||||||
this.合同生效日期 = 合同生效日期;
|
|
||||||
this.合同到期日期 = 合同到期日期;
|
|
||||||
this.人员属性 = 人员属性;
|
|
||||||
this.保代员工号 = 保代员工号;
|
|
||||||
this.职场属性 = 职场属性;
|
|
||||||
this.办公性质 = 办公性质;
|
|
||||||
this.保代人员属性 = 保代人员属性;
|
|
||||||
this.人员状态 = 人员状态;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
return "TWrTelsalerRecord [人员姓名=" + 人员姓名 + ", 人员工号=" + 人员工号 + ", 籍贯=" + 籍贯 + ", 参加工作时间="
|
|
||||||
+ 参加工作时间 + ", 入职日期=" + 入职日期 + ", 入司日期=" + 入司日期 + ", 业务类型=" + 业务类型 + ", 办公地省=" + 办公地省
|
|
||||||
+ ", 办公地市=" + 办公地市 + ", 人员类别=" + 人员类别 + ", 现任岗位=" + 现任岗位 + ", 现任职级=" + 现任职级
|
|
||||||
+ ", 机构名称=" + 机构名称 + ", 职场分类=" + 职场分类 + ", 片区名称=" + 片区名称 + ", 团队名称=" + 团队名称
|
|
||||||
+ ", 对口分公司=" + 对口分公司 + ", 展业地区=" + 展业地区 + ", 招聘渠道=" + 招聘渠道 + ", 渠道明细=" + 渠道明细
|
|
||||||
+ ", 全日制最高学历=" + 全日制最高学历 + ", 学历类型=" + 学历类型 + ", 用工性质名称=" + 用工性质名称 + ", 合同种类="
|
|
||||||
+ 合同种类 + ", 合同类型=" + 合同类型 + ", 合同性质=" + 合同性质 + ", 合同签订次数=" + 合同签订次数 + ", 合同生效日期="
|
|
||||||
+ 合同生效日期 + ", 合同到期日期=" + 合同到期日期 + ", 人员属性=" + 人员属性 + ", 保代员工号=" + 保代员工号 + ", 职场属性="
|
|
||||||
+ 职场属性 + ", 办公性质=" + 办公性质 + ", 保代人员属性=" + 保代人员属性 + ", 人员状态=" + 人员状态 + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode()
|
|
||||||
{
|
|
||||||
final int prime = 31;
|
|
||||||
int result = 1;
|
|
||||||
result = prime * result + ((人员姓名 == null) ? 0 : 人员姓名.hashCode());
|
|
||||||
result = prime * result + ((人员工号 == null) ? 0 : 人员工号.hashCode());
|
|
||||||
result = prime * result + ((籍贯 == null) ? 0 : 籍贯.hashCode());
|
|
||||||
result = prime * result + ((参加工作时间 == null) ? 0 : 参加工作时间.hashCode());
|
|
||||||
result = prime * result + ((入职日期 == null) ? 0 : 入职日期.hashCode());
|
|
||||||
result = prime * result + ((入司日期 == null) ? 0 : 入司日期.hashCode());
|
|
||||||
result = prime * result + ((业务类型 == null) ? 0 : 业务类型.hashCode());
|
|
||||||
result = prime * result + ((办公地省 == null) ? 0 : 办公地省.hashCode());
|
|
||||||
result = prime * result + ((办公地市 == null) ? 0 : 办公地市.hashCode());
|
|
||||||
result = prime * result + ((人员类别 == null) ? 0 : 人员类别.hashCode());
|
|
||||||
result = prime * result + ((现任岗位 == null) ? 0 : 现任岗位.hashCode());
|
|
||||||
result = prime * result + ((现任职级 == null) ? 0 : 现任职级.hashCode());
|
|
||||||
result = prime * result + ((机构名称 == null) ? 0 : 机构名称.hashCode());
|
|
||||||
result = prime * result + ((职场分类 == null) ? 0 : 职场分类.hashCode());
|
|
||||||
result = prime * result + ((片区名称 == null) ? 0 : 片区名称.hashCode());
|
|
||||||
result = prime * result + ((团队名称 == null) ? 0 : 团队名称.hashCode());
|
|
||||||
result = prime * result + ((对口分公司 == null) ? 0 : 对口分公司.hashCode());
|
|
||||||
result = prime * result + ((展业地区 == null) ? 0 : 展业地区.hashCode());
|
|
||||||
result = prime * result + ((招聘渠道 == null) ? 0 : 招聘渠道.hashCode());
|
|
||||||
result = prime * result + ((渠道明细 == null) ? 0 : 渠道明细.hashCode());
|
|
||||||
result = prime * result + ((全日制最高学历 == null) ? 0 : 全日制最高学历.hashCode());
|
|
||||||
result = prime * result + ((学历类型 == null) ? 0 : 学历类型.hashCode());
|
|
||||||
result = prime * result + ((用工性质名称 == null) ? 0 : 用工性质名称.hashCode());
|
|
||||||
result = prime * result + ((合同种类 == null) ? 0 : 合同种类.hashCode());
|
|
||||||
result = prime * result + ((合同类型 == null) ? 0 : 合同类型.hashCode());
|
|
||||||
result = prime * result + ((合同性质 == null) ? 0 : 合同性质.hashCode());
|
|
||||||
result = prime * result + 合同签订次数;
|
|
||||||
result = prime * result + ((合同生效日期 == null) ? 0 : 合同生效日期.hashCode());
|
|
||||||
result = prime * result + ((合同到期日期 == null) ? 0 : 合同到期日期.hashCode());
|
|
||||||
result = prime * result + ((人员属性 == null) ? 0 : 人员属性.hashCode());
|
|
||||||
result = prime * result + ((保代员工号 == null) ? 0 : 保代员工号.hashCode());
|
|
||||||
result = prime * result + ((职场属性 == null) ? 0 : 职场属性.hashCode());
|
|
||||||
result = prime * result + ((办公性质 == null) ? 0 : 办公性质.hashCode());
|
|
||||||
result = prime * result + ((保代人员属性 == null) ? 0 : 保代人员属性.hashCode());
|
|
||||||
result = prime * result + ((人员状态 == null) ? 0 : 人员状态.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;
|
|
||||||
TWrTelsalerRecord other = (TWrTelsalerRecord) obj;
|
|
||||||
if ( 人员姓名 == null )
|
|
||||||
{
|
|
||||||
if ( other.人员姓名 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !人员姓名.equals( other.人员姓名 ) )
|
|
||||||
return false;
|
|
||||||
if ( 人员工号 == null )
|
|
||||||
{
|
|
||||||
if ( other.人员工号 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !人员工号.equals( other.人员工号 ) )
|
|
||||||
return false;
|
|
||||||
if ( 籍贯 == null )
|
|
||||||
{
|
|
||||||
if ( other.籍贯 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !籍贯.equals( other.籍贯 ) )
|
|
||||||
return false;
|
|
||||||
if ( 参加工作时间 == null )
|
|
||||||
{
|
|
||||||
if ( other.参加工作时间 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !参加工作时间.equals( other.参加工作时间 ) )
|
|
||||||
return false;
|
|
||||||
if ( 入职日期 == null )
|
|
||||||
{
|
|
||||||
if ( other.入职日期 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !入职日期.equals( other.入职日期 ) )
|
|
||||||
return false;
|
|
||||||
if ( 入司日期 == null )
|
|
||||||
{
|
|
||||||
if ( other.入司日期 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !入司日期.equals( other.入司日期 ) )
|
|
||||||
return false;
|
|
||||||
if ( 业务类型 == null )
|
|
||||||
{
|
|
||||||
if ( other.业务类型 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !业务类型.equals( other.业务类型 ) )
|
|
||||||
return false;
|
|
||||||
if ( 办公地省 == null )
|
|
||||||
{
|
|
||||||
if ( other.办公地省 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !办公地省.equals( other.办公地省 ) )
|
|
||||||
return false;
|
|
||||||
if ( 办公地市 == null )
|
|
||||||
{
|
|
||||||
if ( other.办公地市 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !办公地市.equals( other.办公地市 ) )
|
|
||||||
return false;
|
|
||||||
if ( 人员类别 == null )
|
|
||||||
{
|
|
||||||
if ( other.人员类别 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !人员类别.equals( other.人员类别 ) )
|
|
||||||
return false;
|
|
||||||
if ( 现任岗位 == null )
|
|
||||||
{
|
|
||||||
if ( other.现任岗位 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !现任岗位.equals( other.现任岗位 ) )
|
|
||||||
return false;
|
|
||||||
if ( 现任职级 == null )
|
|
||||||
{
|
|
||||||
if ( other.现任职级 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !现任职级.equals( other.现任职级 ) )
|
|
||||||
return false;
|
|
||||||
if ( 机构名称 == null )
|
|
||||||
{
|
|
||||||
if ( other.机构名称 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !机构名称.equals( other.机构名称 ) )
|
|
||||||
return false;
|
|
||||||
if ( 职场分类 == null )
|
|
||||||
{
|
|
||||||
if ( other.职场分类 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !职场分类.equals( other.职场分类 ) )
|
|
||||||
return false;
|
|
||||||
if ( 片区名称 == null )
|
|
||||||
{
|
|
||||||
if ( other.片区名称 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !片区名称.equals( other.片区名称 ) )
|
|
||||||
return false;
|
|
||||||
if ( 团队名称 == null )
|
|
||||||
{
|
|
||||||
if ( other.团队名称 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !团队名称.equals( other.团队名称 ) )
|
|
||||||
return false;
|
|
||||||
if ( 对口分公司 == null )
|
|
||||||
{
|
|
||||||
if ( other.对口分公司 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !对口分公司.equals( other.对口分公司 ) )
|
|
||||||
return false;
|
|
||||||
if ( 展业地区 == null )
|
|
||||||
{
|
|
||||||
if ( other.展业地区 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !展业地区.equals( other.展业地区 ) )
|
|
||||||
return false;
|
|
||||||
if ( 招聘渠道 == null )
|
|
||||||
{
|
|
||||||
if ( other.招聘渠道 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !招聘渠道.equals( other.招聘渠道 ) )
|
|
||||||
return false;
|
|
||||||
if ( 渠道明细 == null )
|
|
||||||
{
|
|
||||||
if ( other.渠道明细 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !渠道明细.equals( other.渠道明细 ) )
|
|
||||||
return false;
|
|
||||||
if ( 全日制最高学历 == null )
|
|
||||||
{
|
|
||||||
if ( other.全日制最高学历 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !全日制最高学历.equals( other.全日制最高学历 ) )
|
|
||||||
return false;
|
|
||||||
if ( 学历类型 == null )
|
|
||||||
{
|
|
||||||
if ( other.学历类型 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !学历类型.equals( other.学历类型 ) )
|
|
||||||
return false;
|
|
||||||
if ( 用工性质名称 == null )
|
|
||||||
{
|
|
||||||
if ( other.用工性质名称 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !用工性质名称.equals( other.用工性质名称 ) )
|
|
||||||
return false;
|
|
||||||
if ( 合同种类 == null )
|
|
||||||
{
|
|
||||||
if ( other.合同种类 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !合同种类.equals( other.合同种类 ) )
|
|
||||||
return false;
|
|
||||||
if ( 合同类型 == null )
|
|
||||||
{
|
|
||||||
if ( other.合同类型 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !合同类型.equals( other.合同类型 ) )
|
|
||||||
return false;
|
|
||||||
if ( 合同性质 == null )
|
|
||||||
{
|
|
||||||
if ( other.合同性质 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !合同性质.equals( other.合同性质 ) )
|
|
||||||
return false;
|
|
||||||
if ( 合同签订次数 != other.合同签订次数 )
|
|
||||||
return false;
|
|
||||||
if ( 合同生效日期 == null )
|
|
||||||
{
|
|
||||||
if ( other.合同生效日期 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !合同生效日期.equals( other.合同生效日期 ) )
|
|
||||||
return false;
|
|
||||||
if ( 合同到期日期 == null )
|
|
||||||
{
|
|
||||||
if ( other.合同到期日期 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !合同到期日期.equals( other.合同到期日期 ) )
|
|
||||||
return false;
|
|
||||||
if ( 人员属性 == null )
|
|
||||||
{
|
|
||||||
if ( other.人员属性 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !人员属性.equals( other.人员属性 ) )
|
|
||||||
return false;
|
|
||||||
if ( 保代员工号 == null )
|
|
||||||
{
|
|
||||||
if ( other.保代员工号 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !保代员工号.equals( other.保代员工号 ) )
|
|
||||||
return false;
|
|
||||||
if ( 职场属性 == null )
|
|
||||||
{
|
|
||||||
if ( other.职场属性 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !职场属性.equals( other.职场属性 ) )
|
|
||||||
return false;
|
|
||||||
if ( 办公性质 == null )
|
|
||||||
{
|
|
||||||
if ( other.办公性质 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !办公性质.equals( other.办公性质 ) )
|
|
||||||
return false;
|
|
||||||
if ( 保代人员属性 == null )
|
|
||||||
{
|
|
||||||
if ( other.保代人员属性 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !保代人员属性.equals( other.保代人员属性 ) )
|
|
||||||
return false;
|
|
||||||
if ( 人员状态 == null )
|
|
||||||
{
|
|
||||||
if ( other.人员状态 != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !人员状态.equals( other.人员状态 ) )
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get人员姓名()
|
|
||||||
{
|
|
||||||
return 人员姓名;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set人员姓名( String 人员姓名 )
|
|
||||||
{
|
|
||||||
this.人员姓名 = 人员姓名;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get人员工号()
|
|
||||||
{
|
|
||||||
return 人员工号;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set人员工号( String 人员工号 )
|
|
||||||
{
|
|
||||||
this.人员工号 = 人员工号;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get籍贯()
|
|
||||||
{
|
|
||||||
return 籍贯;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set籍贯( String 籍贯 )
|
|
||||||
{
|
|
||||||
this.籍贯 = 籍贯;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get参加工作时间()
|
|
||||||
{
|
|
||||||
return 参加工作时间;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set参加工作时间( String 参加工作时间 )
|
|
||||||
{
|
|
||||||
this.参加工作时间 = 参加工作时间;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get入职日期()
|
|
||||||
{
|
|
||||||
return 入职日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set入职日期( String 入职日期 )
|
|
||||||
{
|
|
||||||
this.入职日期 = 入职日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get入司日期()
|
|
||||||
{
|
|
||||||
return 入司日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set入司日期( String 入司日期 )
|
|
||||||
{
|
|
||||||
this.入司日期 = 入司日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get业务类型()
|
|
||||||
{
|
|
||||||
return 业务类型;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set业务类型( String 业务类型 )
|
|
||||||
{
|
|
||||||
this.业务类型 = 业务类型;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get办公地省()
|
|
||||||
{
|
|
||||||
return 办公地省;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set办公地省( String 办公地省 )
|
|
||||||
{
|
|
||||||
this.办公地省 = 办公地省;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get办公地市()
|
|
||||||
{
|
|
||||||
return 办公地市;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set办公地市( String 办公地市 )
|
|
||||||
{
|
|
||||||
this.办公地市 = 办公地市;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get人员类别()
|
|
||||||
{
|
|
||||||
return 人员类别;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set人员类别( String 人员类别 )
|
|
||||||
{
|
|
||||||
this.人员类别 = 人员类别;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get现任岗位()
|
|
||||||
{
|
|
||||||
return 现任岗位;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set现任岗位( String 现任岗位 )
|
|
||||||
{
|
|
||||||
this.现任岗位 = 现任岗位;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get现任职级()
|
|
||||||
{
|
|
||||||
return 现任职级;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set现任职级( String 现任职级 )
|
|
||||||
{
|
|
||||||
this.现任职级 = 现任职级;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get机构名称()
|
|
||||||
{
|
|
||||||
return 机构名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set机构名称( String 机构名称 )
|
|
||||||
{
|
|
||||||
this.机构名称 = 机构名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get职场分类()
|
|
||||||
{
|
|
||||||
return 职场分类;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set职场分类( String 职场分类 )
|
|
||||||
{
|
|
||||||
this.职场分类 = 职场分类;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get片区名称()
|
|
||||||
{
|
|
||||||
return 片区名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set片区名称( String 片区名称 )
|
|
||||||
{
|
|
||||||
this.片区名称 = 片区名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get团队名称()
|
|
||||||
{
|
|
||||||
return 团队名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set团队名称( String 团队名称 )
|
|
||||||
{
|
|
||||||
this.团队名称 = 团队名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get对口分公司()
|
|
||||||
{
|
|
||||||
return 对口分公司;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set对口分公司( String 对口分公司 )
|
|
||||||
{
|
|
||||||
this.对口分公司 = 对口分公司;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get展业地区()
|
|
||||||
{
|
|
||||||
return 展业地区;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set展业地区( String 展业地区 )
|
|
||||||
{
|
|
||||||
this.展业地区 = 展业地区;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get招聘渠道()
|
|
||||||
{
|
|
||||||
return 招聘渠道;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set招聘渠道( String 招聘渠道 )
|
|
||||||
{
|
|
||||||
this.招聘渠道 = 招聘渠道;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get渠道明细()
|
|
||||||
{
|
|
||||||
return 渠道明细;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set渠道明细( String 渠道明细 )
|
|
||||||
{
|
|
||||||
this.渠道明细 = 渠道明细;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get全日制最高学历()
|
|
||||||
{
|
|
||||||
return 全日制最高学历;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set全日制最高学历( String 全日制最高学历 )
|
|
||||||
{
|
|
||||||
this.全日制最高学历 = 全日制最高学历;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get学历类型()
|
|
||||||
{
|
|
||||||
return 学历类型;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set学历类型( String 学历类型 )
|
|
||||||
{
|
|
||||||
this.学历类型 = 学历类型;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get用工性质名称()
|
|
||||||
{
|
|
||||||
return 用工性质名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set用工性质名称( String 用工性质名称 )
|
|
||||||
{
|
|
||||||
this.用工性质名称 = 用工性质名称;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get合同种类()
|
|
||||||
{
|
|
||||||
return 合同种类;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set合同种类( String 合同种类 )
|
|
||||||
{
|
|
||||||
this.合同种类 = 合同种类;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get合同类型()
|
|
||||||
{
|
|
||||||
return 合同类型;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set合同类型( String 合同类型 )
|
|
||||||
{
|
|
||||||
this.合同类型 = 合同类型;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get合同性质()
|
|
||||||
{
|
|
||||||
return 合同性质;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set合同性质( String 合同性质 )
|
|
||||||
{
|
|
||||||
this.合同性质 = 合同性质;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int get合同签订次数()
|
|
||||||
{
|
|
||||||
return 合同签订次数;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set合同签订次数( int 合同签订次数 )
|
|
||||||
{
|
|
||||||
this.合同签订次数 = 合同签订次数;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get合同生效日期()
|
|
||||||
{
|
|
||||||
return 合同生效日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set合同生效日期( String 合同生效日期 )
|
|
||||||
{
|
|
||||||
this.合同生效日期 = 合同生效日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get合同到期日期()
|
|
||||||
{
|
|
||||||
return 合同到期日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set合同到期日期( String 合同到期日期 )
|
|
||||||
{
|
|
||||||
this.合同到期日期 = 合同到期日期;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get人员属性()
|
|
||||||
{
|
|
||||||
return 人员属性;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set人员属性( String 人员属性 )
|
|
||||||
{
|
|
||||||
this.人员属性 = 人员属性;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get保代员工号()
|
|
||||||
{
|
|
||||||
return 保代员工号;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set保代员工号( String 保代员工号 )
|
|
||||||
{
|
|
||||||
this.保代员工号 = 保代员工号;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get职场属性()
|
|
||||||
{
|
|
||||||
return 职场属性;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set职场属性( String 职场属性 )
|
|
||||||
{
|
|
||||||
this.职场属性 = 职场属性;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get办公性质()
|
|
||||||
{
|
|
||||||
return 办公性质;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set办公性质( String 办公性质 )
|
|
||||||
{
|
|
||||||
this.办公性质 = 办公性质;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get保代人员属性()
|
|
||||||
{
|
|
||||||
return 保代人员属性;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set保代人员属性( String 保代人员属性 )
|
|
||||||
{
|
|
||||||
this.保代人员属性 = 保代人员属性;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get人员状态()
|
|
||||||
{
|
|
||||||
return 人员状态;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void set人员状态( String 人员状态 )
|
|
||||||
{
|
|
||||||
this.人员状态 = 人员状态;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@ public class MybatisUtils
|
||||||
{
|
{
|
||||||
private static HashMap<String, SqlSession> SessionMap = new HashMap<>(5);
|
private static HashMap<String, SqlSession> SessionMap = new HashMap<>(5);
|
||||||
private static HashMap<String, SqlSession> SessionMapBatch = new HashMap<>(5);
|
private static HashMap<String, SqlSession> SessionMapBatch = new HashMap<>(5);
|
||||||
private static HashMap<String, SqlSessionFactory> SessionFactoryMap = new HashMap<>( 5 );
|
|
||||||
private static HashMap<String, SqlSessionFactory> SessionFactoryMapBatch = new HashMap<>( 5 );
|
|
||||||
private static String DEFAULT_CONFIGFILE = "mybatis/mybatis-config.xml";
|
private static String DEFAULT_CONFIGFILE = "mybatis/mybatis-config.xml";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,45 +33,43 @@ public class MybatisUtils
|
||||||
public static SqlSession getSqlSession( String configFile ) throws IOException
|
public static SqlSession getSqlSession( String configFile ) throws IOException
|
||||||
{
|
{
|
||||||
// 根据配置文件的路径,查找是否已经创建了对应的session
|
// 根据配置文件的路径,查找是否已经创建了对应的session
|
||||||
SqlSessionFactory factory = SessionFactoryMap.get( configFile );
|
SqlSession session = SessionMap.get( configFile );
|
||||||
|
|
||||||
// 找到就直接返回
|
// 找到就直接返回
|
||||||
if ( factory != null )
|
if ( session != null )
|
||||||
{
|
{
|
||||||
return factory.openSession();
|
return session;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 没找到就创建一个
|
// 没找到就创建一个
|
||||||
InputStream configIS = Resources.getResourceAsStream( configFile );
|
InputStream configIS = Resources.getResourceAsStream( configFile );
|
||||||
factory = new SqlSessionFactoryBuilder().build( configIS );
|
SqlSessionFactory factory = new SqlSessionFactoryBuilder().build( configIS );
|
||||||
SqlSession session = factory.openSession();
|
session = factory.openSession();
|
||||||
|
|
||||||
// 保存
|
// 保存
|
||||||
SessionFactoryMap.put( configFile, factory );
|
SessionMap.put( configFile, session );
|
||||||
|
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SqlSession getSqlSessionBatch( String configFile ) throws IOException
|
public static SqlSession getSqlSessionBatch( String configFile ) throws IOException
|
||||||
{
|
{
|
||||||
// 根据配置文件的路径,查找是否已经创建了对应的session
|
SqlSession sessionBatch = SessionMapBatch.get( configFile );
|
||||||
SqlSessionFactory factory = SessionFactoryMap.get( configFile );
|
|
||||||
|
|
||||||
// 找到就直接返回
|
if ( sessionBatch != null )
|
||||||
if ( factory != null )
|
|
||||||
{
|
{
|
||||||
return factory.openSession();
|
return sessionBatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 没找到就创建一个
|
// 没有缓存的就创建一个新的
|
||||||
InputStream configIS = Resources.getResourceAsStream( configFile );
|
InputStream configIS = Resources.getResourceAsStream( configFile );
|
||||||
factory = new SqlSessionFactoryBuilder().build( configIS );
|
SqlSessionFactory factory = new SqlSessionFactoryBuilder().build( configIS );
|
||||||
SqlSession session = factory.openSession( ExecutorType.BATCH, false );
|
sessionBatch = factory.openSession(ExecutorType.BATCH, false );
|
||||||
|
|
||||||
//保存
|
//保存
|
||||||
SessionFactoryMap.put( configFile, factory );
|
SessionMapBatch.put( configFile, sessionBatch );
|
||||||
|
|
||||||
return session;
|
return sessionBatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,21 +80,21 @@ public class MybatisUtils
|
||||||
public static SqlSession getSqlSession() throws IOException
|
public static SqlSession getSqlSession() throws IOException
|
||||||
{
|
{
|
||||||
// 根据配置文件的路径,查找是否已经创建了对应的session
|
// 根据配置文件的路径,查找是否已经创建了对应的session
|
||||||
SqlSessionFactory factory = SessionFactoryMap.get( DEFAULT_CONFIGFILE );
|
SqlSession session = SessionMap.get( DEFAULT_CONFIGFILE );
|
||||||
|
|
||||||
// 找到就直接返回
|
// 找到就直接返回
|
||||||
if ( factory != null )
|
if ( session != null )
|
||||||
{
|
{
|
||||||
return factory.openSession();
|
return session;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 没找到就创建一个
|
// 没找到就创建一个
|
||||||
InputStream configIS = Resources.getResourceAsStream( DEFAULT_CONFIGFILE );
|
InputStream configIS = Resources.getResourceAsStream( DEFAULT_CONFIGFILE );
|
||||||
factory = new SqlSessionFactoryBuilder().build( configIS );
|
SqlSessionFactory factory = new SqlSessionFactoryBuilder().build( configIS );
|
||||||
SqlSession session = factory.openSession();
|
session = factory.openSession();
|
||||||
|
|
||||||
// 保存
|
// 保存
|
||||||
SessionFactoryMap.put( DEFAULT_CONFIGFILE, factory );
|
SessionMap.put( DEFAULT_CONFIGFILE, session );
|
||||||
|
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
|
@ -112,23 +108,21 @@ public class MybatisUtils
|
||||||
*/
|
*/
|
||||||
public static SqlSession getSqlSessionBatch() throws IOException
|
public static SqlSession getSqlSessionBatch() throws IOException
|
||||||
{
|
{
|
||||||
// 根据配置文件的路径,查找是否已经创建了对应的session
|
SqlSession sessionBatch = SessionMapBatch.get( DEFAULT_CONFIGFILE );
|
||||||
SqlSessionFactory factory = SessionFactoryMap.get( DEFAULT_CONFIGFILE );
|
|
||||||
|
|
||||||
// 找到就直接返回
|
if ( sessionBatch != null )
|
||||||
if ( factory != null )
|
|
||||||
{
|
{
|
||||||
return factory.openSession();
|
return sessionBatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 没找到就创建一个
|
// 没有缓存的就创建一个新的
|
||||||
InputStream configIS = Resources.getResourceAsStream( DEFAULT_CONFIGFILE );
|
InputStream configIS = Resources.getResourceAsStream( DEFAULT_CONFIGFILE );
|
||||||
factory = new SqlSessionFactoryBuilder().build( configIS );
|
SqlSessionFactory factory = new SqlSessionFactoryBuilder().build( configIS );
|
||||||
SqlSession session = factory.openSession( ExecutorType.BATCH, false );
|
sessionBatch = factory.openSession(ExecutorType.BATCH, false );
|
||||||
|
|
||||||
//保存
|
//保存
|
||||||
SessionFactoryMap.put( DEFAULT_CONFIGFILE, factory );
|
SessionMapBatch.put( DEFAULT_CONFIGFILE, sessionBatch );
|
||||||
|
|
||||||
return session;
|
return sessionBatch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,12 +41,12 @@ public final class TeleSalerInfo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询坐席工号的static方法。
|
* 查询坐席工号的static方法。
|
||||||
* @param telsaler 坐席工号
|
* @param telsalerCode 坐席工号
|
||||||
* @return TeleSalerInfo对象。
|
* @return TeleSalerInfo对象。
|
||||||
* @throws ClassNotFoundException
|
* @throws ClassNotFoundException
|
||||||
* @throws SQLException
|
* @throws SQLException
|
||||||
*/
|
*/
|
||||||
public static TeleSalerInfo queryTeleSalerInfo( String telsaler )
|
public static TeleSalerInfo queryTeleSalerInfo( String telsalerCode )
|
||||||
throws ClassNotFoundException, SQLException
|
throws ClassNotFoundException, SQLException
|
||||||
{
|
{
|
||||||
TeleSalerInfo info = null;
|
TeleSalerInfo info = null;
|
||||||
|
@ -60,32 +60,19 @@ public final class TeleSalerInfo
|
||||||
PreparedStatement statement = null;
|
PreparedStatement statement = null;
|
||||||
ResultSet result = null;
|
ResultSet result = null;
|
||||||
|
|
||||||
// String sql = """
|
String sql = """
|
||||||
// SELECT s.saler_code,
|
SELECT s.saler_code,
|
||||||
// s.saler_name,
|
s.saler_name,
|
||||||
// t.team_code,
|
t.team_code,
|
||||||
// t.team,
|
t.team,
|
||||||
// bm.department_code,
|
|
||||||
// bm.department_name
|
|
||||||
// FROM tele_saler s,
|
|
||||||
// tele_saler_team t,
|
|
||||||
// idst0.bm_t bm
|
|
||||||
// WHERE s.team_code = t.team_code
|
|
||||||
// AND t.department_code = bm.department_code
|
|
||||||
// AND (s.saler_code = ? or s.saler_name = ?) """;
|
|
||||||
String sql2 = """
|
|
||||||
select ry.人员工号 ,
|
|
||||||
ry.人员姓名,
|
|
||||||
team.team_code,
|
|
||||||
team.team_name,
|
|
||||||
bm.department_code,
|
bm.department_code,
|
||||||
bm.department_name
|
bm.department_name
|
||||||
from twr_telsaler ry,
|
FROM tele_saler s,
|
||||||
twr_telsaler_team team,
|
tele_saler_team t,
|
||||||
idst0.bm_t bm
|
idst0.bm_t bm
|
||||||
where trim(ry.团队名称) = trim(team.team_name)
|
WHERE s.team_code = t.team_code
|
||||||
and team.department_code = bm.department_code
|
AND t.department_code = bm.department_code
|
||||||
AND (ry.人员工号 = ? or ry.人员姓名 = ?)""";
|
AND s.saler_code = ? """;
|
||||||
// String sql = "SELECT DISTINCT s.saler_code, s.saler_name, \n"
|
// String sql = "SELECT DISTINCT s.saler_code, s.saler_name, \n"
|
||||||
// + " t.team_code, t.team, \n"
|
// + " t.team_code, t.team, \n"
|
||||||
// + " bm.department_code, bm.department_name \n"
|
// + " bm.department_code, bm.department_name \n"
|
||||||
|
@ -97,10 +84,9 @@ public final class TeleSalerInfo
|
||||||
{
|
{
|
||||||
Class.forName( "oracle.jdbc.driver.OracleDriver" );
|
Class.forName( "oracle.jdbc.driver.OracleDriver" );
|
||||||
connection = DriverManager.getConnection( jdbcURL, userName, password );
|
connection = DriverManager.getConnection( jdbcURL, userName, password );
|
||||||
statement = connection.prepareStatement( sql2 );
|
statement = connection.prepareStatement( sql );
|
||||||
|
|
||||||
statement.setString( 1, telsaler );
|
statement.setString( 1, telsalerCode );
|
||||||
statement.setString( 2, telsaler );
|
|
||||||
|
|
||||||
result = statement.executeQuery();
|
result = statement.executeQuery();
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,6 @@ public class CallerArchievement
|
||||||
|
|
||||||
params.put( "a_caller_code", callerCode );
|
params.put( "a_caller_code", callerCode );
|
||||||
|
|
||||||
session.clearCache();
|
|
||||||
mapper.getCallerArchievement( params );
|
mapper.getCallerArchievement( params );
|
||||||
|
|
||||||
// 总业绩
|
// 总业绩
|
||||||
|
|
|
@ -25,6 +25,36 @@ public class DepartmentArchievement
|
||||||
// log4j2
|
// log4j2
|
||||||
private static Logger logger = LoggerFactory.getLogger(DepartmentArchievement.class);
|
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 对象。
|
* 静态方法,用于根据部门代码,查询部门业绩,生成一个 DepartmentArchievement 对象。
|
||||||
* @param departmentCode 部门代码
|
* @param departmentCode 部门代码
|
||||||
|
@ -47,22 +77,19 @@ public class DepartmentArchievement
|
||||||
|
|
||||||
params.put("a_department_code", departmentCode);
|
params.put("a_department_code", departmentCode);
|
||||||
|
|
||||||
session.clearCache();
|
|
||||||
mapper.getDepartmentArchievement(params);
|
mapper.getDepartmentArchievement(params);
|
||||||
|
|
||||||
Integer totalArchievement = (Integer)params.get("a_total");
|
Integer totalArchievement = (Integer)params.get("a_total");
|
||||||
String attachingRate = (String)params.get("a_attaching_rate");
|
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 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");
|
ArrayList<MensualArchievementItem> mensual = (ArrayList<MensualArchievementItem>)params.get("a_mensual_cur");
|
||||||
|
|
||||||
archievement = new DepartmentArchievement(
|
archievement = new DepartmentArchievement(
|
||||||
departmentCode,
|
departmentCode,
|
||||||
totalArchievement.intValue(),
|
totalArchievement.intValue(),
|
||||||
mensual,
|
mensual,
|
||||||
renewalRate, renewalRateTarget,
|
renewalRate,
|
||||||
attachingRate, attachingRateTarget);
|
attachingRate);
|
||||||
}
|
}
|
||||||
catch ( IOException error )
|
catch ( IOException error )
|
||||||
{
|
{
|
||||||
|
@ -76,67 +103,6 @@ public class DepartmentArchievement
|
||||||
return archievement;
|
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()
|
public long getTotalArchievement()
|
||||||
{
|
{
|
||||||
return totalArchievement;
|
return totalArchievement;
|
||||||
|
@ -172,117 +138,11 @@ public class DepartmentArchievement
|
||||||
return attachingRate;
|
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 )
|
public void setAttachingRate( String attachingRate )
|
||||||
{
|
{
|
||||||
this.attachingRate = 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()
|
public String getDepartmentCode()
|
||||||
{
|
{
|
||||||
return departmentCode;
|
return departmentCode;
|
||||||
|
@ -292,4 +152,21 @@ public class DepartmentArchievement
|
||||||
{
|
{
|
||||||
this.departmentCode = departmentCode;
|
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; // 车非渗透率
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,24 +34,21 @@ public final class ImportBIExcelData
|
||||||
{
|
{
|
||||||
private static Logger logger = LoggerFactory.getLogger( ImportBIExcelData.class );
|
private static Logger logger = LoggerFactory.getLogger( ImportBIExcelData.class );
|
||||||
|
|
||||||
// 坐席 渗透率
|
|
||||||
private static String[] TelsalerAttachingRateExcelTitle = new String[]
|
private static String[] TelsalerAttachingRateExcelTitle = new String[]
|
||||||
{ "部门", "经办", "车险保费(万)", "车险保费占比", "非车保费(万)", "当月保费渗透率", "保费渗透率环比上月", "当月客户渗透率", "客户渗透率环比上月",
|
{ "部门", "经办", "车险保费(万)", "车险保费占比", "非车保费(万)", "当月保费渗透率", "保费渗透率环比上月", "当月客户渗透率", "客户渗透率环比上月",
|
||||||
"当月车非客均保费", "客均保费环比上月"};
|
"当月车非客均保费", "客均保费环比上月"};
|
||||||
|
|
||||||
// 坐席 续保率
|
|
||||||
private static String[] TelSalerRenewalRateExcelTitle = new String[]
|
private static String[] TelSalerRenewalRateExcelTitle = new String[]
|
||||||
{ "责任部门", "责任人", "机构目标值1(%)", "到期数-全月", "序时到期数占比(%)", "个车续保率(序时)(%)", "个车续保率(全月)(%)", "环比昨日(%)",
|
{ "责任部门", "责任人", "机构目标值1(%)", "到期数-全月", "序时到期数占比(%)", "个车续保率(序时)(%)", "个车续保率(全月)(%)", "环比昨日(%)",
|
||||||
"环比上月(%)", "序时-部门内", "全月-部门内"};
|
"环比上月(%)", "平均提前签单天数", "环比"};
|
||||||
|
|
||||||
// 机构 渗透率
|
|
||||||
private static String[] DepartmentAttachingRateExcelTitle = new String[]
|
private static String[] DepartmentAttachingRateExcelTitle = new String[]
|
||||||
{ "部门", "目标值-机构", "目标差距", "车险保费(万)", "车险保费占比", "非车保费(万)", "当月保费渗透率", "保费渗透率环比上月", "车险客户数", "当月客户渗透率",
|
{ "部门", "目标值-机构", "目标差距", "车险保费(万)", "车险保费占比", "非车保费(万)", "当月保费渗透率", "保费渗透率环比上月", "车险客户数", "当月客户渗透率",
|
||||||
"客户渗透率环比上月", "当月车非客均保费", "客均保费环比上月"};
|
"客户渗透率环比上月", "当月车非客均保费", "客均保费环比上月"};
|
||||||
// 机构 续保率
|
|
||||||
private static String[] DepartmentRenewalRateExcelTitle = new String[]
|
private static String[] DepartmentRenewalRateExcelTitle = new String[]
|
||||||
{ "责任部门", "机构目标值1(%)", "到期数-全月", "序时到期数占比(%)", "个车续保率(序时)(%)", "个车续保率(全月)(%)", "环比昨日(%)",
|
{ "责任部门", "机构目标值1(%)", "到期数-全月", "序时到期数占比(%)", "个车续保率(序时)(%)", "个车续保率(全月)(%)", "环比昨日(%)",
|
||||||
"环比上月(%)", "序时-部门内", "全月-部门内",};
|
"环比上月(%)", "平均提前签单天数", "环比",};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用于通过对比标题行判断excel文件格式的函数。
|
* 用于通过对比标题行判断excel文件格式的函数。
|
||||||
|
@ -98,8 +95,6 @@ public final class ImportBIExcelData
|
||||||
{
|
{
|
||||||
String cellString = MyPOIUtils.getStringCellValue( cell );
|
String cellString = MyPOIUtils.getStringCellValue( cell );
|
||||||
|
|
||||||
logger.info( "比较报表标题行,待导入报表标题:" + cellString + ";验证标题:" + title[cellIndex] );
|
|
||||||
|
|
||||||
if ( !cellString.equals( title[cellIndex] ) )
|
if ( !cellString.equals( title[cellIndex] ) )
|
||||||
{
|
{
|
||||||
result = false;
|
result = false;
|
||||||
|
@ -213,7 +208,7 @@ public final class ImportBIExcelData
|
||||||
MyPOIUtils.getNumbericCellValue( row, 10 ) * 100;
|
MyPOIUtils.getNumbericCellValue( row, 10 ) * 100;
|
||||||
|
|
||||||
BITelsalerAttachingRateRecord record = new BITelsalerAttachingRateRecord(
|
BITelsalerAttachingRateRecord record = new BITelsalerAttachingRateRecord(
|
||||||
departmentName, name, motoPremium, nomotoPremium,
|
departmentName, LocalDate.now(), name, motoPremium, nomotoPremium,
|
||||||
motoPremiumProPortion, attachingRate, attachingRateChange,
|
motoPremiumProPortion, attachingRate, attachingRateChange,
|
||||||
customerHandleRateCell, customerHandleRateChangeCell,
|
customerHandleRateCell, customerHandleRateChangeCell,
|
||||||
noMotoPremiumPerCustomerCell, noMotoPremiumPerCustomerChangeCell );
|
noMotoPremiumPerCustomerCell, noMotoPremiumPerCustomerChangeCell );
|
||||||
|
@ -325,11 +320,11 @@ public final class ImportBIExcelData
|
||||||
double 个车续保率全月 = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100;
|
double 个车续保率全月 = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100;
|
||||||
double 环比昨日 = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100;
|
double 环比昨日 = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100;
|
||||||
double 环比上月 = MyPOIUtils.getNumbericCellValue( row, 8 ) * 100;
|
double 环比上月 = MyPOIUtils.getNumbericCellValue( row, 8 ) * 100;
|
||||||
// double 平均提前签单天数 = MyPOIUtils.getNumbericCellValue( row, 9 );
|
double 平均提前签单天数 = MyPOIUtils.getNumbericCellValue( row, 9 );
|
||||||
// double 环比 = MyPOIUtils.getNumbericCellValue( row, 10 );
|
double 环比 = MyPOIUtils.getNumbericCellValue( row, 10 );
|
||||||
|
|
||||||
BITelsalerRenewalRateRecord record = new BITelsalerRenewalRateRecord( 责任部门, 责任人,
|
BITelsalerRenewalRateRecord record = new BITelsalerRenewalRateRecord( 责任部门, 责任人,
|
||||||
机构目标值, 到期数全月, 序时到期数占比, 个车续保率序时, 个车续保率全月, 环比昨日, 环比上月 );
|
机构目标值, 到期数全月, 序时到期数占比, 个车续保率序时, 个车续保率全月, 环比昨日, 环比上月, 平均提前签单天数, 环比 );
|
||||||
|
|
||||||
records.add( record );
|
records.add( record );
|
||||||
}
|
}
|
||||||
|
@ -504,11 +499,11 @@ public final class ImportBIExcelData
|
||||||
double 个车续保率全月 = MyPOIUtils.getNumbericCellValue( row, 5 ) * 100;
|
double 个车续保率全月 = MyPOIUtils.getNumbericCellValue( row, 5 ) * 100;
|
||||||
double 环比昨日 = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100;
|
double 环比昨日 = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100;
|
||||||
double 环比上月 = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100;
|
double 环比上月 = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100;
|
||||||
// int 平均提前签单天数 = (int) MyPOIUtils.getNumbericCellValue( row, 8 );
|
int 平均提前签单天数 = (int) MyPOIUtils.getNumbericCellValue( row, 8 );
|
||||||
// double 环比 = MyPOIUtils.getNumbericCellValue( row, 9 ) * 100;
|
double 环比 = MyPOIUtils.getNumbericCellValue( row, 9 ) * 100;
|
||||||
|
|
||||||
BIDepartmentRenewalRateRecord record = new BIDepartmentRenewalRateRecord( 责任部门,
|
BIDepartmentRenewalRateRecord record = new BIDepartmentRenewalRateRecord( 责任部门,
|
||||||
机构目标值, 到期数全月, 序时到期数占比, 个车续保率序时, 个车续保率全月, 环比昨日, 环比上月 );
|
机构目标值, 到期数全月, 序时到期数占比, 个车续保率序时, 个车续保率全月, 环比昨日, 环比上月, 平均提前签单天数, 环比 );
|
||||||
|
|
||||||
records.add( record );
|
records.add( record );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,192 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-24 11:09:46
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/utils/data/ImportTWRTelsalerData.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.utils.data;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
|
||||||
import org.apache.poi.ss.usermodel.Cell;
|
|
||||||
import org.apache.poi.ss.usermodel.Row;
|
|
||||||
import org.apache.poi.ss.usermodel.Sheet;
|
|
||||||
import org.apache.poi.ss.usermodel.Workbook;
|
|
||||||
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import com.cpic.xim.mybatis.pojo.TWrTelsalerRecord;
|
|
||||||
import com.cpic.xim.utils.poi.MyPOIUtils;
|
|
||||||
|
|
||||||
public class ImportTWRTelsalerData
|
|
||||||
{
|
|
||||||
private static Logger logger = LoggerFactory.getLogger( ImportTWRTelsalerData.class );
|
|
||||||
private static String[] TwrTelsalerListExcelTitle = new String[]
|
|
||||||
{ "人员姓名", "人员工号", "籍 贯", "参加工作时间", "入职日期", "入司日期", "业务类型", "办公地省", "办公地市", "人员类别", "现任岗位",
|
|
||||||
"现任职级", "机构名称", "职场分类", "片区名称", "团队名称", "对口分公司", "展业地区", "招聘渠道", "渠道明细", "全日制最高学历",
|
|
||||||
"学历类型", "用工性质名称", "合同种类", "合同类型", "合同性质", "合同签订次数", "合同生效日期", "合同到期日期", "人员属性", "保代员工号",
|
|
||||||
"职场属性", "办公性质", "保代人员属性", "人员状态",};
|
|
||||||
|
|
||||||
public static ArrayList<TWrTelsalerRecord> importTWrTelsalerDataFromExcel( String filePath, int sheetIndex,
|
|
||||||
int firstRow ) throws IOException, InvalidFormatException
|
|
||||||
{
|
|
||||||
ArrayList<TWrTelsalerRecord> records = new ArrayList<>( 200 );
|
|
||||||
|
|
||||||
Workbook wb = null;
|
|
||||||
Sheet sheet = null;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
wb = WorkbookFactory.create( new File( filePath ) );
|
|
||||||
sheet = wb.getSheetAt( sheetIndex );
|
|
||||||
|
|
||||||
// 先验证格式,不对就抛出错误
|
|
||||||
if ( !checkExcelFormat( sheet, null, 0, TwrTelsalerListExcelTitle, 0 ) )
|
|
||||||
{
|
|
||||||
throw new InvalidFormatException( "Excel文件格式错误,请检查报表内容!" );
|
|
||||||
}
|
|
||||||
|
|
||||||
for ( Row row : sheet )
|
|
||||||
{
|
|
||||||
int rowIndex = row.getRowNum();
|
|
||||||
|
|
||||||
// 从数据行开始
|
|
||||||
if ( row.getRowNum() < firstRow )
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
String 人员姓名 = MyPOIUtils.getStringCellValue( row, 0 );
|
|
||||||
String 人员工号 = MyPOIUtils.getStringCellValue( row, 1 );
|
|
||||||
String 籍贯 = MyPOIUtils.getStringCellValue( row, 2 );
|
|
||||||
String 参加工作时间 = MyPOIUtils.getStringCellValue( row, 3 );
|
|
||||||
String 入职日期 = MyPOIUtils.getStringCellValue( row, 4 );
|
|
||||||
String 入司日期 = MyPOIUtils.getStringCellValue( row, 5 );
|
|
||||||
String 业务类型 = MyPOIUtils.getStringCellValue( row, 6 );
|
|
||||||
String 办公地省 = MyPOIUtils.getStringCellValue( row, 7 );
|
|
||||||
String 办公地市 = MyPOIUtils.getStringCellValue( row, 8 );
|
|
||||||
String 人员类别 = MyPOIUtils.getStringCellValue( row, 9 );
|
|
||||||
String 现任岗位 = MyPOIUtils.getStringCellValue( row, 10 );
|
|
||||||
String 现任职级 = MyPOIUtils.getStringCellValue( row, 11 );
|
|
||||||
String 机构名称 = MyPOIUtils.getStringCellValue( row, 12 );
|
|
||||||
String 职场分类 = MyPOIUtils.getStringCellValue( row, 13 );
|
|
||||||
String 片区名称 = MyPOIUtils.getStringCellValue( row, 14 );
|
|
||||||
String 团队名称 = MyPOIUtils.getStringCellValue( row, 15 );
|
|
||||||
String 对口分公司 = MyPOIUtils.getStringCellValue( row, 16 );
|
|
||||||
String 展业地区 = MyPOIUtils.getStringCellValue( row, 17 );
|
|
||||||
String 招聘渠道 = MyPOIUtils.getStringCellValue( row, 18 );
|
|
||||||
String 渠道明细 = MyPOIUtils.getStringCellValue( row, 19 );
|
|
||||||
String 全日制最高学历 = MyPOIUtils.getStringCellValue( row, 20 );
|
|
||||||
String 学历类型 = MyPOIUtils.getStringCellValue( row, 21 );
|
|
||||||
String 用工性质名称 = MyPOIUtils.getStringCellValue( row, 22 );
|
|
||||||
String 合同种类 = MyPOIUtils.getStringCellValue( row, 23 );
|
|
||||||
String 合同类型 = MyPOIUtils.getStringCellValue( row, 24 );
|
|
||||||
String 合同性质 = MyPOIUtils.getStringCellValue( row, 25 );
|
|
||||||
int 合同签订次数 = (int)MyPOIUtils.getNumbericCellValue( row, 26 );
|
|
||||||
String 合同生效日期 = MyPOIUtils.getStringCellValue( row, 27 );
|
|
||||||
String 合同到期日期 = MyPOIUtils.getStringCellValue( row, 28 );
|
|
||||||
String 人员属性 = MyPOIUtils.getStringCellValue( row, 29 );
|
|
||||||
String 保代员工号 = MyPOIUtils.getStringCellValue( row, 30 );
|
|
||||||
String 职场属性 = MyPOIUtils.getStringCellValue( row, 31 );
|
|
||||||
String 办公性质 = MyPOIUtils.getStringCellValue( row, 32 );
|
|
||||||
String 保代人员属性 = MyPOIUtils.getStringCellValue( row, 33 );
|
|
||||||
String 人员状态 = MyPOIUtils.getStringCellValue( row, 34 );
|
|
||||||
|
|
||||||
TWrTelsalerRecord record = new TWrTelsalerRecord(人员姓名, 人员工号, 籍贯, 参加工作时间, 入职日期, 入司日期, 业务类型, 办公地省, 办公地市, 人员类别, 现任岗位, 现任职级, 机构名称, 职场分类, 片区名称, 团队名称, 对口分公司, 展业地区, 招聘渠道, 渠道明细, 全日制最高学历, 学历类型, 用工性质名称, 合同种类, 合同类型, 合同性质, 合同签订次数, 合同生效日期, 合同到期日期, 人员属性, 保代员工号, 职场属性, 办公性质, 保代人员属性, 人员状态);
|
|
||||||
|
|
||||||
records.add(record);
|
|
||||||
}
|
|
||||||
catch ( IllegalStateException error )
|
|
||||||
{
|
|
||||||
error.printStackTrace();
|
|
||||||
}
|
|
||||||
catch ( NumberFormatException error )
|
|
||||||
{
|
|
||||||
error.printStackTrace();
|
|
||||||
}
|
|
||||||
catch ( NullPointerException error )
|
|
||||||
{
|
|
||||||
String message = "第" + String.valueOf( rowIndex ) + "行出现NullPointerException异常";
|
|
||||||
logger.error( message, error );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if ( wb != null )
|
|
||||||
{
|
|
||||||
wb.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch ( IOException error )
|
|
||||||
{
|
|
||||||
error.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return records;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static boolean checkExcelFormat( Sheet sheet, String caption, int captionRowIndex,
|
|
||||||
String[] title, int titleRowIndex )
|
|
||||||
{
|
|
||||||
boolean result = true;
|
|
||||||
|
|
||||||
Row captionRow = sheet.getRow( captionRowIndex );
|
|
||||||
Row titleRow = sheet.getRow( titleRowIndex );
|
|
||||||
|
|
||||||
if ( caption != null && !caption.isEmpty() )
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
int captionCellNum = captionRow.getFirstCellNum();
|
|
||||||
String captionString = MyPOIUtils.getStringCellValue( captionRow, captionCellNum );
|
|
||||||
|
|
||||||
if ( !caption.equals( captionString ) )
|
|
||||||
{
|
|
||||||
result = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch ( NullPointerException error )
|
|
||||||
{
|
|
||||||
result = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( title.length != 0 )
|
|
||||||
{
|
|
||||||
int cellIndex = 0;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
for ( Cell cell : titleRow )
|
|
||||||
{
|
|
||||||
String cellString = MyPOIUtils.getStringCellValue( cell );
|
|
||||||
|
|
||||||
if ( !cellString.equals( title[cellIndex] ) )
|
|
||||||
{
|
|
||||||
result = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
cellIndex++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch ( NullPointerException error )
|
|
||||||
{
|
|
||||||
result = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -10,7 +10,6 @@
|
||||||
package com.cpic.xim.utils.poi;
|
package com.cpic.xim.utils.poi;
|
||||||
|
|
||||||
import org.apache.poi.ss.usermodel.Cell;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
import org.apache.poi.ss.usermodel.CellType;
|
|
||||||
import org.apache.poi.ss.usermodel.Row;
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
import org.apache.poi.ss.usermodel.Row.MissingCellPolicy;
|
import org.apache.poi.ss.usermodel.Row.MissingCellPolicy;
|
||||||
|
|
||||||
|
@ -60,29 +59,12 @@ public class MyPOIUtils
|
||||||
public static double getNumbericCellValue( Row row, int columnIndex )
|
public static double getNumbericCellValue( Row row, int columnIndex )
|
||||||
{
|
{
|
||||||
double value = 0.0;
|
double value = 0.0;
|
||||||
String strValue;
|
|
||||||
Cell cell = row.getCell( columnIndex, MissingCellPolicy.RETURN_NULL_AND_BLANK );
|
Cell cell = row.getCell( columnIndex, MissingCellPolicy.RETURN_NULL_AND_BLANK );
|
||||||
CellType type = cell.getCellType();
|
|
||||||
|
|
||||||
switch ( type )
|
switch ( cell.getCellType() )
|
||||||
{
|
{
|
||||||
case NUMERIC:
|
case NUMERIC:
|
||||||
value = cell.getNumericCellValue();
|
value = cell.getNumericCellValue();
|
||||||
break;
|
|
||||||
case STRING:
|
|
||||||
// 字符串类型,尝试转换成数字
|
|
||||||
strValue = cell.getStringCellValue();
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
value = Double.parseDouble( strValue );
|
|
||||||
}
|
|
||||||
// 任何异常都视为转换失败
|
|
||||||
catch ( Exception error )
|
|
||||||
{
|
|
||||||
value = 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
value = 0.0;
|
value = 0.0;
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class StaffInfoQueryController
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
saler = TeleSalerInfo.queryTeleSalerInfo( telSaler.getTelSaler() );
|
saler = TeleSalerInfo.queryTeleSalerInfo( telSaler.getTelSalerCode() );
|
||||||
|
|
||||||
// 根据返回结果是否为 null,判断是否查询到坐席信息
|
// 根据返回结果是否为 null,判断是否查询到坐席信息
|
||||||
if ( saler != null )
|
if ( saler != null )
|
||||||
|
|
|
@ -17,19 +17,19 @@ public class TelsalerQueryRequest
|
||||||
|
|
||||||
public TelsalerQueryRequest( String telSalerCode )
|
public TelsalerQueryRequest( String telSalerCode )
|
||||||
{
|
{
|
||||||
this.telSaler = telSalerCode;
|
this.telSalerCode = telSalerCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTelSaler()
|
public String getTelSalerCode()
|
||||||
{
|
{
|
||||||
return telSaler;
|
return telSalerCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTelSaler( String telSalerCode )
|
public void setTelSalerCode( String telSalerCode )
|
||||||
{
|
{
|
||||||
this.telSaler = telSalerCode;
|
this.telSalerCode = telSalerCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("telsaler")
|
@JsonProperty("telsaler_code")
|
||||||
private String telSaler;
|
private String telSalerCode;
|
||||||
}
|
}
|
|
@ -70,10 +70,11 @@ public class ArchievementQueryController
|
||||||
|
|
||||||
result.setTotalArchievement( departmentArch.getTotalArchievement() );
|
result.setTotalArchievement( departmentArch.getTotalArchievement() );
|
||||||
result.setInsuranceRenewalRate( departmentArch.getInsuranceRenewalRate() );
|
result.setInsuranceRenewalRate( departmentArch.getInsuranceRenewalRate() );
|
||||||
result.setInsuranceRenewalRateTarget( departmentArch.getInsuranceRenewalRateTarget() );
|
|
||||||
result.setAttachingRate( departmentArch.getAttachingRate() );
|
result.setAttachingRate( departmentArch.getAttachingRate() );
|
||||||
result.setAttachingRateTarget( departmentArch.getAttachingRateTarget() );
|
// result.addAdvanceRewardGainer( "沈群" );
|
||||||
|
// result.addLeadingRewardGainer( "王鸿津" );
|
||||||
|
// result.addLeadingRewardGainer( "林宗泽" );
|
||||||
|
// result.addBackwardStaff( "王炜" );
|
||||||
result.setMensualArchievementList( departmentArch.getMensualArchievementList() );
|
result.setMensualArchievementList( departmentArch.getMensualArchievementList() );
|
||||||
}
|
}
|
||||||
catch ( IOException error )
|
catch ( IOException error )
|
||||||
|
|
|
@ -1,202 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-01 16:48:56
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/BIReportController.java
|
|
||||||
* @Description: BI报表相关的controller
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.web.controllers.archievement.bi;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import org.apache.ibatis.exceptions.PersistenceException;
|
|
||||||
import org.apache.ibatis.session.SqlSession;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMethod;
|
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
|
||||||
import com.cpic.xim.mybatis.mapper.QueryBIArchievementDataMapper;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.utils.MybatisUtils;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
@RequestMapping( method = RequestMethod.POST, path = "/archievement" )
|
|
||||||
public class BIReportController
|
|
||||||
{
|
|
||||||
private static Logger logger = LoggerFactory.getLogger( BIReportController.class );
|
|
||||||
|
|
||||||
@PostMapping( path = "/bi_telsaler_attachingrate.do" )
|
|
||||||
@ResponseBody
|
|
||||||
public QueryTelsalerAttachingRateReportResponse queryTelsalerAttachingRateRepor()
|
|
||||||
{
|
|
||||||
QueryTelsalerAttachingRateReportResponse response =
|
|
||||||
new QueryTelsalerAttachingRateReportResponse();
|
|
||||||
SqlSession session = null;
|
|
||||||
QueryBIArchievementDataMapper mapper = null;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
session = MybatisUtils.getSqlSession();
|
|
||||||
mapper = session.getMapper( QueryBIArchievementDataMapper.class );
|
|
||||||
|
|
||||||
session.clearCache();
|
|
||||||
List<BITelsalerAttachingRateRecord> records =
|
|
||||||
mapper.queryBITelsalerAttachingRate();
|
|
||||||
|
|
||||||
response.setSuccess( true );
|
|
||||||
response.setMessage( "查询成功" );
|
|
||||||
response.setRecords( records );
|
|
||||||
}
|
|
||||||
catch ( IOException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI坐席渗透率报表出现IOException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
catch ( PersistenceException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI坐席渗透率报表出现PersistenceException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping( path="/bi_telsaler_renewalrate.do" )
|
|
||||||
@ResponseBody
|
|
||||||
public QueryTelsalerRenewalRateReportResponse queryTelsalerRenewalRateReport()
|
|
||||||
{
|
|
||||||
QueryTelsalerRenewalRateReportResponse response = new QueryTelsalerRenewalRateReportResponse();
|
|
||||||
SqlSession session = null;
|
|
||||||
QueryBIArchievementDataMapper mapper = null;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
session = MybatisUtils.getSqlSession();
|
|
||||||
mapper = session.getMapper(QueryBIArchievementDataMapper.class);
|
|
||||||
|
|
||||||
session.clearCache();
|
|
||||||
ArrayList<BITelsalerRenewalRateRecord> records = mapper.queryBITesalerRenewalRate();
|
|
||||||
|
|
||||||
response.setSuccess( true );
|
|
||||||
response.setMessage("查询成功");
|
|
||||||
response.setRecords(records);
|
|
||||||
}
|
|
||||||
catch ( IOException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI坐席续保率报表出现IOException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
catch ( PersistenceException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI坐席续保率报表出现PersistenceException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping( path = "/bi_department_attachingrate.do" )
|
|
||||||
@ResponseBody
|
|
||||||
public QueryDepartmentAttachingRateReportResponse queryDepartmentAttachingRateRepor()
|
|
||||||
{
|
|
||||||
QueryDepartmentAttachingRateReportResponse response =
|
|
||||||
new QueryDepartmentAttachingRateReportResponse();
|
|
||||||
SqlSession session = null;
|
|
||||||
QueryBIArchievementDataMapper mapper = null;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
session = MybatisUtils.getSqlSession();
|
|
||||||
mapper = session.getMapper( QueryBIArchievementDataMapper.class );
|
|
||||||
|
|
||||||
session.clearCache();
|
|
||||||
ArrayList<BIDepartmentAttachingRateRecord> records =
|
|
||||||
mapper.queryBIDepartmentAttachingRate();
|
|
||||||
|
|
||||||
response.setSuccess( true );
|
|
||||||
response.setMessage( "查询成功" );
|
|
||||||
response.setRecords( records );
|
|
||||||
}
|
|
||||||
catch ( IOException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI机构渗透率报表出现IOException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
catch ( PersistenceException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI机构渗透率报表出现PersistenceException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping( path = "/bi_department_renewalrate.do" )
|
|
||||||
@ResponseBody
|
|
||||||
public QueryDepartmentRenewalRateReportResponse queryDepartmentRenewalRateRepor()
|
|
||||||
{
|
|
||||||
QueryDepartmentRenewalRateReportResponse response =
|
|
||||||
new QueryDepartmentRenewalRateReportResponse();
|
|
||||||
SqlSession session = null;
|
|
||||||
QueryBIArchievementDataMapper mapper = null;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
session = MybatisUtils.getSqlSession();
|
|
||||||
mapper = session.getMapper( QueryBIArchievementDataMapper.class );
|
|
||||||
|
|
||||||
session.clearCache();
|
|
||||||
ArrayList<BIDepartmentRenewalRateRecord> records =
|
|
||||||
mapper.queryBIDepartmentRenewalRate();
|
|
||||||
|
|
||||||
response.setSuccess( true );
|
|
||||||
response.setMessage( "查询成功" );
|
|
||||||
response.setRecords( records );
|
|
||||||
}
|
|
||||||
catch ( IOException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI机构渗透率报表出现IOException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
catch ( PersistenceException error )
|
|
||||||
{
|
|
||||||
logger.error("查询BI机构渗透率报表出现PersistenceException异常,异常内容:", error);
|
|
||||||
|
|
||||||
response.setSuccess( false );
|
|
||||||
response.setMessage( "查询失败,原因" + error.getMessage() );
|
|
||||||
response.setRecords( null );
|
|
||||||
}
|
|
||||||
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,91 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-02 11:21:03
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryDepartmentAttachingRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-01 16:51:53
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryTelsalerAttachingRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.web.controllers.archievement.bi;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import com.cpic.xim.mybatis.pojo.*;
|
|
||||||
import com.cpic.xim.web.controllers.QueryResponse;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
public class QueryDepartmentAttachingRateReportResponse extends QueryResponse
|
|
||||||
{
|
|
||||||
@JsonProperty("records")
|
|
||||||
ArrayList<BIDepartmentAttachingRateRecord> records;
|
|
||||||
|
|
||||||
public QueryDepartmentAttachingRateReportResponse( boolean success, String message,
|
|
||||||
ArrayList<BIDepartmentAttachingRateRecord> records )
|
|
||||||
{
|
|
||||||
super( success, message );
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public QueryDepartmentAttachingRateReportResponse()
|
|
||||||
{
|
|
||||||
super( false, "" );
|
|
||||||
|
|
||||||
this.records = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<BIDepartmentAttachingRateRecord> getRecords()
|
|
||||||
{
|
|
||||||
return records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRecords( ArrayList<BIDepartmentAttachingRateRecord> records )
|
|
||||||
{
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
return "QueryTelsalerAttachingRateReportResponse [records=" + records + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode()
|
|
||||||
{
|
|
||||||
final int prime = 31;
|
|
||||||
int result = super.hashCode();
|
|
||||||
result = prime * result + ((records == null) ? 0 : records.hashCode());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals( Object obj )
|
|
||||||
{
|
|
||||||
if ( this == obj )
|
|
||||||
return true;
|
|
||||||
if ( !super.equals( obj ) )
|
|
||||||
return false;
|
|
||||||
if ( getClass() != obj.getClass() )
|
|
||||||
return false;
|
|
||||||
QueryDepartmentAttachingRateReportResponse other =
|
|
||||||
(QueryDepartmentAttachingRateReportResponse) obj;
|
|
||||||
if ( records == null )
|
|
||||||
{
|
|
||||||
if ( other.records != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !records.equals( other.records ) )
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,100 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-02 16:56:50
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryDepartmentRenewalRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-02 11:21:03
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryDepartmentAttachingRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-01 16:51:53
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryTelsalerAttachingRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.web.controllers.archievement.bi;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import com.cpic.xim.mybatis.pojo.*;
|
|
||||||
import com.cpic.xim.web.controllers.QueryResponse;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
public class QueryDepartmentRenewalRateReportResponse extends QueryResponse
|
|
||||||
{
|
|
||||||
@JsonProperty("records")
|
|
||||||
ArrayList<BIDepartmentRenewalRateRecord> records;
|
|
||||||
|
|
||||||
public QueryDepartmentRenewalRateReportResponse( boolean success, String message,
|
|
||||||
ArrayList<BIDepartmentRenewalRateRecord> records )
|
|
||||||
{
|
|
||||||
super( success, message );
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public QueryDepartmentRenewalRateReportResponse()
|
|
||||||
{
|
|
||||||
super( false, "" );
|
|
||||||
|
|
||||||
this.records = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<BIDepartmentRenewalRateRecord> getRecords()
|
|
||||||
{
|
|
||||||
return records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRecords( ArrayList<BIDepartmentRenewalRateRecord> records )
|
|
||||||
{
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
return "QueryTelsalerAttachingRateReportResponse [records=" + records + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode()
|
|
||||||
{
|
|
||||||
final int prime = 31;
|
|
||||||
int result = super.hashCode();
|
|
||||||
result = prime * result + ((records == null) ? 0 : records.hashCode());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals( Object obj )
|
|
||||||
{
|
|
||||||
if ( this == obj )
|
|
||||||
return true;
|
|
||||||
if ( !super.equals( obj ) )
|
|
||||||
return false;
|
|
||||||
if ( getClass() != obj.getClass() )
|
|
||||||
return false;
|
|
||||||
QueryDepartmentRenewalRateReportResponse other =
|
|
||||||
(QueryDepartmentRenewalRateReportResponse) obj;
|
|
||||||
if ( records == null )
|
|
||||||
{
|
|
||||||
if ( other.records != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !records.equals( other.records ) )
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,83 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-01 16:51:53
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryTelsalerAttachingRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.web.controllers.archievement.bi;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord;
|
|
||||||
import com.cpic.xim.web.controllers.QueryResponse;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
public class QueryTelsalerAttachingRateReportResponse extends QueryResponse
|
|
||||||
{
|
|
||||||
@JsonProperty("records")
|
|
||||||
List<BITelsalerAttachingRateRecord> records;
|
|
||||||
|
|
||||||
public QueryTelsalerAttachingRateReportResponse( boolean success, String message,
|
|
||||||
ArrayList<BITelsalerAttachingRateRecord> records )
|
|
||||||
{
|
|
||||||
super( success, message );
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public QueryTelsalerAttachingRateReportResponse()
|
|
||||||
{
|
|
||||||
super( false, "" );
|
|
||||||
|
|
||||||
this.records = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<BITelsalerAttachingRateRecord> getRecords()
|
|
||||||
{
|
|
||||||
return records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRecords( List<BITelsalerAttachingRateRecord> records )
|
|
||||||
{
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
return "QueryTelsalerAttachingRateReportResponse [records=" + records + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode()
|
|
||||||
{
|
|
||||||
final int prime = 31;
|
|
||||||
int result = super.hashCode();
|
|
||||||
result = prime * result + ((records == null) ? 0 : records.hashCode());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals( Object obj )
|
|
||||||
{
|
|
||||||
if ( this == obj )
|
|
||||||
return true;
|
|
||||||
if ( !super.equals( obj ) )
|
|
||||||
return false;
|
|
||||||
if ( getClass() != obj.getClass() )
|
|
||||||
return false;
|
|
||||||
QueryTelsalerAttachingRateReportResponse other =
|
|
||||||
(QueryTelsalerAttachingRateReportResponse) obj;
|
|
||||||
if ( records == null )
|
|
||||||
{
|
|
||||||
if ( other.records != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !records.equals( other.records ) )
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,92 +0,0 @@
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-02 16:54:42
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryTelsalerRenewalRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* @Author: Kane
|
|
||||||
* @Date: 2023-11-01 16:51:53
|
|
||||||
* @LastEditors: Kane
|
|
||||||
* @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/bi/QueryTelsalerAttachingRateReportResponse.java
|
|
||||||
* @Description:
|
|
||||||
*
|
|
||||||
* Copyright (c) ${2023} by Kane, All Rights Reserved.
|
|
||||||
*/
|
|
||||||
package com.cpic.xim.web.controllers.archievement.bi;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord;
|
|
||||||
import com.cpic.xim.web.controllers.QueryResponse;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
public class QueryTelsalerRenewalRateReportResponse extends QueryResponse
|
|
||||||
{
|
|
||||||
@JsonProperty("records")
|
|
||||||
ArrayList<BITelsalerRenewalRateRecord> records;
|
|
||||||
|
|
||||||
public QueryTelsalerRenewalRateReportResponse( boolean success, String message,
|
|
||||||
ArrayList<BITelsalerRenewalRateRecord> records )
|
|
||||||
{
|
|
||||||
super( success, message );
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public QueryTelsalerRenewalRateReportResponse()
|
|
||||||
{
|
|
||||||
super( false, "" );
|
|
||||||
|
|
||||||
this.records = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<BITelsalerRenewalRateRecord> getRecords()
|
|
||||||
{
|
|
||||||
return records;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRecords( ArrayList<BITelsalerRenewalRateRecord> records )
|
|
||||||
{
|
|
||||||
this.records = records;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
return "QueryTelsalerAttachingRateReportResponse [records=" + records + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode()
|
|
||||||
{
|
|
||||||
final int prime = 31;
|
|
||||||
int result = super.hashCode();
|
|
||||||
result = prime * result + ((records == null) ? 0 : records.hashCode());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals( Object obj )
|
|
||||||
{
|
|
||||||
if ( this == obj )
|
|
||||||
return true;
|
|
||||||
if ( !super.equals( obj ) )
|
|
||||||
return false;
|
|
||||||
if ( getClass() != obj.getClass() )
|
|
||||||
return false;
|
|
||||||
QueryTelsalerRenewalRateReportResponse other =
|
|
||||||
(QueryTelsalerRenewalRateReportResponse) obj;
|
|
||||||
if ( records == null )
|
|
||||||
{
|
|
||||||
if ( other.records != null )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else if ( !records.equals( other.records ) )
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.cpic.xim.web.controllers.archievement.department;
|
package com.cpic.xim.web.controllers.archievement.department;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -22,35 +23,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
*/
|
*/
|
||||||
public class DepartmentArchievementQueryResult extends QueryResponse
|
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()
|
public DepartmentArchievementQueryResult()
|
||||||
{
|
{
|
||||||
mensualArchievementList = new ArrayList<MensualArchievementItem>();
|
mensualArchievementList = new ArrayList<MensualArchievementItem>();
|
||||||
|
@ -145,129 +117,26 @@ public class DepartmentArchievementQueryResult extends QueryResponse
|
||||||
this.backwardList = backwardList;
|
this.backwardList = backwardList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getInsuranceRenewalRateTarget()
|
@JsonProperty( "total_archievement" )
|
||||||
{
|
private long totalArchievement; // 总业绩
|
||||||
return insuranceRenewalRateTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setInsuranceRenewalRateTarget( String insuranceRenewalRateTarget )
|
// 每月业绩列表
|
||||||
{
|
// 要保证数据是按照月份排序。
|
||||||
this.insuranceRenewalRateTarget = insuranceRenewalRateTarget;
|
@JsonProperty( "mensual_archievement_list" )
|
||||||
}
|
private ArrayList<MensualArchievementItem> mensualArchievementList;
|
||||||
|
|
||||||
public String getAttachingRateTarget()
|
@JsonProperty( "insurance_renewal_rate" )
|
||||||
{
|
private String insuranceRenewalRate; // 续保率
|
||||||
return attachingRateTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAttachingRateTarget( String attachingRateTarget )
|
@JsonProperty( "attaching_rate" )
|
||||||
{
|
private String attachingRate; // 车非渗透率
|
||||||
this.attachingRateTarget = attachingRateTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@JsonProperty( "leading_reward_gainers" )
|
||||||
public String toString()
|
private Vector<String> leadingRewardGainers; // 领跑奖
|
||||||
{
|
|
||||||
return "DepartmentArchievementQueryResult [totalArchievement=" + totalArchievement
|
|
||||||
+ ", mensualArchievementList=" + mensualArchievementList + ", insuranceRenewalRate="
|
|
||||||
+ insuranceRenewalRate + ", insuranceRenewalRateTarget="
|
|
||||||
+ insuranceRenewalRateTarget + ", attachingRate=" + attachingRate
|
|
||||||
+ ", attachingRateTarget=" + attachingRateTarget + ", leadingRewardGainers="
|
|
||||||
+ leadingRewardGainers + ", advanceRewardGainers=" + advanceRewardGainers
|
|
||||||
+ ", backwardList=" + backwardList + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@JsonProperty( "advance_reward_gainers" )
|
||||||
public int hashCode()
|
private Vector<String> advanceRewardGainers; // 飞跃奖
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@JsonProperty( "backward_list" )
|
||||||
public boolean equals( Object obj )
|
private Vector<String> backwardList; // 消七灭六坐席
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
package com.cpic.xim.web.controllers.dataimport;
|
|
||||||
|
|
||||||
public enum ReportType {
|
|
||||||
BiTelsalerAttachingRateReport(1,"坐席车非渗透率"),
|
|
||||||
BiTelsalerRenewalRateReport(2,"坐席续保率"),
|
|
||||||
BiDepartmentAttachingRateReport(3,"部门车非渗透率"),
|
|
||||||
BiDepartmentRenewalRateReport(4,"当月个车续保率跟踪报表【机构】"),
|
|
||||||
TWrTelsalerList(10,"TWr坐席清单"); // Twr坐席清单
|
|
||||||
|
|
||||||
private int reportTypeCode;
|
|
||||||
|
|
||||||
private String reportTypeName;
|
|
||||||
private ReportType( final int code, final String name )
|
|
||||||
{
|
|
||||||
this.reportTypeCode = code;
|
|
||||||
this.reportTypeName = name;
|
|
||||||
}
|
|
||||||
public int getReportTypeCode()
|
|
||||||
{
|
|
||||||
return reportTypeCode;
|
|
||||||
}
|
|
||||||
public void setReportTypeCode( int reportTypeCode )
|
|
||||||
{
|
|
||||||
this.reportTypeCode = reportTypeCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getReportTypeName()
|
|
||||||
{
|
|
||||||
return reportTypeName;
|
|
||||||
}
|
|
||||||
public void setReportTypeName( String reportTypeName )
|
|
||||||
{
|
|
||||||
this.reportTypeName = reportTypeName;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -10,6 +10,7 @@
|
||||||
package com.cpic.xim.web.controllers.dataimport.bi;
|
package com.cpic.xim.web.controllers.dataimport.bi;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.time.LocalDate;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import org.apache.ibatis.exceptions.PersistenceException;
|
import org.apache.ibatis.exceptions.PersistenceException;
|
||||||
import org.apache.ibatis.session.SqlSession;
|
import org.apache.ibatis.session.SqlSession;
|
||||||
|
@ -22,16 +23,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMethod;
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import com.cpic.xim.mybatis.mapper.ImportBIArchievementDataMapper;
|
import com.cpic.xim.mybatis.mapper.ImportBIArchievementDataMapper;
|
||||||
import com.cpic.xim.mybatis.mapper.TWrTelsalerMapper;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord;
|
import com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord;
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord;
|
import com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord;
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord;
|
import com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord;
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord;
|
import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord;
|
||||||
import com.cpic.xim.mybatis.pojo.TWrTelsalerRecord;
|
|
||||||
import com.cpic.xim.mybatis.utils.MybatisUtils;
|
import com.cpic.xim.mybatis.utils.MybatisUtils;
|
||||||
import com.cpic.xim.utils.data.ImportBIExcelData;
|
import com.cpic.xim.utils.data.ImportBIExcelData;
|
||||||
import com.cpic.xim.utils.data.ImportTWRTelsalerData;
|
import com.cpic.xim.web.controllers.dataimport.bi.ImportBIDataRequest.ReportType;
|
||||||
import com.cpic.xim.web.controllers.dataimport.ReportType;;
|
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping( method = RequestMethod.POST, path = "/import_bi_data" )
|
@RequestMapping( method = RequestMethod.POST, path = "/import_bi_data" )
|
||||||
|
@ -45,35 +43,29 @@ public class ImportBIDataController
|
||||||
{
|
{
|
||||||
ImportBIDataResponse response = new ImportBIDataResponse();
|
ImportBIDataResponse response = new ImportBIDataResponse();
|
||||||
String filePath = request.getFilePath();
|
String filePath = request.getFilePath();
|
||||||
int type = request.getReportType();
|
ReportType type = request.getReportType();
|
||||||
int firstRow = request.getFirstRow();
|
int firstRow = request.getFirstRow();
|
||||||
int sheetIndex = request.getSheetIndex();
|
int sheetIndex = request.getSheetIndex();
|
||||||
int importedCount = 0;
|
int importedCount = 0;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( type == ReportType.BiTelsalerAttachingRateReport.getReportTypeCode() )
|
if ( type == ReportType.TelsalerAttachingRateReport )
|
||||||
{
|
{
|
||||||
importedCount = importBITelsalerAttachingRate( filePath, sheetIndex, firstRow );
|
importedCount = importBITelsalerAttachingRate( filePath, sheetIndex, firstRow );
|
||||||
}
|
}
|
||||||
else if ( type == ReportType.BiTelsalerRenewalRateReport.getReportTypeCode() )
|
else if ( type == ReportType.TelsalerRenewalRateReport )
|
||||||
{
|
{
|
||||||
importedCount = importBITeslsalerRenewalRate( filePath, sheetIndex, firstRow );
|
importedCount = importBITeslsalerRenewalRate( filePath, sheetIndex, firstRow );
|
||||||
}
|
}
|
||||||
else if ( type == ReportType.BiDepartmentAttachingRateReport.getReportTypeCode() )
|
else if ( type == ReportType.DepartmentAttachingRateReport )
|
||||||
{
|
{
|
||||||
importedCount = importBIDepartmentAttachingRate( filePath, sheetIndex, firstRow );
|
importedCount = importBIDepartmentAttachingRate( filePath, sheetIndex, firstRow );
|
||||||
}
|
}
|
||||||
else if ( type == ReportType.BiDepartmentRenewalRateReport.getReportTypeCode() )
|
else if ( type == ReportType.DepartmentRenewalRateReport )
|
||||||
{
|
{
|
||||||
importedCount = importBIDepartmentRenewalRate( filePath, sheetIndex, firstRow );
|
importedCount = importBIDepartmentRenewalRate( filePath, sheetIndex, firstRow );
|
||||||
}
|
}
|
||||||
else if ( type == ReportType.TWrTelsalerList.getReportTypeCode() )
|
|
||||||
{
|
|
||||||
logger.info( "导入机构续保率报表。");
|
|
||||||
|
|
||||||
importedCount = importTWrTelsalerList( filePath, sheetIndex, firstRow );
|
|
||||||
}
|
|
||||||
|
|
||||||
response.setImportedCount( importedCount );
|
response.setImportedCount( importedCount );
|
||||||
response.setSuccess( true );
|
response.setSuccess( true );
|
||||||
|
@ -262,43 +254,4 @@ public class ImportBIDataController
|
||||||
|
|
||||||
return importedCount;
|
return importedCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int importTWrTelsalerList( String filePath, int sheetIndex, int firstRow )
|
|
||||||
throws PersistenceException, IOException, InvalidFormatException
|
|
||||||
{
|
|
||||||
|
|
||||||
ArrayList<TWrTelsalerRecord> records = null;
|
|
||||||
SqlSession session = null;
|
|
||||||
TWrTelsalerMapper mapper = null;
|
|
||||||
int importedCount = 0;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
records = ImportTWRTelsalerData.importTWrTelsalerDataFromExcel(filePath, sheetIndex, firstRow);
|
|
||||||
session = MybatisUtils.getSqlSessionBatch();
|
|
||||||
mapper = session.getMapper(TWrTelsalerMapper.class);
|
|
||||||
|
|
||||||
mapper.cleanTWrTelsalerTeamRecord();
|
|
||||||
|
|
||||||
for ( TWrTelsalerRecord record : records )
|
|
||||||
{
|
|
||||||
mapper.insertTWrTelsalerRecordToDB(record);
|
|
||||||
|
|
||||||
importedCount++;
|
|
||||||
}
|
|
||||||
|
|
||||||
session.commit();
|
|
||||||
}
|
|
||||||
catch ( Exception error)
|
|
||||||
{
|
|
||||||
if ( session != null )
|
|
||||||
{
|
|
||||||
session.rollback();
|
|
||||||
}
|
|
||||||
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
|
|
||||||
return importedCount;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,11 +9,15 @@
|
||||||
*/
|
*/
|
||||||
package com.cpic.xim.web.controllers.dataimport.bi;
|
package com.cpic.xim.web.controllers.dataimport.bi;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class ImportBIDataRequest {
|
public class ImportBIDataRequest
|
||||||
|
{
|
||||||
|
public enum ReportType {
|
||||||
|
TelsalerAttachingRateReport, TelsalerRenewalRateReport, DepartmentAttachingRateReport, DepartmentRenewalRateReport
|
||||||
|
};
|
||||||
|
|
||||||
// 导入文件的路径
|
// 导入文件的路径
|
||||||
@JsonProperty( "filePath" )
|
@JsonProperty( "filePath" )
|
||||||
|
@ -21,7 +25,7 @@ public class ImportBIDataRequest {
|
||||||
|
|
||||||
// 报表名称
|
// 报表名称
|
||||||
@JsonProperty( "reportType" )
|
@JsonProperty( "reportType" )
|
||||||
private int reportType;
|
private ReportType reportType;
|
||||||
|
|
||||||
// 是否有标题行
|
// 是否有标题行
|
||||||
@JsonProperty( "firstRow" )
|
@JsonProperty( "firstRow" )
|
||||||
|
@ -31,37 +35,46 @@ public class ImportBIDataRequest {
|
||||||
@JsonProperty( "sheetIndex" )
|
@JsonProperty( "sheetIndex" )
|
||||||
private int sheetIndex;
|
private int sheetIndex;
|
||||||
|
|
||||||
public ImportBIDataRequest() {}
|
public ImportBIDataRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
public int getFirstRow() {
|
public int getFirstRow()
|
||||||
|
{
|
||||||
return firstRow;
|
return firstRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFirstRow(int firstRow) {
|
public void setFirstRow( int firstRow )
|
||||||
|
{
|
||||||
this.firstRow = firstRow;
|
this.firstRow = firstRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSheetIndex() {
|
public int getSheetIndex()
|
||||||
|
{
|
||||||
return sheetIndex;
|
return sheetIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSheetIndex(int sheetIndex) {
|
public void setSheetIndex( int sheetIndex )
|
||||||
|
{
|
||||||
this.sheetIndex = sheetIndex;
|
this.sheetIndex = sheetIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFilePath() {
|
public String getFilePath()
|
||||||
|
{
|
||||||
return filePath;
|
return filePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFilePath(String filePath) {
|
public void setFilePath( String filePath )
|
||||||
|
{
|
||||||
this.filePath = filePath;
|
this.filePath = filePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getReportType() {
|
public ReportType getReportType()
|
||||||
|
{
|
||||||
return reportType;
|
return reportType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReportType(int reportType) {
|
public void setReportType( ReportType reportType )
|
||||||
|
{
|
||||||
this.reportType = reportType;
|
this.reportType = reportType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +84,7 @@ public class ImportBIDataRequest {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
result = prime * result + ((filePath == null) ? 0 : filePath.hashCode());
|
result = prime * result + ((filePath == null) ? 0 : filePath.hashCode());
|
||||||
result = prime * result + reportType;
|
result = prime * result + ((reportType == null) ? 0 : reportType.hashCode());
|
||||||
result = prime * result + firstRow;
|
result = prime * result + firstRow;
|
||||||
result = prime * result + sheetIndex;
|
result = prime * result + sheetIndex;
|
||||||
return result;
|
return result;
|
||||||
|
@ -104,17 +117,11 @@ public class ImportBIDataRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString()
|
||||||
return (
|
{
|
||||||
"ImportBIDataRequest [filePath=" +
|
return "ImportBIDataRequest [filePath=" + filePath + ", reportType=" + reportType
|
||||||
filePath +
|
+ ", firstRow=" + firstRow + ", sheetIndex=" + sheetIndex + "]";
|
||||||
", reportType=" +
|
|
||||||
reportType +
|
|
||||||
", firstRow=" +
|
|
||||||
firstRow +
|
|
||||||
", sheetIndex=" +
|
|
||||||
sheetIndex +
|
|
||||||
"]"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} ### %msg%n" />
|
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} ### %msg%n" />
|
||||||
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
|
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
|
||||||
</Console>
|
</Console>
|
||||||
<RollingFile name="rolling_file_win" filename="d:/logs/桌面霸屏/app.log"
|
<RollingFile name="rolling_file" filename="d:/logs/桌面霸屏/app.log"
|
||||||
filePattern="d:/logs/桌面霸屏/logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
|
filePattern="d:/logs/桌面霸屏/logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
|
||||||
<PatternLayout>
|
<PatternLayout>
|
||||||
<Pattern>[%t][%level][%d{HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
|
<Pattern>[%t][%level][%d{HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
|
||||||
|
@ -15,25 +15,13 @@
|
||||||
<DefaultRolloverStrategy max="20" />
|
<DefaultRolloverStrategy max="20" />
|
||||||
</Policies>
|
</Policies>
|
||||||
</RollingFile>
|
</RollingFile>
|
||||||
<RollingFile name="rolling_file_linux" filename="/logs/桌面霸屏/app.log"
|
|
||||||
filePattern="/logs/桌面霸屏/logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
|
|
||||||
<PatternLayout>
|
|
||||||
<Pattern>[%t][%level][%d{HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
|
|
||||||
</PatternLayout>
|
|
||||||
<Policies>
|
|
||||||
<TimeBasedTriggeringPolicy interval="1" />
|
|
||||||
<SizeBasedTriggeringPolicy size="20MB" />
|
|
||||||
<DefaultRolloverStrategy max="20" />
|
|
||||||
</Policies>
|
|
||||||
</RollingFile>
|
|
||||||
</Appenders>
|
</Appenders>
|
||||||
<Loggers>
|
<Loggers>
|
||||||
<!-- <Logger name="mylog" level="info">
|
<!-- <Logger name="mylog" level="info">
|
||||||
<AppenderRef ref="rolling_file" />
|
<AppenderRef ref="rolling_file" />
|
||||||
</Logger> -->
|
</Logger> -->
|
||||||
<Root level="debug">
|
<Root level="debug">
|
||||||
<AppenderRef ref="rolling_file_linux" />
|
<AppenderRef ref="rolling_file" />
|
||||||
<AppenderRef ref="rolling_file_win" />
|
|
||||||
<AppenderRef ref="Console" />
|
<AppenderRef ref="Console" />
|
||||||
</Root>
|
</Root>
|
||||||
</Loggers>
|
</Loggers>
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!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">
|
<mapper namespace="com.cpic.xim.mybatis.mapper.ArchievementMapper">
|
||||||
<select id="getDepartmentArchievement" useCache="false" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
<select id="getDepartmentArchievement" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||||
call telsale_archievement_pkg.department_archievement(
|
call telsale_archievement_pkg.department_archievement(
|
||||||
#{a_department_code, mode=IN, jdbcType=VARCHAR},
|
#{a_department_code, mode=IN, jdbcType=VARCHAR},
|
||||||
#{a_attaching_rate, mode=OUT, 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, mode=OUT, jdbcType=VARCHAR},
|
||||||
#{a_renewal_rate_target, mode=OUT, jdbcType=VARCHAR},
|
|
||||||
#{a_total, mode=OUT, jdbcType=INTEGER, javaType=Integer},
|
#{a_total, mode=OUT, jdbcType=INTEGER, javaType=Integer},
|
||||||
#{a_mensual_cur, mode=OUT, jdbcType=CURSOR, resultMap=MensualArchievementMapper})
|
#{a_mensual_cur, mode=OUT, jdbcType=CURSOR, resultMap=MensualArchievementMapper})
|
||||||
</select>
|
</select>
|
||||||
<select id="getCallerArchievement" useCache="false" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
<select id="getCallerArchievement" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||||
call telsale_archievement_pkg.caller_archievement(
|
call telsale_archievement_pkg.caller_archievement(
|
||||||
#{a_caller_code, mode=IN, jdbcType=VARCHAR},
|
#{a_caller_code, mode=IN, jdbcType=VARCHAR},
|
||||||
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
|
#{a_attaching_rate, mode=OUT, jdbcType=VARCHAR},
|
||||||
|
|
|
@ -11,11 +11,12 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertTelsalerRenewalRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord">
|
<insert id="insertTelsalerRenewalRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord">
|
||||||
insert into "BI电销坐席续保率跟踪表-24年" ("责任部门","责任人","机构目标值1(%)","到期数-全月",
|
insert into BI电销坐席续保率跟踪表 ("责任部门","责任人","机构目标值1(%)","到期数-全月",
|
||||||
"序时到期数占比(%)","个车续保率(序时)(%)","个车续保率(全月)(%)",
|
"序时到期数占比(%)","个车续保率(序时)(%)","个车续保率(全月)(%)",
|
||||||
"环比昨日(%)","环比上月(%)")
|
"环比昨日(%)","环比上月(%)","平均提前签单天数","环比")
|
||||||
values (#{责任部门},#{责任人},#{机构目标值},#{到期数全月},#{序时到期数占比},
|
values (#{责任部门},#{责任人},#{机构目标值},#{到期数全月},#{序时到期数占比},
|
||||||
#{个车续保率序时},#{个车续保率全月},#{环比昨日},#{环比上月} )
|
#{个车续保率序时},#{个车续保率全月},#{环比昨日},#{环比上月},
|
||||||
|
#{平均提前签单天数},#{环比})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertDepartmentAttachingRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord">
|
<insert id="insertDepartmentAttachingRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord">
|
||||||
|
@ -29,23 +30,24 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertDepartmentRenewalRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord" >
|
<insert id="insertDepartmentRenewalRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord" >
|
||||||
insert into "BI机构续保率跟踪表-24年"( "责任部门","机构目标值1(%)","到期数-全月" ,"序时到期数占比(%)","个车续保率(序时)(%)",
|
insert into BI机构当月个车续保率跟踪表( "责任部门","机构目标值1(%)","到期数-全月" ,"序时到期数占比(%)","个车续保率(序时)(%)",
|
||||||
"个车续保率(全月)(%)","环比昨日(%)","环比上月(%)")
|
"个车续保率(全月)(%)","环比昨日(%)","环比上月(%)","平均提前签单天数","环比")
|
||||||
values (#{责任部门},#{机构目标值},#{到期数全月},#{序时到期数占比},
|
values (#{责任部门},#{机构目标值},#{到期数全月},#{序时到期数占比},
|
||||||
#{个车续保率序时},#{个车续保率全月},#{环比昨日},#{环比上月} )
|
#{个车续保率序时},#{个车续保率全月},#{环比昨日},#{环比上月},
|
||||||
|
#{平均提前签单天数},#{环比})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="cleanTelsalerAttachingRateData" statementType="CALLABLE">
|
<select id="cleanTelsalerAttachingRateData" statementType="CALLABLE">
|
||||||
call TELSALE_BI_UTILS.清理BI电销坐席车非渗透率跟踪表()
|
call telsale_bi_utils.清理BI电销坐席车非渗透跟踪表()
|
||||||
</select>
|
</select>
|
||||||
<select id="cleanTelsalerRenewalRateData" statementType="CALLABLE">
|
<select id="cleanTelsalerRenewalRateData" statementType="CALLABLE">
|
||||||
call TELSALE_BI_UTILS.清理BI电销坐席续保率跟踪表()
|
call telsale_bi_utils.清理BI电销坐席续保率跟踪表()
|
||||||
</select>
|
</select>
|
||||||
<select id="cleanDepartmentAttachingRateData" statementType="CALLABLE">
|
<select id="cleanDepartmentAttachingRateData" statementType="CALLABLE">
|
||||||
call TELSALE_BI_UTILS.清理BI部门渗透率跟踪表()
|
call telsale_bi_utils.清理BI部门渗透率跟踪表()
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="cleanDepartmentRenewalRateData" statementType="CALLABLE">
|
<select id="cleanDepartmentRenewalRateData" statementType="CALLABLE">
|
||||||
call TELSALE_BI_UTILS.清理BI部门续保率跟踪表()
|
call telsale_bi_utils.清理BI部门续保率跟踪表()
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
|
@ -1,120 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!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.QueryBIArchievementDataMapper">
|
|
||||||
|
|
||||||
<!-- 查询坐席车非渗透率报表 -->
|
|
||||||
<select id="queryBITelsalerAttachingRate" statementType="STATEMENT" resultMap="BITelsalerAttachingRate" useCache="false" flushCache="true">
|
|
||||||
SELECT t.部门,
|
|
||||||
t.经办,
|
|
||||||
t."车险保费(万)" as 车险保费,
|
|
||||||
t.车险保费占比,
|
|
||||||
t."非车保费(万)" as 非车保费,
|
|
||||||
t.当月保费渗透率,
|
|
||||||
t.保费渗透率环比上月,
|
|
||||||
t.当月客户渗透率,
|
|
||||||
t.客户渗透率环比上月,
|
|
||||||
t.当月车非客均保费,
|
|
||||||
t.客均保费环比上月
|
|
||||||
FROM BI电销坐席车非渗透率跟踪表 t
|
|
||||||
ORDER BY t.部门
|
|
||||||
</select>
|
|
||||||
<!-- 坐席车非渗透率报表记录 -->
|
|
||||||
<resultMap id="BITelsalerAttachingRate" type="com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord">
|
|
||||||
<result property="departmentName" column="部门" javaType="String" jdbcType="VARCHAR" />
|
|
||||||
<result property="telsalerName" column="经办" javaType="String" jdbcType="VARCHAR" />
|
|
||||||
<result property="motoPremium" column="车险保费" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="motoPremiumProportion" column="车险保费占比" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="nomotoPremium" column="非车保费" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="attachingRate" column="当月保费渗透率" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="attachingRateChange" column="保费渗透率环比上月" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="customerHandleRate" column="当月客户渗透率" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="customerHandleRateChange" column="客户渗透率环比上月" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="noMotoPremiumPerCustomer" column="当月车非客均保费" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="noMotoPremiumPerCustomerChange" column="客均保费环比上月" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<!-- 坐席续保率 -->
|
|
||||||
<select id="queryBITesalerRenewalRate" statementType="STATEMENT" resultMap="BITelsalerRenewalRate" useCache="false" flushCache="true">
|
|
||||||
select t.责任部门,
|
|
||||||
t.责任人,
|
|
||||||
t."机构目标值1(%)" as 机构目标值,
|
|
||||||
t."到期数-全月" as 到期数全月,
|
|
||||||
t."序时到期数占比(%)" as 序时到期数占比,
|
|
||||||
t."个车续保率(序时)(%)" as 个车续保率序时,
|
|
||||||
t."个车续保率(全月)(%)" as 个车续保率全月,
|
|
||||||
t."环比昨日(%)" as 环比昨日,
|
|
||||||
t."环比上月(%)" as 环比上月
|
|
||||||
from "BI电销坐席续保率跟踪表-24年" t
|
|
||||||
</select>
|
|
||||||
<resultMap id="BITelsalerRenewalRate" type="com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord">
|
|
||||||
<result property="责任部门" column="责任部门" javaType="String" jdbcType="VARCHAR" />
|
|
||||||
<result property="责任人" column="责任人" javaType="String" jdbcType="VARCHAR" />
|
|
||||||
<result property="机构目标值" column="机构目标值" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="到期数全月" column="到期数全月" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="序时到期数占比" column="序时到期数占比" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="个车续保率序时" column="个车续保率序时" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="个车续保率全月" column="个车续保率全月" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="环比昨日" column="环比昨日" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<result property="环比上月" column="环比上月" javaType="double" jdbcType="DOUBLE" />
|
|
||||||
<!-- <result property="平均提前签单天数" column="平均提前签单天数" javaType="int" jdbcType="DOUBLE" /> -->
|
|
||||||
<!-- <result property="环比" column="环比" javaType="int" jdbcType="DOUBLE" /> -->
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<!-- 机构渗透率 -->
|
|
||||||
<select id="queryBIDepartmentAttachingRate" statementType="STATEMENT" resultMap="BIDepartmentAttachingRate" useCache="false" flushCache="true">
|
|
||||||
select t.部门,
|
|
||||||
t."目标值-机构" as 目标值机构,
|
|
||||||
t.目标差距,
|
|
||||||
t.车险保费,
|
|
||||||
t.车险保费占比,
|
|
||||||
t.非车保费,
|
|
||||||
t.当月保费渗透率,
|
|
||||||
t.保费渗透率环比上月,
|
|
||||||
t.当月客户渗透率,
|
|
||||||
t.客户渗透率环比上月,
|
|
||||||
t.当月车非客均保费,
|
|
||||||
t.客均保费环比上月,
|
|
||||||
t.车险客户数
|
|
||||||
from BI机构渗透率跟踪表 t
|
|
||||||
</select>
|
|
||||||
<resultMap id="BIDepartmentAttachingRate" type="com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord">
|
|
||||||
<result column="部门" property="departmentName" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="目标值机构" property="departmentObject" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="目标差距" property="objectGap" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="车险保费" property="motoPremium" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="车险保费占比" property="motoPremiumProPortion" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="非车保费" property="nomotoPremium" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="当月保费渗透率" property="attachingRate" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="保费渗透率环比上月" property="attachingRateChange" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="当月客户渗透率" property="customerHandleRate" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="客户渗透率环比上月" property="customerHandleRateChange" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="当月车非客均保费" property="premiumPerCustomer" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="客均保费环比上月" property="premiumPerCustomerChange" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="车险客户数" property="motoInsuranceCustomerCount" jdbcType="INTEGER" javaType="int" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<!-- 机构续保率 -->
|
|
||||||
<select id="queryBIDepartmentRenewalRate" statementType="STATEMENT" resultMap="BIDepartmentRenewalRate" useCache="false" flushCache="true">
|
|
||||||
select t.责任部门,
|
|
||||||
t."机构目标值1(%)" as 机构目标值,
|
|
||||||
t."到期数-全月" as 到期数全月,
|
|
||||||
t."序时到期数占比(%)" as 序时到期数占比,
|
|
||||||
t."个车续保率(序时)(%)" as 个车续保率序时,
|
|
||||||
t."个车续保率(全月)(%)" as 个车续保率全月,
|
|
||||||
t."环比昨日(%)" as 环比昨日,
|
|
||||||
t."环比上月(%)" as 环比上月
|
|
||||||
from "BI机构续保率跟踪表-24年" t
|
|
||||||
</select>
|
|
||||||
<resultMap id="BIDepartmentRenewalRate" type="com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord">
|
|
||||||
<result column="责任部门" property="责任部门" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="机构目标值" property="机构目标值" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="到期数全月" property="到期数全月" jdbcType="INTEGER" javaType="int" />
|
|
||||||
<result column="序时到期数占比" property="序时到期数占比" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="个车续保率序时" property="个车续保率序时" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="个车续保率全月" property="个车续保率全月" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="环比昨日" property="环比昨日" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<result column="环比上月" property="环比上月" jdbcType="DOUBLE" javaType="double" />
|
|
||||||
<!-- <result column="平均提前签单天数" property="平均提前签单天数" jdbcType="INTEGER" javaType="int" /> -->
|
|
||||||
<!-- <result column="环比" property="环比" jdbcType="DOUBLE" javaType="double" /> -->
|
|
||||||
</resultMap>
|
|
||||||
</mapper>
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!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.RewardsMapper">
|
<mapper namespace="com.cpic.xim.mybatis.mapper.RewardsMapper">
|
||||||
<select id="queryRewardProjects" statementType="STATEMENT" resultMap="RewardProjectMap" useCache="false" flushCache="true">
|
<select id="queryRewardProjects" resultMap="RewardProjectMap">
|
||||||
select reward_index, reward_name from reward_projects order by reward_index desc
|
select reward_index, reward_name from reward_projects order by reward_index desc
|
||||||
</select>
|
</select>
|
||||||
<resultMap id="RewardProjectMap" type="com.cpic.xim.mybatis.pojo.RewardProject">
|
<resultMap id="RewardProjectMap" type="com.cpic.xim.mybatis.pojo.RewardProject">
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
<result property="rewardName" column="reward_name" javaType="String"/>
|
<result property="rewardName" column="reward_name" javaType="String"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="queryRewardTelsaler" statementType="STATEMENT" resultMap="RewardGainerMapper" useCache="false" flushCache="true">
|
<select id="queryRewardTelsaler" flushCache="true" resultMap="RewardGainerMapper">
|
||||||
SELECT hjr.rec_id rec_id,
|
SELECT hjr.rec_id rec_id,
|
||||||
hjr.telsaler_name telsaler_name,
|
hjr.telsaler_name telsaler_name,
|
||||||
hjr.telsaler_code telsaler_code,
|
hjr.telsaler_code telsaler_code,
|
||||||
|
@ -28,20 +28,20 @@
|
||||||
<result column="reward_index" property="rewardProjectCode" />
|
<result column="reward_index" property="rewardProjectCode" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="addRewardTelSaler" statementType="CALLABLE" parameterType="java.util.HashMap" useCache="false" flushCache="true" >
|
<select id="addRewardTelSaler" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||||
call telsaler_reward_pkg.add_telsaler_reward(
|
call telsaler_reward_pkg.add_telsaler_reward(
|
||||||
#{a_reward_index,mode=IN,jdbcType=VARCHAR},
|
#{a_reward_index,mode=IN,jdbcType=VARCHAR},
|
||||||
#{a_telsaler_name,mode=IN,jdbcType=VARCHAR})
|
#{a_telsaler_name,mode=IN,jdbcType=VARCHAR})
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 删除获奖坐席记录 -->
|
<!-- 删除获奖坐席记录 -->
|
||||||
<select id="deleteRewardTelSaler" statementType="CALLABLE" parameterType="java.util.HashMap" useCache="false" flushCache="true" >
|
<select id="deleteRewardTelSaler" flushCache="true" statementType="CALLABLE" parameterType="java.util.HashMap">
|
||||||
call telsaler_reward_pkg.delete_telsaler_reward(
|
call telsaler_reward_pkg.delete_telsaler_reward(
|
||||||
#{a_rec_id,mode=IN,jdbcType=INTEGER})
|
#{a_rec_id,mode=IN,jdbcType=INTEGER})
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 更新获奖坐席 -->
|
<!-- 更新获奖坐席 -->
|
||||||
<select id="updateRewardTelSaler" statementType="CALLABLE" parameterType="java.util.HashMap" useCache="false" flushCache="true" >
|
<select id="updateRewardTelSaler" statementType="CALLABLE" flushCache="true" parameterType="java.util.HashMap" >
|
||||||
call telsaler_reward_pkg.update_telsaler_reward(
|
call telsaler_reward_pkg.update_telsaler_reward(
|
||||||
#{a_rec_id,mode=IN,jdbcType=INTEGER},
|
#{a_rec_id,mode=IN,jdbcType=INTEGER},
|
||||||
#{a_telsaler_name,mode=IN,jdbcType=VARCHAR},
|
#{a_telsaler_name,mode=IN,jdbcType=VARCHAR},
|
||||||
|
|
|
@ -1,164 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!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.TWrTelsalerMapper">
|
|
||||||
<select id="queryTWrTelsalerInfo" resultMap="TWrTelsaler">
|
|
||||||
select t.人员姓名,
|
|
||||||
t.人员工号,
|
|
||||||
t.籍贯,
|
|
||||||
t.参加工作时间,
|
|
||||||
t.入职日期,
|
|
||||||
t.入司日期,
|
|
||||||
t.业务类型,
|
|
||||||
t.办公地省,
|
|
||||||
t.办公地市,
|
|
||||||
t.人员类别,
|
|
||||||
t.现任岗位,
|
|
||||||
t.现任职级,
|
|
||||||
t.机构名称,
|
|
||||||
t.职场分类,
|
|
||||||
t.片区名称,
|
|
||||||
t.团队名称,
|
|
||||||
t.对口分公司,
|
|
||||||
t.展业地区,
|
|
||||||
t.招聘渠道,
|
|
||||||
t.渠道明细,
|
|
||||||
t.全日制最高学历,
|
|
||||||
t.学历类型,
|
|
||||||
t.用工性质名称,
|
|
||||||
t.合同种类,
|
|
||||||
t.合同类型,
|
|
||||||
t.合同性质,
|
|
||||||
t.合同签订次数,
|
|
||||||
t.合同生效日期,
|
|
||||||
t.合同到期日期,
|
|
||||||
t.人员属性,
|
|
||||||
t.保代员工号,
|
|
||||||
t.职场属性,
|
|
||||||
t.办公性质,
|
|
||||||
t.保代人员属性,
|
|
||||||
t.人员状态
|
|
||||||
from telsaler t
|
|
||||||
where t.人员姓名 = #{telsaler} or t.人员工号 = #{telsaler}
|
|
||||||
</select>
|
|
||||||
<resultMap id="TWrTelsaler" type="TWrTelsalerRecord">
|
|
||||||
<result column="人员姓名" property="人员姓名" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="人员工号" property="人员工号" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="籍贯" property="籍贯" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="参加工作时间" property="参加工作时间" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="入职日期" property="入职日期" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="入司日期" property="入司日期" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="业务类型" property="业务类型" jdbcType="VARCHAR" javaType="String" />
|
|
||||||
<result column="办公地省" property="办公地省" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="办公地市" property="办公地市" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="人员类别" property="人员类别" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="现任岗位" property="现任岗位" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="现任职级" property="现任职级" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="机构名称" property="机构名称" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="职场分类" property="职场分类" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="片区名称" property="片区名称" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="团队名称" property="团队名称" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="对口分公司" property="对口分公司" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="展业地区" property="展业地区" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="招聘渠道" property="招聘渠道" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="渠道明细" property="渠道明细" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="全日制最高学历" property="全日制最高学历" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="学历类型" property="学历类型" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="用工性质名称" property="用工性质名称" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="合同种类" property="合同种类" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="合同类型" property="合同类型" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="合同性质" property="合同性质" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="合同签订次数" property="合同签订次数" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="合同生效日期" property="合同生效日期" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="合同到期日期" property="合同到期日期" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="人员属性" property="人员属性" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="保代员工号" property="保代员工号" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="职场属性" property="职场属性" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="办公性质" property="办公性质" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="保代人员属性" property="保代人员属性" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
<result column="人员状态" property="人员状态" jdbcType="VARCHAR" javaType="String"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<!-- insertTWrTelsalerRecordToDB -->
|
|
||||||
<insert id="insertTWrTelsalerRecordToDB" parameterType="TWrTelsalerRecord">
|
|
||||||
insert into TWR_TELSALER_DEV(
|
|
||||||
人员姓名,
|
|
||||||
人员工号,
|
|
||||||
籍贯,
|
|
||||||
参加工作时间,
|
|
||||||
入职日期,
|
|
||||||
入司日期,
|
|
||||||
业务类型,
|
|
||||||
办公地省,
|
|
||||||
办公地市,
|
|
||||||
人员类别,
|
|
||||||
现任岗位,
|
|
||||||
现任职级,
|
|
||||||
机构名称,
|
|
||||||
职场分类,
|
|
||||||
片区名称,
|
|
||||||
团队名称,
|
|
||||||
对口分公司,
|
|
||||||
展业地区,
|
|
||||||
招聘渠道,
|
|
||||||
渠道明细,
|
|
||||||
全日制最高学历,
|
|
||||||
学历类型,
|
|
||||||
用工性质名称,
|
|
||||||
合同种类,
|
|
||||||
合同类型,
|
|
||||||
合同性质,
|
|
||||||
合同签订次数,
|
|
||||||
合同生效日期,
|
|
||||||
合同到期日期,
|
|
||||||
人员属性,
|
|
||||||
保代员工号,
|
|
||||||
职场属性,
|
|
||||||
办公性质,
|
|
||||||
保代人员属性,
|
|
||||||
人员状态)
|
|
||||||
values (
|
|
||||||
#{人员姓名},
|
|
||||||
#{人员工号},
|
|
||||||
#{籍贯},
|
|
||||||
#{参加工作时间},
|
|
||||||
#{入职日期},
|
|
||||||
#{入司日期},
|
|
||||||
#{业务类型},
|
|
||||||
#{办公地省},
|
|
||||||
#{办公地市},
|
|
||||||
#{人员类别},
|
|
||||||
#{现任岗位},
|
|
||||||
#{现任职级},
|
|
||||||
#{机构名称},
|
|
||||||
#{职场分类},
|
|
||||||
#{片区名称},
|
|
||||||
#{团队名称},
|
|
||||||
#{对口分公司},
|
|
||||||
#{展业地区},
|
|
||||||
#{招聘渠道},
|
|
||||||
#{渠道明细},
|
|
||||||
#{全日制最高学历},
|
|
||||||
#{学历类型},
|
|
||||||
#{用工性质名称},
|
|
||||||
#{合同种类},
|
|
||||||
#{合同类型},
|
|
||||||
#{合同性质},
|
|
||||||
#{合同签订次数},
|
|
||||||
#{合同生效日期},
|
|
||||||
#{合同到期日期},
|
|
||||||
#{人员属性},
|
|
||||||
#{保代员工号},
|
|
||||||
#{职场属性},
|
|
||||||
#{办公性质},
|
|
||||||
#{保代人员属性},
|
|
||||||
#{人员状态} )
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<select id="cleanTWrTelsalerRecord" statementType="CALLABLE">
|
|
||||||
call TELSALER_TWR_UTILS.清理TWR坐席清单()
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="cleanTWrTelsalerTeamRecord" statementType="CALLABLE">
|
|
||||||
call TELSALER_TWR_UTILS.清理TWR团队清单()
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
|
@ -3,11 +3,6 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<properties resource="mybatis/jdbc.properties" />
|
<properties resource="mybatis/jdbc.properties" />
|
||||||
|
|
||||||
<settings>
|
|
||||||
<!-- 二级缓存开启 -->
|
|
||||||
<setting name="cacheEnabled" value="false" />
|
|
||||||
</settings>
|
|
||||||
|
|
||||||
<!-- 类型别名 -->
|
<!-- 类型别名 -->
|
||||||
<typeAliases>
|
<typeAliases>
|
||||||
<package name="com.cpic.xim.mybatis.pojo" />
|
<package name="com.cpic.xim.mybatis.pojo" />
|
||||||
|
@ -32,8 +27,5 @@
|
||||||
<mapper resource="mybatis/mapper/RankingListMapper.xml" />
|
<mapper resource="mybatis/mapper/RankingListMapper.xml" />
|
||||||
<mapper resource="mybatis/mapper/RewardsMapper.xml" />
|
<mapper resource="mybatis/mapper/RewardsMapper.xml" />
|
||||||
<mapper resource="mybatis/mapper/ImportBIArchievementDataMapper.xml" />
|
<mapper resource="mybatis/mapper/ImportBIArchievementDataMapper.xml" />
|
||||||
<mapper resource="mybatis/mapper/QueryBIArchievementDataMapper.xml" />
|
|
||||||
<mapper resource="mybatis/mapper/TWrTelsalerMapper.xml" />
|
|
||||||
</mappers>
|
</mappers>
|
||||||
|
|
||||||
</configuration>
|
</configuration>
|
|
@ -18,7 +18,6 @@ import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import com.cpic.xim.mybatis.mapper.ImportBIArchievementDataMapper;
|
import com.cpic.xim.mybatis.mapper.ImportBIArchievementDataMapper;
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord;
|
import com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord;
|
||||||
import com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord;
|
|
||||||
import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord;
|
import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord;
|
||||||
import com.cpic.xim.mybatis.utils.MybatisUtils;
|
import com.cpic.xim.mybatis.utils.MybatisUtils;
|
||||||
import com.cpic.xim.utils.data.ImportBIExcelData;
|
import com.cpic.xim.utils.data.ImportBIExcelData;
|
||||||
|
@ -75,7 +74,7 @@ public class BatchInsertTest
|
||||||
@Test
|
@Test
|
||||||
public void testBatchInsertBITeslsalerRenewalRate()
|
public void testBatchInsertBITeslsalerRenewalRate()
|
||||||
{
|
{
|
||||||
String filePath = "D:\\develop\\cpicxim\\deskop_task_schedule\\数据\\测试用\\24年报表\\坐席-续保.xlsx";
|
String filePath = "D:/develop/cpicxim/deskop_task_schedule/数据/测试用/坐席-续保.xlsx";
|
||||||
ArrayList<BITelsalerRenewalRateRecord> records = null;
|
ArrayList<BITelsalerRenewalRateRecord> records = null;
|
||||||
SqlSession session = null;
|
SqlSession session = null;
|
||||||
ImportBIArchievementDataMapper mapper = null;
|
ImportBIArchievementDataMapper mapper = null;
|
||||||
|
@ -115,7 +114,7 @@ public class BatchInsertTest
|
||||||
@Test
|
@Test
|
||||||
public void testBatchInsertBIDepartmentAttachingRateToDB()
|
public void testBatchInsertBIDepartmentAttachingRateToDB()
|
||||||
{
|
{
|
||||||
String filePath = "D:\\develop\\cpicxim\\deskop_task_schedule\\数据\\测试用\\24年报表\\机构-续保.xlsx";
|
String filePath = "D:/develop/cpicxim/deskop_task_schedule/数据/测试用/机构渗透.xlsx";
|
||||||
|
|
||||||
ArrayList<BIDepartmentAttachingRateRecord> records = null;
|
ArrayList<BIDepartmentAttachingRateRecord> records = null;
|
||||||
SqlSession session = null;
|
SqlSession session = null;
|
||||||
|
@ -149,42 +148,4 @@ public class BatchInsertTest
|
||||||
assert( false );
|
assert( false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testBatchInsertBIDepartmentRenewalRateToDB()
|
|
||||||
{
|
|
||||||
String filePath = "D:\\develop\\cpicxim\\deskop_task_schedule\\数据\\测试用\\24年报表\\机构-续保.xlsx";
|
|
||||||
|
|
||||||
ArrayList<BIDepartmentRenewalRateRecord> records = null;
|
|
||||||
SqlSession session = null;
|
|
||||||
ImportBIArchievementDataMapper mapper = null;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
records =
|
|
||||||
ImportBIExcelData.importBIDepartmentRenewalRateRecordsFromXlsx( filePath, 0, 1 );
|
|
||||||
session = MybatisUtils.getSqlSessionBatch();
|
|
||||||
mapper = session.getMapper( ImportBIArchievementDataMapper.class );
|
|
||||||
|
|
||||||
mapper.cleanDepartmentRenewalRateData();
|
|
||||||
|
|
||||||
for ( BIDepartmentRenewalRateRecord record : records )
|
|
||||||
{
|
|
||||||
mapper.insertDepartmentRenewalRateDataToDB( record );
|
|
||||||
}
|
|
||||||
|
|
||||||
session.commit();
|
|
||||||
}
|
|
||||||
catch ( Exception error )
|
|
||||||
{
|
|
||||||
if ( session != null )
|
|
||||||
{
|
|
||||||
session.rollback();
|
|
||||||
}
|
|
||||||
|
|
||||||
logger.error("错误", error);
|
|
||||||
|
|
||||||
assert( false );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
BIN
数据/坐席/TWr团队.xlsx
BIN
数据/坐席/TWr团队.xlsx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue