Compare commits
	
		
			36 Commits
		
	
	
		
			feature-re
			...
			develop
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d517c2e82a | |||
| 80ba8da7e0 | |||
| 1422c0b781 | |||
| a33981ac55 | |||
| 506f18abfe | |||
| e4d641021e | |||
| 6ddfe56e6d | |||
| a3c56df910 | |||
| 8b31ffb6d6 | |||
| b794e99694 | |||
| 321ff39e1c | |||
| 05aabea1a2 | |||
| 0caf428d67 | |||
| 0ad42d00a9 | |||
| 16df86e3a7 | |||
| 636ae55b43 | |||
| cb1c08fff4 | |||
| 3c807a6efa | |||
| 7964f8fbe0 | |||
| a1de9387c8 | |||
| 0021873ef7 | |||
| be1a5ffb00 | |||
| 6d06ad934d | |||
| e805bf914b | |||
| e40b81672a | |||
| 041ec287b9 | |||
| e5dfb45c79 | |||
| 19d658858e | |||
| 5fa7639314 | |||
| 8a64561471 | |||
| fdb345176e | |||
| c6e08981f7 | |||
| a9c05eef2c | |||
| 0c2c762721 | |||
| b8df96ac42 | |||
| 580e917347 | 
							
								
								
									
										18
									
								
								code/db/BI相关常用语句.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								code/db/BI相关常用语句.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| SELECT * | ||||
|   FROM BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD>; | ||||
|  | ||||
| SELECT * | ||||
|   FROM BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD>; | ||||
|  | ||||
| SELECT * | ||||
|   FROM BI<EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD>; | ||||
|  | ||||
| /* | ||||
| truncate table BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<CDB8>Ʊ<EFBFBD>; | ||||
|  | ||||
| BEGIN | ||||
|     telsale_bi_utils.<2E><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<CDB8>Ʊ<EFBFBD>; | ||||
|     telsale_bi_utils.<2E><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD>; | ||||
|     telsale_bi_utils.<2E><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5>ͳ<EFBFBD>Ʊ<EFBFBD>; | ||||
| END; | ||||
| */ | ||||
| @@ -28,6 +28,7 @@ CREATE OR REPLACE PACKAGE telsale_archievement_pkg IS | ||||
|         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 | ||||
|     ); | ||||
|  | ||||
| @@ -52,15 +53,15 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS | ||||
|         A_TOTAL           OUT INTEGER, | ||||
|         A_MENSUAL_CUR     OUT CUR_TYPE | ||||
|     ) IS | ||||
|         L_THIS_MONTH      VARCHAR2(4); | ||||
|         L_THIS_YEAR       VARCHAR2(4); | ||||
|         --L_THIS_MONTH      VARCHAR2(4); | ||||
|         --L_THIS_YEAR       VARCHAR2(4); | ||||
|         L_FIRSTDAY        DATE; | ||||
|         L_DEPARTMENT_NAME VARCHAR2(100); | ||||
|     BEGIN | ||||
|         L_THIS_MONTH := TO_CHAR(SYSDATE, | ||||
|         /*L_THIS_MONTH := TO_CHAR(SYSDATE, | ||||
|                                 'mm'); | ||||
|         L_THIS_YEAR  := TO_CHAR(SYSDATE, | ||||
|                                 'yyyy'); | ||||
|                                 'yyyy');*/ | ||||
|         L_FIRSTDAY := TO_DATE(TO_CHAR(SYSDATE, | ||||
|                                       'yyyy') || '-01-01 00:00:00', | ||||
|                               'yyyy-mm-dd hh24:mi:ss'); | ||||
| @@ -77,7 +78,7 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS | ||||
|                                         DEPARTMENTCODE_EXCEPTION_MSG); | ||||
|         END; | ||||
|         --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8> | ||||
|         SELECT DECODE(SUM(CF.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD>), | ||||
|         /*SELECT DECODE(SUM(CF.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD>), | ||||
|                      0, | ||||
|                      0, | ||||
|                      ROUND((SUM(CF.<2E><><EFBFBD><EFBFBD><EFBFBD>ںϱ<DABA><CFB1><EFBFBD>) / SUM(CF.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD>) * 100), | ||||
| @@ -86,16 +87,26 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS | ||||
|          FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD> CF | ||||
|         WHERE CF.<2E>·<EFBFBD> = L_THIS_MONTH | ||||
|           AND CF.<2E><><EFBFBD><EFBFBD> = L_THIS_YEAR | ||||
|            AND <20><><EFBFBD>Ŵ<EFBFBD><C5B4><EFBFBD> = A_DEPARTMENT_CODE; | ||||
|           AND <20><><EFBFBD>Ŵ<EFBFBD><C5B4><EFBFBD> = A_DEPARTMENT_CODE;*/ | ||||
|         SELECT round(dept.<2E><><EFBFBD>±<EFBFBD><C2B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8>, | ||||
|                      2) | ||||
|           INTO A_ATTACHING_RATE | ||||
|           FROM desktop_archievement_admin.BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD> dept | ||||
|          WHERE dept.<2E><><EFBFBD><EFBFBD> = L_DEPARTMENT_NAME; | ||||
|         --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
|         SELECT DECODE(SUM(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>), | ||||
|         /*SELECT DECODE(SUM(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>), | ||||
|                      0, | ||||
|                      0, | ||||
|                      ROUND(SUM(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۼ<EFBFBD>) / SUM(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) * 100, | ||||
|                            2)) | ||||
|          INTO A_RENEWAL_RATE | ||||
|          FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3> | ||||
|          WHERE <20><><EFBFBD><EFBFBD> = L_DEPARTMENT_NAME; | ||||
|         WHERE <20><><EFBFBD><EFBFBD> = L_DEPARTMENT_NAME;*/ | ||||
|         SELECT round(t."<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>ȫ<EFBFBD>£<EFBFBD>(%)", | ||||
|                      2) | ||||
|           INTO A_RENEWAL_RATE | ||||
|           FROM BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD><C2B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD> t | ||||
|          WHERE t.<2E><><EFBFBD>β<EFBFBD><CEB2><EFBFBD> = L_DEPARTMENT_NAME; | ||||
|         --<2D><>ҵ<EFBFBD><D2B5> | ||||
|         SELECT ROUND(NVL(SUM(CF.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD> + CF.<2E><><EFBFBD><EFBFBD><EFBFBD>ںϱ<DABA><CFB1><EFBFBD>), | ||||
|                          0), | ||||
| @@ -131,19 +142,32 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS | ||||
|         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_this_month  VARCHAR2(4); | ||||
|         l_department_name VARCHAR2(100); | ||||
|         --l_this_month      VARCHAR2(4); | ||||
|         l_this_year VARCHAR2(4); | ||||
|         l_firstday    DATE; | ||||
|         --l_firstday        DATE; | ||||
|         l_rownum INTEGER; | ||||
|     BEGIN | ||||
|         --<2D><>ѯ<EFBFBD><D1AF>ϯ<EFBFBD><CFAF><EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD> | ||||
|         --<2D><>ѯ<EFBFBD><D1AF>ϯ<EFBFBD><CFAF><EFBFBD>ƣ<EFBFBD><C6A3>Ͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
|         BEGIN | ||||
|             SELECT saler_name | ||||
|             SELECT zx.saler_name, | ||||
|                    bm.department_name | ||||
|               INTO l_caller_name, | ||||
|                    l_department_name | ||||
|               FROM tele_saler      zx, | ||||
|                    tele_saler_team team, | ||||
|                    idst0.bm_t      bm | ||||
|              WHERE zx.saler_code = a_caller_code | ||||
|                AND zx.team_code = team.team_code | ||||
|                AND team.department_code = bm.department_code; | ||||
|             /* SELECT saler_name | ||||
|              INTO l_caller_name | ||||
|              FROM tele_saler | ||||
|              WHERE saler_code = a_caller_code; | ||||
|             WHERE saler_code = a_caller_code;*/ | ||||
|         EXCEPTION | ||||
|             -- <20><><EFBFBD><EFBFBD>û<EFBFBD>в<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD>ƣ<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>׳<EFBFBD><D7B3>쳣 | ||||
|             WHEN no_data_found THEN | ||||
| @@ -151,12 +175,12 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS | ||||
|                                         CALLERCODE_EXCEPTION_MSG); | ||||
|         END; | ||||
|      | ||||
|         l_this_month := to_char(SYSDATE, | ||||
|                                 'mm'); | ||||
|         --l_this_month := to_char(SYSDATE, | ||||
|         --                        'mm'); | ||||
|         l_this_year := to_char(SYSDATE, | ||||
|                                'yyyy'); | ||||
|         l_firstday   := to_date(l_this_year || '-01-01 00:00:00', | ||||
|                                 'yyyy-mm-dd hh24:mi:ss'); | ||||
|         --l_firstday   := to_date(l_this_year || '-01-01 00:00:00', | ||||
|         --                        'yyyy-mm-dd hh24:mi:ss'); | ||||
|      | ||||
|         --<2D>ܳ<EFBFBD><DCB3>ձ<EFBFBD><D5B1><EFBFBD> | ||||
|         SELECT round(nvl(SUM(cf.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD>), | ||||
| @@ -164,41 +188,44 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS | ||||
|                      2) bf | ||||
|           INTO a_total | ||||
|           FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD> cf | ||||
|          WHERE cf.<2E><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> = a_caller_code | ||||
|          WHERE cf.<2E><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> = l_caller_name | ||||
|            AND cf.<2E><><EFBFBD><EFBFBD> = l_department_name | ||||
|            AND cf.<2E><><EFBFBD><EFBFBD> = l_this_year; | ||||
|      | ||||
|         --<2D><><EFBFBD><CDB8> | ||||
|         SELECT decode(nvl(SUM(cf.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD>), | ||||
|         SELECT rownum, | ||||
|                round(nvl(t.<2E><><EFBFBD>±<EFBFBD><C2B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8>, | ||||
|                          0), | ||||
|                       0, | ||||
|                       0, | ||||
|                       round(SUM(cf.<2E><><EFBFBD><EFBFBD><EFBFBD>ںϱ<DABA><CFB1><EFBFBD>) / SUM(cf.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD>) * 100, | ||||
|                             2)) | ||||
|           INTO a_attaching_rate | ||||
|           FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD> cf | ||||
|          WHERE cf.<2E><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> = a_caller_code | ||||
|            AND cf.<2E><EFBFBD><EFBFBD><EFBFBD> = l_this_year | ||||
|            AND cf.<2E>·<EFBFBD> = l_this_month; | ||||
|      | ||||
|                      2), | ||||
|                round(nvl(t."<22><><EFBFBD>ձ<EFBFBD><D5B1><EFBFBD>(<28><>)" * 10000, | ||||
|                          0), | ||||
|                      2) | ||||
|           INTO l_rownum, | ||||
|                a_attaching_rate, | ||||
|                a_present_month | ||||
|           FROM BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> t | ||||
|          WHERE t.<2E><><EFBFBD><EFBFBD> = l_caller_name | ||||
|            AND rownum = 1; | ||||
|         --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
|         SELECT decode(nvl(SUM(xb.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>), | ||||
|         SELECT rownum, | ||||
|                round(nvl(t."<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>ȫ<EFBFBD>£<EFBFBD>(%)", | ||||
|                          0), | ||||
|                       0, | ||||
|                       0, | ||||
|                       round(SUM(xb.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۼ<EFBFBD>) / SUM(xb.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) * 100, | ||||
|                             2)) xbl | ||||
|           INTO a_renewal_rate | ||||
|           FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3> xb | ||||
|          WHERE xb.<2E><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> = a_caller_code; | ||||
|                      2) | ||||
|           INTO l_rownum, | ||||
|                a_renewal_rate | ||||
|           FROM BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD> t | ||||
|          WHERE t.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = l_caller_name | ||||
|            AND rownum = 1; | ||||
|      | ||||
|         --ÿ<><C3BF>ҵ<EFBFBD><D2B5> | ||||
|         OPEN A_MENSUAL_CUR FOR | ||||
|             SELECT CF.<2E>·<EFBFBD> MM, | ||||
|                    ROUND(NVL(SUM(CF.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD> + CF.<2E><><EFBFBD><EFBFBD><EFBFBD>ںϱ<DABA><CFB1><EFBFBD>), | ||||
|                    ROUND(NVL(SUM(CF.<2E><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<CBBF><CDBB><EFBFBD><EFBFBD><EFBFBD>), | ||||
|                              0), | ||||
|                          0) BF | ||||
|               FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD> CF | ||||
|              WHERE cf.<2E><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> = a_caller_code | ||||
|              WHERE cf.<2E><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> = l_caller_name | ||||
|                AND cf.<2E><><EFBFBD><EFBFBD> = l_department_name | ||||
|                AND ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD> >= TO_DATE(TO_CHAR(SYSDATE, | ||||
|                                            'yyyy') || '-01-01 00:00:00', | ||||
|                                    'yyyy-mm-dd hh24:mi:ss') | ||||
| @@ -233,38 +260,54 @@ CREATE OR REPLACE PACKAGE BODY TELSALE_ARCHIEVEMENT_PKG IS | ||||
|         END; | ||||
|         -- <20><><EFBFBD><EFBFBD><EFBFBD>ں<EFBFBD><DABA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>а<EFBFBD> | ||||
|         OPEN A_ATTACHING_RANKING_LIST FOR | ||||
|             SELECT ROWNUM, | ||||
|                    <20><>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>   AS CALLER_NAME, | ||||
|                    <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> AS ATTACHING_RATE | ||||
|               FROM (SELECT <EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>, | ||||
|                            ROUND(DECODE(nvl(SUM(<28><><EFBFBD>ո<EFBFBD><D5B8>˿ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>), | ||||
|                                             0), | ||||
|                                         0, | ||||
|                                         0, | ||||
|                                         (SUM(<28><><EFBFBD><EFBFBD><EFBFBD>ںϱ<DABA><CFB1><EFBFBD>) / SUM(<EFBFBD><EFBFBD><EFBFBD>ո<EFBFBD><EFBFBD>˿ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)) * 100), | ||||
|                                  2) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8> | ||||
|                       FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD> | ||||
|                      WHERE <20>·<EFBFBD> = A_MONTH | ||||
|                        AND <20><><EFBFBD><EFBFBD> = A_YEAR | ||||
|                        AND <20><><EFBFBD>Ŵ<EFBFBD><C5B4><EFBFBD> = A_DEPARTMENT_CODE | ||||
|                      GROUP BY <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> | ||||
|                      ORDER BY <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8> DESC); | ||||
|             SELECT rownum, | ||||
|                    paihang.<EFBFBD><EFBFBD><EFBFBD><EFBFBD> AS caller_name, | ||||
|                    paihang.attaching_rate | ||||
|               FROM (SELECT DISTINCT * | ||||
|                       FROM (SELECT t.<EFBFBD><EFBFBD><EFBFBD><EFBFBD>, | ||||
|                                    round(t.<2E><><EFBFBD>±<EFBFBD><C2B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8>, | ||||
|                                          2) attaching_rate, | ||||
|                                    zuoxi.department_name | ||||
|                               FROM BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> 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.<2E><><EFBFBD><EFBFBD> = zuoxi.saler_name) st | ||||
|                      ORDER BY st.department_name, | ||||
|                               st.attaching_rate DESC) paihang; | ||||
|         -- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>а<EFBFBD> | ||||
|         OPEN A_RENEWAL_RANKING_LIST FOR | ||||
|             SELECT ROWNUM, | ||||
|                    <20><>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> AS CALLER_NAME, | ||||
|                    <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>   AS RENEWAL_RATE | ||||
|               FROM (SELECT <EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>, | ||||
|                            decode(nvl(SUM(xb.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>), | ||||
|                                       0), | ||||
|                                   0, | ||||
|                                   0, | ||||
|                                   round(SUM(xb.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۼ<EFBFBD>) / SUM(xb.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) * 100, | ||||
|                                         2)) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
|                       FROM <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3> XB | ||||
|                      WHERE XB.<2E><><EFBFBD><EFBFBD> = L_DEPARTMENT_NAME | ||||
|                      GROUP BY <20><>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD> | ||||
|                      ORDER BY <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DESC); | ||||
|             SELECT rownum, | ||||
|                    paihang.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> AS CALLER_NAME, | ||||
|                    paihang.xbl    AS RENEWAL_RATE | ||||
|               FROM (SELECT DISTINCT * | ||||
|                       FROM (SELECT t.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, | ||||
|                                    round(t."<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>ȫ<EFBFBD>£<EFBFBD>(%)", | ||||
|                                          2) xbl, | ||||
|                                    zuoxi.department_name | ||||
|                               FROM BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> 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.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = zuoxi.saler_name) xb | ||||
|                      ORDER BY xb.department_name, | ||||
|                               xb.xbl DESC) paihang; | ||||
|     END; | ||||
| BEGIN | ||||
|     NULL; | ||||
|   | ||||
							
								
								
									
										43
									
								
								code/db/pkg/telsale_bi_utils.pck
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								code/db/pkg/telsale_bi_utils.pck
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| CREATE OR REPLACE PACKAGE telsale_bi_utils IS | ||||
|  | ||||
|     -- Author  : WANGWEI-202 | ||||
|     -- Created : 2023/10/12 15:31:13 | ||||
|     -- Purpose : bi<62><69><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>صĹ<D8B5><C4B9><EFBFBD> | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>; | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>; | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>; | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>; | ||||
|  | ||||
| END telsale_bi_utils; | ||||
| / | ||||
| CREATE OR REPLACE PACKAGE BODY telsale_bi_utils IS | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD> IS | ||||
|     BEGIN | ||||
|         EXECUTE IMMEDIATE 'truncate table BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>'; | ||||
|     END; | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD> IS | ||||
|     BEGIN | ||||
|         EXECUTE IMMEDIATE 'truncate table BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><CFAF><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>'; | ||||
|     END; | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD> IS | ||||
|     BEGIN | ||||
|         EXECUTE IMMEDIATE 'truncate table BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>'; | ||||
|     END; | ||||
|  | ||||
|     PROCEDURE <20><><EFBFBD><EFBFBD>BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD> IS | ||||
|     BEGIN | ||||
|         EXECUTE IMMEDIATE 'truncate table BI<42><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD><C2B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>ٱ<EFBFBD>'; | ||||
|     END; | ||||
|  | ||||
| BEGIN | ||||
|     -- Initialization | ||||
|     NULL; | ||||
| END telsale_bi_utils; | ||||
| / | ||||
| @@ -52,7 +52,7 @@ SELECT  | ||||
|  GROUP BY <EFBFBD>·<EFBFBD>, | ||||
|           <EFBFBD><EFBFBD><EFBFBD>Ŵ<EFBFBD><EFBFBD><EFBFBD>, | ||||
|           <EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
| HAVING <EFBFBD>·<EFBFBD> = '06<EFBFBD><EFBFBD>' | ||||
| HAVING <EFBFBD>·<EFBFBD> = '10<EFBFBD><EFBFBD>' | ||||
|  ORDER BY <EFBFBD><EFBFBD><EFBFBD>Ŵ<EFBFBD><EFBFBD><EFBFBD>, | ||||
|           <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DESC; | ||||
|  | ||||
| @@ -61,7 +61,7 @@ SELECT  | ||||
|              2) <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
|   FROM <EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><EFBFBD><EFBFBD> | ||||
|  WHERE <EFBFBD><EFBFBD><EFBFBD>Ŵ<EFBFBD><EFBFBD><EFBFBD> = 'QDI' | ||||
|    AND <EFBFBD>·<EFBFBD> = '05' | ||||
|    AND <EFBFBD>·<EFBFBD> = '10' | ||||
|    AND <EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '2023' | ||||
|  GROUP BY <EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
|  ORDER BY <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DESC; | ||||
| @@ -75,3 +75,30 @@ SELECT  | ||||
|  WHERE xb.<EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' | ||||
|  GROUP BY <EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> | ||||
|  ORDER BY <EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> DESC; | ||||
| ------------------------------------- | ||||
| SELECT zx.saler_name, | ||||
|        bm.department_name | ||||
|   FROM tele_saler      zx, | ||||
|        tele_saler_team team, | ||||
|        idst0.bm_t      bm | ||||
|  WHERE zx.saler_name = '<EFBFBD>ų<EFBFBD><EFBFBD><EFBFBD>' | ||||
|    AND zx.team_code = team.team_code | ||||
|    AND team.department_code = bm.department_code; | ||||
| ---------------------------------------- | ||||
| /* | ||||
| truncate table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD>; | ||||
| */ | ||||
|  | ||||
| SELECT * | ||||
|   FROM BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> t | ||||
|  WHERE t.<EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<EFBFBD>ų<EFBFBD><EFBFBD><EFBFBD>'; | ||||
|  | ||||
| SELECT * | ||||
|   FROM BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> | ||||
|  WHERE <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<EFBFBD>ų<EFBFBD><EFBFBD><EFBFBD>'; | ||||
|  | ||||
| SELECT * | ||||
|   FROM BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD>; | ||||
|  | ||||
| SELECT * | ||||
|   FROM BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD>; | ||||
|   | ||||
							
								
								
									
										14
									
								
								code/db/建表/BI机构当月个车续保率跟踪表.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								code/db/建表/BI机构当月个车续保率跟踪表.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| drop table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD>; | ||||
| create table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> | ||||
| ( | ||||
| "<EFBFBD><EFBFBD><EFBFBD>β<EFBFBD><EFBFBD><EFBFBD>" varchar2(100), | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>ֵ1(%)" number, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-ȫ<><C8AB>" integer, | ||||
| "<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><EFBFBD>(%)" number, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>(%)" number, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>ȫ<EFBFBD>£<EFBFBD>(%)" number, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(%)" number, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(%)" number, | ||||
| "ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰǩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" integer, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number | ||||
| ); | ||||
							
								
								
									
										15
									
								
								code/db/建表/BI电销坐席续保率统计表.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								code/db/建表/BI电销坐席续保率统计表.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| drop table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD>; | ||||
| create table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> | ||||
| ( | ||||
| "<EFBFBD><EFBFBD><EFBFBD>β<EFBFBD><EFBFBD><EFBFBD>" varchar2(100), | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" varchar2(30), | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>ֵ1(%)" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-ȫ<><C8AB>" integer default 0, | ||||
| "<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><EFBFBD>(%)" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>(%)" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>ȫ<EFBFBD>£<EFBFBD>(%)" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(%)" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(%)" number default 0, | ||||
| "ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰǩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" integer default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number | ||||
| ) | ||||
							
								
								
									
										14
									
								
								code/db/建表/BI电销坐席续保率跟踪表.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								code/db/建表/BI电销坐席续保率跟踪表.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| --drop table BI<EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD>; | ||||
| create table BI<EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD> | ||||
| ( | ||||
|        summary_date date default sysdate not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> varchar2(20) not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>ֵ NUMBER default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD> NUMBER default 0 not null, | ||||
|        <EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><EFBFBD> NUMBER default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ NUMBER default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD> NUMBER default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> NUMBER default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> NUMBER default 0 not null | ||||
| ); | ||||
| comment on table BI<EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD> is '<EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD>BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>'; | ||||
							
								
								
									
										14
									
								
								code/db/建表/BI电销坐席车非渗透率跟踪表.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								code/db/建表/BI电销坐席车非渗透率跟踪表.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| create table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD>ٱ<EFBFBD> | ||||
| ( | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>" varchar2(100), | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>" varchar2(100) not null, | ||||
| "<EFBFBD><EFBFBD><EFBFBD>ձ<EFBFBD><EFBFBD><EFBFBD>(<28><>)" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD>ձ<EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><EFBFBD>" number default 0, | ||||
| "<EFBFBD>dz<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>)" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD>±<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD>¿ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number default 0, | ||||
| "<EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number default 0, | ||||
| "<EFBFBD><EFBFBD><EFBFBD>³<EFBFBD><EFBFBD>ǿ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number default 0, | ||||
| "<EFBFBD>;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number default 0 | ||||
| ); | ||||
							
								
								
									
										17
									
								
								code/db/建表/BI部门渗透率续保率统计表.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								code/db/建表/BI部门渗透率续保率统计表.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| drop table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD>; | ||||
| create table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD> | ||||
| ( | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD> varchar2(100)  not null, | ||||
|        "Ŀ<EFBFBD><EFBFBD>ֵ-<2D><><EFBFBD><EFBFBD>" number default 0 not null, | ||||
|        Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> number default 0 not null, | ||||
|        "<EFBFBD><EFBFBD><EFBFBD>ձ<EFBFBD><EFBFBD><EFBFBD>" number default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD>ձ<EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><EFBFBD> number default 0 not null, | ||||
|        "<EFBFBD>dz<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" number default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD>±<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> number default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> number default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD>¿ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> number default 0 not null, | ||||
|        <EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> number default 0 not null, | ||||
|        <EFBFBD><EFBFBD><EFBFBD>³<EFBFBD><EFBFBD>ǿ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> number default 0 not null, | ||||
|        <EFBFBD>;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> number default 0 not null | ||||
| ); | ||||
| comment on table BI<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>Ʊ<EFBFBD> is '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>BIϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'; | ||||
							
								
								
									
										458
									
								
								code/web/task_schedule/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										458
									
								
								code/web/task_schedule/package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -10,31 +10,31 @@ | ||||
|       "dependencies": { | ||||
|         "@element-plus/icons-vue": "^2.1.0", | ||||
|         "echarts": "^5.4.3", | ||||
|                 "element-plus": "^2.3.14", | ||||
|         "element-plus": "^2.4.1", | ||||
|         "mitt": "^3.0.1", | ||||
|         "moment": "^2.29.4", | ||||
|         "sass-loader": "^13.3.2", | ||||
|                 "vue": "^3.3.4", | ||||
|         "vue": "^3.3.6", | ||||
|         "vue-router": "^4.2.5", | ||||
|         "vuex": "^4.1.0" | ||||
|       }, | ||||
|       "devDependencies": { | ||||
|         "@babel/eslint-parser": "^7.22.15", | ||||
|                 "@rushstack/eslint-patch": "^1.4.0", | ||||
|                 "@typescript-eslint/eslint-plugin": "^6.7.2", | ||||
|                 "@vitejs/plugin-vue": "^4.3.4", | ||||
|         "@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.0", | ||||
|         "axios": "^1.5.1", | ||||
|         "babel": "^6.23.0", | ||||
|         "eslint-config-recommended": "^4.1.0", | ||||
|                 "eslint-config-standard-with-typescript": "^39.1.0", | ||||
|         "eslint-config-standard-with-typescript": "^39.1.1", | ||||
|         "eslint-plugin-vue": "^9.17.0", | ||||
|         "node-sass": "^9.0.0", | ||||
|                 "sass": "^1.68.0", | ||||
|         "sass": "^1.69.4", | ||||
|         "style-loader": "^3.3.3", | ||||
|         "ts-node": "^10.9.1", | ||||
|                 "vue-eslint-parser": "^9.3.1" | ||||
|         "vue-eslint-parser": "^9.3.2" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@aashutoshrathi/word-wrap": { | ||||
| @@ -325,9 +325,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@babel/parser": { | ||||
|             "version": "7.22.16", | ||||
|             "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.22.16.tgz", | ||||
|             "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", | ||||
|       "version": "7.23.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.23.0.tgz", | ||||
|       "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", | ||||
|       "bin": { | ||||
|         "parser": "bin/babel-parser.js" | ||||
|       }, | ||||
| @@ -1157,9 +1157,9 @@ | ||||
|       "integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==" | ||||
|     }, | ||||
|     "node_modules/@rushstack/eslint-patch": { | ||||
|             "version": "1.4.0", | ||||
|             "resolved": "https://registry.npmmirror.com/@rushstack/eslint-patch/-/eslint-patch-1.4.0.tgz", | ||||
|             "integrity": "sha512-cEjvTPU32OM9lUFegJagO0mRnIn+rbqrG89vV8/xLnLFX0DoR0r1oy5IlTga71Q7uT3Qus7qm7wgeiMT/+Irlg==", | ||||
|       "version": "1.5.1", | ||||
|       "resolved": "https://registry.npmmirror.com/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz", | ||||
|       "integrity": "sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "node_modules/@sideway/address": { | ||||
| @@ -1514,9 +1514,9 @@ | ||||
|       "peer": true | ||||
|     }, | ||||
|     "node_modules/@types/semver": { | ||||
|             "version": "7.5.2", | ||||
|             "resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.5.2.tgz", | ||||
|             "integrity": "sha512-7aqorHYgdNO4DM36stTiGO3DvKoex9TQRwsJU6vMaFGyqpBA1MNZkz+PG3gaNUPpTAOYhT1WR7M1JyA3fbS9Cw==", | ||||
|       "version": "7.5.3", | ||||
|       "resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.5.3.tgz", | ||||
|       "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "node_modules/@types/send": { | ||||
| @@ -1578,16 +1578,16 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/eslint-plugin": { | ||||
|             "version": "6.7.2", | ||||
|             "resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.2.tgz", | ||||
|             "integrity": "sha512-ooaHxlmSgZTM6CHYAFRlifqh1OAr3PAQEwi7lhYhaegbnXrnh7CDcHmc3+ihhbQC7H0i4JF0psI5ehzkF6Yl6Q==", | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.8.0.tgz", | ||||
|       "integrity": "sha512-GosF4238Tkes2SHPQ1i8f6rMtG6zlKwMEB0abqSJ3Npvos+doIlc/ATG+vX1G9coDF3Ex78zM3heXHLyWEwLUw==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@eslint-community/regexpp": "^4.5.1", | ||||
|                 "@typescript-eslint/scope-manager": "6.7.2", | ||||
|                 "@typescript-eslint/type-utils": "6.7.2", | ||||
|                 "@typescript-eslint/utils": "6.7.2", | ||||
|                 "@typescript-eslint/visitor-keys": "6.7.2", | ||||
|         "@typescript-eslint/scope-manager": "6.8.0", | ||||
|         "@typescript-eslint/type-utils": "6.8.0", | ||||
|         "@typescript-eslint/utils": "6.8.0", | ||||
|         "@typescript-eslint/visitor-keys": "6.8.0", | ||||
|         "debug": "^4.3.4", | ||||
|         "graphemer": "^1.4.0", | ||||
|         "ignore": "^5.2.4", | ||||
| @@ -1608,6 +1608,50 @@ | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz", | ||||
|       "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "@typescript-eslint/visitor-keys": "6.8.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-6.8.0.tgz", | ||||
|       "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", | ||||
|       "dev": true, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", | ||||
|       "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "eslint-visitor-keys": "^3.4.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-visitor-keys": { | ||||
|       "version": "3.4.3", | ||||
|       "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", | ||||
|       "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", | ||||
|       "dev": true, | ||||
|       "engines": { | ||||
|         "node": "^12.22.0 || ^14.17.0 || >=16.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { | ||||
|       "version": "6.0.0", | ||||
|       "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", | ||||
| @@ -1679,13 +1723,13 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils": { | ||||
|             "version": "6.7.2", | ||||
|             "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-6.7.2.tgz", | ||||
|             "integrity": "sha512-36F4fOYIROYRl0qj95dYKx6kybddLtsbmPIYNK0OBeXv2j9L5nZ17j9jmfy+bIDHKQgn2EZX+cofsqi8NPATBQ==", | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-6.8.0.tgz", | ||||
|       "integrity": "sha512-RYOJdlkTJIXW7GSldUIHqc/Hkto8E+fZN96dMIFhuTJcQwdRoGN2rEWA8U6oXbLo0qufH7NPElUb+MceHtz54g==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|                 "@typescript-eslint/typescript-estree": "6.7.2", | ||||
|                 "@typescript-eslint/utils": "6.7.2", | ||||
|         "@typescript-eslint/typescript-estree": "6.8.0", | ||||
|         "@typescript-eslint/utils": "6.8.0", | ||||
|         "debug": "^4.3.4", | ||||
|         "ts-api-utils": "^1.0.1" | ||||
|       }, | ||||
| @@ -1701,6 +1745,93 @@ | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-6.8.0.tgz", | ||||
|       "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", | ||||
|       "dev": true, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.8.0.tgz", | ||||
|       "integrity": "sha512-ISgV0lQ8XgW+mvv5My/+iTUdRmGspducmQcDw5JxznasXNnZn3SKNrTRuMsEXv+V/O+Lw9AGcQCfVaOPCAk/Zg==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "@typescript-eslint/visitor-keys": "6.8.0", | ||||
|         "debug": "^4.3.4", | ||||
|         "globby": "^11.1.0", | ||||
|         "is-glob": "^4.0.3", | ||||
|         "semver": "^7.5.4", | ||||
|         "ts-api-utils": "^1.0.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       }, | ||||
|       "peerDependenciesMeta": { | ||||
|         "typescript": { | ||||
|           "optional": true | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", | ||||
|       "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "eslint-visitor-keys": "^3.4.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils/node_modules/eslint-visitor-keys": { | ||||
|       "version": "3.4.3", | ||||
|       "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", | ||||
|       "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", | ||||
|       "dev": true, | ||||
|       "engines": { | ||||
|         "node": "^12.22.0 || ^14.17.0 || >=16.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils/node_modules/lru-cache": { | ||||
|       "version": "6.0.0", | ||||
|       "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", | ||||
|       "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "yallist": "^4.0.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=10" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils/node_modules/semver": { | ||||
|       "version": "7.5.4", | ||||
|       "resolved": "https://registry.npmmirror.com/semver/-/semver-7.5.4.tgz", | ||||
|       "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "lru-cache": "^6.0.0" | ||||
|       }, | ||||
|       "bin": { | ||||
|         "semver": "bin/semver.js" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=10" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/type-utils/node_modules/yallist": { | ||||
|       "version": "4.0.0", | ||||
|       "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", | ||||
|       "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/types": { | ||||
|       "version": "6.7.2", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-6.7.2.tgz", | ||||
| @@ -1767,17 +1898,17 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/utils": { | ||||
|             "version": "6.7.2", | ||||
|             "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-6.7.2.tgz", | ||||
|             "integrity": "sha512-ZCcBJug/TS6fXRTsoTkgnsvyWSiXwMNiPzBUani7hDidBdj1779qwM1FIAmpH4lvlOZNF3EScsxxuGifjpLSWQ==", | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-6.8.0.tgz", | ||||
|       "integrity": "sha512-dKs1itdE2qFG4jr0dlYLQVppqTE+Itt7GmIf/vX6CSvsW+3ov8PbWauVKyyfNngokhIO9sKZeRGCUo1+N7U98Q==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@eslint-community/eslint-utils": "^4.4.0", | ||||
|         "@types/json-schema": "^7.0.12", | ||||
|         "@types/semver": "^7.5.0", | ||||
|                 "@typescript-eslint/scope-manager": "6.7.2", | ||||
|                 "@typescript-eslint/types": "6.7.2", | ||||
|                 "@typescript-eslint/typescript-estree": "6.7.2", | ||||
|         "@typescript-eslint/scope-manager": "6.8.0", | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "@typescript-eslint/typescript-estree": "6.8.0", | ||||
|         "semver": "^7.5.4" | ||||
|       }, | ||||
|       "engines": { | ||||
| @@ -1787,6 +1918,73 @@ | ||||
|         "eslint": "^7.0.0 || ^8.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz", | ||||
|       "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "@typescript-eslint/visitor-keys": "6.8.0" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-6.8.0.tgz", | ||||
|       "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==", | ||||
|       "dev": true, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.8.0.tgz", | ||||
|       "integrity": "sha512-ISgV0lQ8XgW+mvv5My/+iTUdRmGspducmQcDw5JxznasXNnZn3SKNrTRuMsEXv+V/O+Lw9AGcQCfVaOPCAk/Zg==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "@typescript-eslint/visitor-keys": "6.8.0", | ||||
|         "debug": "^4.3.4", | ||||
|         "globby": "^11.1.0", | ||||
|         "is-glob": "^4.0.3", | ||||
|         "semver": "^7.5.4", | ||||
|         "ts-api-utils": "^1.0.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       }, | ||||
|       "peerDependenciesMeta": { | ||||
|         "typescript": { | ||||
|           "optional": true | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { | ||||
|       "version": "6.8.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz", | ||||
|       "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/types": "6.8.0", | ||||
|         "eslint-visitor-keys": "^3.4.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": "^16.0.0 || >=18.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/utils/node_modules/eslint-visitor-keys": { | ||||
|       "version": "3.4.3", | ||||
|       "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", | ||||
|       "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", | ||||
|       "dev": true, | ||||
|       "engines": { | ||||
|         "node": "^12.22.0 || ^14.17.0 || >=16.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { | ||||
|       "version": "6.0.0", | ||||
|       "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", | ||||
| @@ -1843,9 +2041,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vitejs/plugin-vue": { | ||||
|             "version": "4.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-4.3.4.tgz", | ||||
|             "integrity": "sha512-ciXNIHKPriERBisHFBvnTbfKa6r9SAesOYXeGDzgegcvy9Q4xdScSHAmKbNT0M3O0S9LKhIf5/G+UYG4NnnzYw==", | ||||
|       "version": "4.4.0", | ||||
|       "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-4.4.0.tgz", | ||||
|       "integrity": "sha512-xdguqb+VUwiRpSg+nsc2HtbAUSGak25DXYvpQQi4RVU1Xq1uworyoH/md9Rfd8zMmPR/pSghr309QNcftUVseg==", | ||||
|       "dev": true, | ||||
|       "engines": { | ||||
|         "node": "^14.18.0 || >=16.0.0" | ||||
| @@ -2120,49 +2318,49 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "node_modules/@vue/compiler-core": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.3.4.tgz", | ||||
|             "integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.3.6.tgz", | ||||
|       "integrity": "sha512-2JNjemwaNwf+MkkatATVZi7oAH1Hx0B04DdPH3ZoZ8vKC1xZVP7nl4HIsk8XYd3r+/52sqqoz9TWzYc3yE9dqA==", | ||||
|       "dependencies": { | ||||
|                 "@babel/parser": "^7.21.3", | ||||
|                 "@vue/shared": "3.3.4", | ||||
|         "@babel/parser": "^7.23.0", | ||||
|         "@vue/shared": "3.3.6", | ||||
|         "estree-walker": "^2.0.2", | ||||
|         "source-map-js": "^1.0.2" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/compiler-dom": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz", | ||||
|             "integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.3.6.tgz", | ||||
|       "integrity": "sha512-1MxXcJYMHiTPexjLAJUkNs/Tw2eDf2tY3a0rL+LfuWyiKN2s6jvSwywH3PWD8bKICjfebX3GWx2Os8jkRDq3Ng==", | ||||
|       "dependencies": { | ||||
|                 "@vue/compiler-core": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4" | ||||
|         "@vue/compiler-core": "3.3.6", | ||||
|         "@vue/shared": "3.3.6" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/compiler-sfc": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz", | ||||
|             "integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.3.6.tgz", | ||||
|       "integrity": "sha512-/Kms6du2h1VrXFreuZmlvQej8B1zenBqIohP0690IUBkJjsFvJxY0crcvVRJ0UhMgSR9dewB+khdR1DfbpArJA==", | ||||
|       "dependencies": { | ||||
|                 "@babel/parser": "^7.20.15", | ||||
|                 "@vue/compiler-core": "3.3.4", | ||||
|                 "@vue/compiler-dom": "3.3.4", | ||||
|                 "@vue/compiler-ssr": "3.3.4", | ||||
|                 "@vue/reactivity-transform": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4", | ||||
|         "@babel/parser": "^7.23.0", | ||||
|         "@vue/compiler-core": "3.3.6", | ||||
|         "@vue/compiler-dom": "3.3.6", | ||||
|         "@vue/compiler-ssr": "3.3.6", | ||||
|         "@vue/reactivity-transform": "3.3.6", | ||||
|         "@vue/shared": "3.3.6", | ||||
|         "estree-walker": "^2.0.2", | ||||
|                 "magic-string": "^0.30.0", | ||||
|                 "postcss": "^8.1.10", | ||||
|         "magic-string": "^0.30.5", | ||||
|         "postcss": "^8.4.31", | ||||
|         "source-map-js": "^1.0.2" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/compiler-ssr": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz", | ||||
|             "integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.3.6.tgz", | ||||
|       "integrity": "sha512-QTIHAfDCHhjXlYGkUg5KH7YwYtdUM1vcFl/FxFDlD6d0nXAmnjizka3HITp8DGudzHndv2PjKVS44vqqy0vP4w==", | ||||
|       "dependencies": { | ||||
|                 "@vue/compiler-dom": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4" | ||||
|         "@vue/compiler-dom": "3.3.6", | ||||
|         "@vue/shared": "3.3.6" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/component-compiler-utils": { | ||||
| @@ -2261,60 +2459,60 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/reactivity": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.3.4.tgz", | ||||
|             "integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.3.6.tgz", | ||||
|       "integrity": "sha512-gtChAumfQz5lSy5jZXfyXbKrIYPf9XEOrIr6rxwVyeWVjFhJwmwPLtV6Yis+M9onzX++I5AVE9j+iPH60U+B8Q==", | ||||
|       "dependencies": { | ||||
|                 "@vue/shared": "3.3.4" | ||||
|         "@vue/shared": "3.3.6" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/reactivity-transform": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz", | ||||
|             "integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/reactivity-transform/-/reactivity-transform-3.3.6.tgz", | ||||
|       "integrity": "sha512-RlJl4dHfeO7EuzU1iJOsrlqWyJfHTkJbvYz/IOJWqu8dlCNWtxWX377WI0VsbAgBizjwD+3ZjdnvSyyFW1YVng==", | ||||
|       "dependencies": { | ||||
|                 "@babel/parser": "^7.20.15", | ||||
|                 "@vue/compiler-core": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4", | ||||
|         "@babel/parser": "^7.23.0", | ||||
|         "@vue/compiler-core": "3.3.6", | ||||
|         "@vue/shared": "3.3.6", | ||||
|         "estree-walker": "^2.0.2", | ||||
|                 "magic-string": "^0.30.0" | ||||
|         "magic-string": "^0.30.5" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/runtime-core": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.3.4.tgz", | ||||
|             "integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.3.6.tgz", | ||||
|       "integrity": "sha512-qp7HTP1iw1UW2ZGJ8L3zpqlngrBKvLsDAcq5lA6JvEXHmpoEmjKju7ahM9W2p/h51h0OT5F2fGlP/gMhHOmbUA==", | ||||
|       "dependencies": { | ||||
|                 "@vue/reactivity": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4" | ||||
|         "@vue/reactivity": "3.3.6", | ||||
|         "@vue/shared": "3.3.6" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/runtime-dom": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz", | ||||
|             "integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.3.6.tgz", | ||||
|       "integrity": "sha512-AoX3Cp8NqMXjLbIG9YR6n/pPLWE9TiDdk6wTJHFnl2GpHzDFH1HLBC9wlqqQ7RlnvN3bVLpzPGAAH00SAtOxHg==", | ||||
|       "dependencies": { | ||||
|                 "@vue/runtime-core": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4", | ||||
|                 "csstype": "^3.1.1" | ||||
|         "@vue/runtime-core": "3.3.6", | ||||
|         "@vue/shared": "3.3.6", | ||||
|         "csstype": "^3.1.2" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/server-renderer": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.3.4.tgz", | ||||
|             "integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.3.6.tgz", | ||||
|       "integrity": "sha512-kgLoN43W4ERdZ6dpyy+gnk2ZHtcOaIr5Uc/WUP5DRwutgvluzu2pudsZGoD2b7AEJHByUVMa9k6Sho5lLRCykw==", | ||||
|       "dependencies": { | ||||
|                 "@vue/compiler-ssr": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4" | ||||
|         "@vue/compiler-ssr": "3.3.6", | ||||
|         "@vue/shared": "3.3.6" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|                 "vue": "3.3.4" | ||||
|         "vue": "3.3.6" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@vue/shared": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.4.tgz", | ||||
|             "integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==" | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.6.tgz", | ||||
|       "integrity": "sha512-Xno5pEqg8SVhomD0kTSmfh30ZEmV/+jZtyh39q6QflrjdJCXah5lrnOLi9KB6a5k5aAHXMXjoMnxlzUkCNfWLQ==" | ||||
|     }, | ||||
|     "node_modules/@vue/vue-loader-v15": { | ||||
|       "name": "vue-loader", | ||||
| @@ -3050,9 +3248,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/axios": { | ||||
|             "version": "1.5.0", | ||||
|             "resolved": "https://registry.npmmirror.com/axios/-/axios-1.5.0.tgz", | ||||
|             "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==", | ||||
|       "version": "1.5.1", | ||||
|       "resolved": "https://registry.npmmirror.com/axios/-/axios-1.5.1.tgz", | ||||
|       "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "follow-redirects": "^1.15.0", | ||||
| @@ -4764,9 +4962,9 @@ | ||||
|       "integrity": "sha512-UdREXMXzLkREF4jA8t89FQjA8WHI6ssP38PMY4/4KhXFQbtImnghh4GkCgrtiZwLKUKVD2iTVXvDVQjfomEQuA==" | ||||
|     }, | ||||
|     "node_modules/element-plus": { | ||||
|             "version": "2.3.14", | ||||
|             "resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.3.14.tgz", | ||||
|             "integrity": "sha512-9yvxUaU4jXf2ZNPdmIxoj/f8BG8CDcGM6oHa9JIqxLjQlfY4bpzR1E5CjNimnOX3rxO93w1TQ0jTVt0RSxh9kA==", | ||||
|       "version": "2.4.1", | ||||
|       "resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.4.1.tgz", | ||||
|       "integrity": "sha512-t7nl+vQlkBKVk1Ag6AufSDyFV8YIXxTFsaya4Nz/0tiRlcz65WPN4WMFeNURuFJleu1HLNtP4YyQKMuS7El8uA==", | ||||
|       "dependencies": { | ||||
|         "@ctrl/tinycolor": "^3.4.1", | ||||
|         "@element-plus/icons-vue": "^2.0.6", | ||||
| @@ -6579,9 +6777,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/eslint-config-standard-with-typescript": { | ||||
|             "version": "39.1.0", | ||||
|             "resolved": "https://registry.npmmirror.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-39.1.0.tgz", | ||||
|             "integrity": "sha512-5+SPKis3yr6T1X6wSA7HhDuumTRMrTDMcsTrIWhdZuI+sX3e8SPGZYzuJxVxdc239Yo718dEVEVyJhHI6jUjrQ==", | ||||
|       "version": "39.1.1", | ||||
|       "resolved": "https://registry.npmmirror.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-39.1.1.tgz", | ||||
|       "integrity": "sha512-t6B5Ep8E4I18uuoYeYxINyqcXb2UbC0SOOTxRtBSt2JUs+EzeXbfe2oaiPs71AIdnoWhXDO2fYOHz8df3kV84A==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "@typescript-eslint/parser": "^6.4.0", | ||||
| @@ -9766,9 +9964,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/magic-string": { | ||||
|             "version": "0.30.3", | ||||
|             "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.3.tgz", | ||||
|             "integrity": "sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==", | ||||
|       "version": "0.30.5", | ||||
|       "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.5.tgz", | ||||
|       "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", | ||||
|       "dependencies": { | ||||
|         "@jridgewell/sourcemap-codec": "^1.4.15" | ||||
|       }, | ||||
| @@ -11374,9 +11572,9 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/postcss": { | ||||
|             "version": "8.4.30", | ||||
|             "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.30.tgz", | ||||
|             "integrity": "sha512-7ZEao1g4kd68l97aWG/etQKPKq07us0ieSZ2TnFDk11i0ZfDW2AwKHYU8qv4MZKqN2fdBfg+7q0ES06UA73C1g==", | ||||
|       "version": "8.4.31", | ||||
|       "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.31.tgz", | ||||
|       "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", | ||||
|       "dependencies": { | ||||
|         "nanoid": "^3.3.6", | ||||
|         "picocolors": "^1.0.0", | ||||
| @@ -12615,9 +12813,9 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "node_modules/sass": { | ||||
|             "version": "1.68.0", | ||||
|             "resolved": "https://registry.npmmirror.com/sass/-/sass-1.68.0.tgz", | ||||
|             "integrity": "sha512-Lmj9lM/fef0nQswm1J2HJcEsBUba4wgNx2fea6yJHODREoMFnwRpZydBnX/RjyXw2REIwdkbqE4hrTo4qfDBUA==", | ||||
|       "version": "1.69.4", | ||||
|       "resolved": "https://registry.npmmirror.com/sass/-/sass-1.69.4.tgz", | ||||
|       "integrity": "sha512-+qEreVhqAy8o++aQfCJwp0sklr2xyEzkm9Pp/Igu9wNPoe7EZEQ8X/MBvvXggI2ql607cxKg/RKOwDj6pp2XDA==", | ||||
|       "devOptional": true, | ||||
|       "dependencies": { | ||||
|         "chokidar": ">=3.0.0 <4.0.0", | ||||
| @@ -14006,7 +14204,7 @@ | ||||
|       "version": "5.2.2", | ||||
|       "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.2.2.tgz", | ||||
|       "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", | ||||
|             "dev": true, | ||||
|       "devOptional": true, | ||||
|       "peer": true, | ||||
|       "bin": { | ||||
|         "tsc": "bin/tsc", | ||||
| @@ -14214,21 +14412,29 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/vue": { | ||||
|             "version": "3.3.4", | ||||
|             "resolved": "https://registry.npmmirror.com/vue/-/vue-3.3.4.tgz", | ||||
|             "integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==", | ||||
|       "version": "3.3.6", | ||||
|       "resolved": "https://registry.npmmirror.com/vue/-/vue-3.3.6.tgz", | ||||
|       "integrity": "sha512-jJIDETeWJnoY+gfn4ZtMPMS5KtbP4ax+CT4dcQFhTnWEk8xMupFyQ0JxL28nvT/M4+p4a0ptxaV2WY0LiIxvRg==", | ||||
|       "dependencies": { | ||||
|                 "@vue/compiler-dom": "3.3.4", | ||||
|                 "@vue/compiler-sfc": "3.3.4", | ||||
|                 "@vue/runtime-dom": "3.3.4", | ||||
|                 "@vue/server-renderer": "3.3.4", | ||||
|                 "@vue/shared": "3.3.4" | ||||
|         "@vue/compiler-dom": "3.3.6", | ||||
|         "@vue/compiler-sfc": "3.3.6", | ||||
|         "@vue/runtime-dom": "3.3.6", | ||||
|         "@vue/server-renderer": "3.3.6", | ||||
|         "@vue/shared": "3.3.6" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "typescript": "*" | ||||
|       }, | ||||
|       "peerDependenciesMeta": { | ||||
|         "typescript": { | ||||
|           "optional": true | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/vue-eslint-parser": { | ||||
|             "version": "9.3.1", | ||||
|             "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.3.1.tgz", | ||||
|             "integrity": "sha512-Clr85iD2XFZ3lJ52/ppmUDG/spxQu6+MAeHXjjyI4I1NUYZ9xmenQp4N0oaHJhrA8OOxltCVxMRfANGa70vU0g==", | ||||
|       "version": "9.3.2", | ||||
|       "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.3.2.tgz", | ||||
|       "integrity": "sha512-q7tWyCVaV9f8iQyIA5Mkj/S6AoJ9KBN8IeUSf3XEmBrOtxOZnfTg5s4KClbZBCK3GtnT/+RyCLZyDHuZwTuBjg==", | ||||
|       "dev": true, | ||||
|       "dependencies": { | ||||
|         "debug": "^4.3.4", | ||||
|   | ||||
| @@ -11,30 +11,30 @@ | ||||
|   "dependencies": { | ||||
|     "@element-plus/icons-vue": "^2.1.0", | ||||
|     "echarts": "^5.4.3", | ||||
|         "element-plus": "^2.3.14", | ||||
|     "element-plus": "^2.4.1", | ||||
|     "mitt": "^3.0.1", | ||||
|     "moment": "^2.29.4", | ||||
|     "sass-loader": "^13.3.2", | ||||
|         "vue": "^3.3.4", | ||||
|     "vue": "^3.3.6", | ||||
|     "vue-router": "^4.2.5", | ||||
|     "vuex": "^4.1.0" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@babel/eslint-parser": "^7.22.15", | ||||
|         "@rushstack/eslint-patch": "^1.4.0", | ||||
|         "@typescript-eslint/eslint-plugin": "^6.7.2", | ||||
|         "@vitejs/plugin-vue": "^4.3.4", | ||||
|     "@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.0", | ||||
|     "axios": "^1.5.1", | ||||
|     "babel": "^6.23.0", | ||||
|     "eslint-config-recommended": "^4.1.0", | ||||
|         "eslint-config-standard-with-typescript": "^39.1.0", | ||||
|     "eslint-config-standard-with-typescript": "^39.1.1", | ||||
|     "eslint-plugin-vue": "^9.17.0", | ||||
|     "node-sass": "^9.0.0", | ||||
|         "sass": "^1.68.0", | ||||
|     "sass": "^1.69.4", | ||||
|     "style-loader": "^3.3.3", | ||||
|     "ts-node": "^10.9.1", | ||||
|         "vue-eslint-parser": "^9.3.1" | ||||
|     "vue-eslint-parser": "^9.3.2" | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -2,18 +2,28 @@ | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-02-28 19:25:30 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/assets/css/public/global.scss | ||||
|  * @FilePath: /task_schedule/src/assets/css/public/variables.scss | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
|  | ||||
| // color | ||||
| /* | ||||
| $color-bg-01: #fecb96; | ||||
| $color-bg-02: #f7954e; | ||||
| $color-bg-03: #f27620; | ||||
| $color-bg-04: #da3703; | ||||
| $color-bg-05: #ba1800; | ||||
| */ | ||||
|  | ||||
| $color-bg-01: #00b2f8; | ||||
| $color-bg-02: #00b0fb; | ||||
| $color-bg-03: #0279ea; | ||||
| $color-bg-04: #046ed6; | ||||
| $color-bg-05: #033eb6; | ||||
|  | ||||
| $color-title-font: #046ed6; | ||||
|  | ||||
| $color-charts-bg: #ffffff9f; | ||||
| $color-honorlist-bg: rgba(255, 255, 255, 0.3); | ||||
|   | ||||
| @@ -12,6 +12,7 @@ | ||||
|         <el-progress | ||||
|             type="circle" | ||||
|             :percentage="ui.percentage" | ||||
|             status="success" | ||||
|         > | ||||
|             <template #default> | ||||
|                 <span class="percentage-label">{{ ui.indicator }}</span> | ||||
|   | ||||
| @@ -15,10 +15,13 @@ | ||||
|                 alt="" | ||||
|             > | ||||
|             <div class="title-wrapper"> | ||||
|                 <span>"消8灭70"突围战</span> | ||||
|                 <span>{{ props.month }}月入营坐席</span> | ||||
|                 <span>“消 8 灭 6 突围战”</span> | ||||
|                 <span>指标落后入营坐席</span> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div class="telsaler-list-wrapper"> | ||||
|             <span>开发中……</span> | ||||
|         </div> | ||||
|     </div> | ||||
| </template> | ||||
|  | ||||
| @@ -46,6 +49,8 @@ export default { | ||||
|  | ||||
| <style scoped lang="scss"> | ||||
| .dishonorlist-wrapper { | ||||
|     display: flex; | ||||
|     flex-direction: column; | ||||
|     height: 240px; | ||||
|     width: 360px; | ||||
|     border-radius: 5px; | ||||
| @@ -55,10 +60,16 @@ export default { | ||||
|  | ||||
|     padding: 10px; | ||||
|  | ||||
|     >*+* { | ||||
|         margin-top: 10px; | ||||
|     } | ||||
|  | ||||
|     .banner-wrapper { | ||||
|         display: flex; | ||||
|         justify-content: center; | ||||
|         align-items: stretch; | ||||
|         height: 65px; | ||||
|         flex-grow: 0; | ||||
|  | ||||
|         img { | ||||
|             // width: 70px; | ||||
| @@ -80,4 +91,24 @@ export default { | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| .telsaler-list-wrapper { | ||||
|     flex-grow: 1; | ||||
|     display: flex; | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
|  | ||||
|     span { | ||||
|         display: block; | ||||
|         text-align: center; | ||||
|         color: rgb(101, 140, 194); | ||||
|         margin-top: 0px; | ||||
|  | ||||
|         font: { | ||||
|             size: 2rem; | ||||
|             family: "FZ-ZHUOHEI"; | ||||
|             weight: 100; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -9,38 +9,17 @@ | ||||
| --> | ||||
| <template> | ||||
|     <div class="honorlist-wrapper"> | ||||
|         <span class="title">“90俱乐部”{{ $props.month }}月入围坐席</span> | ||||
|         <div class="reward-wrapper"> | ||||
|             <div class="leading-reward-wrapper"> | ||||
|         <div class="banner-wrapper"> | ||||
|             <img | ||||
|                 src="@/assets/img/ranking/medal.png" | ||||
|                         alt="领跑奖" | ||||
|                 alt="" | ||||
|             > | ||||
|                     <span>领跑奖</span> | ||||
|                 </div> | ||||
|                 <div class="gainer-wrapper"> | ||||
|                     <span | ||||
|                         v-for="gainer in ui.leadingReward" | ||||
|                         :key="gainer" | ||||
|                     >{{ gainer }}</span> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div class="advance-reward-wrapper"> | ||||
|                 <div class="banner-wrapper"> | ||||
|                     <img | ||||
|                         src="@/assets/img/ranking/copper_medal.png" | ||||
|                         alt="飞跃奖" | ||||
|                     > | ||||
|                     <span>飞跃奖</span> | ||||
|                 </div> | ||||
|                 <div class="gainer-wrapper"> | ||||
|                     <span | ||||
|                         v-for="gainer in ui.advanceReward" | ||||
|                         :key="gainer" | ||||
|                     >{{ gainer }}</span> | ||||
|             <div class="title-wrapper"> | ||||
|                 <span>“90俱乐部”标杆坐席</span> | ||||
|             </div> | ||||
|         </div> | ||||
|         <div class="telsaler-list-wrapper"> | ||||
|             <span>开发中……</span> | ||||
|         </div> | ||||
|     </div> | ||||
| </template> | ||||
| @@ -81,6 +60,8 @@ export default { | ||||
|  | ||||
| <style scoped lang="scss"> | ||||
| .honorlist-wrapper { | ||||
|     display: flex; | ||||
|     flex-direction: column; | ||||
|     height: 240px; | ||||
|     width: 360px; | ||||
|     border-radius: 5px; | ||||
| @@ -93,48 +74,48 @@ export default { | ||||
|     >*+* { | ||||
|         margin-top: 10px; | ||||
|     } | ||||
|  | ||||
|     .title { | ||||
|         display: block; | ||||
|         text-align: center; | ||||
|  | ||||
|         font: { | ||||
|             family: "FZ-ZHUOHEI"; | ||||
|             size: 1.4rem; | ||||
| } | ||||
|  | ||||
|         color: goldenrod; | ||||
|     } | ||||
|  | ||||
|     .reward-wrapper { | ||||
|         width: 100%; | ||||
|  | ||||
| .banner-wrapper { | ||||
|     display: flex; | ||||
|     justify-content: center; | ||||
|         align-items: stretch; | ||||
|     align-items: center; | ||||
|     height: 65px; | ||||
|     flex-grow: 0; | ||||
|  | ||||
|         >*+* { | ||||
|             margin-left: 10px; | ||||
|     img { | ||||
|         width: 65px; | ||||
|         height: 65px; | ||||
|     } | ||||
|  | ||||
|         .leading-reward-wrapper { | ||||
|             width: 165px; | ||||
|             height: 100%; | ||||
|  | ||||
|         } | ||||
|  | ||||
|         .advance-reward-wrapper { | ||||
|             width: 165px; | ||||
|             height: 100%; | ||||
|         } | ||||
|     .title-wrapper { | ||||
|  | ||||
|         span { | ||||
|             display: block; | ||||
|  | ||||
|             margin-top: 5px; | ||||
|  | ||||
|             text-align: center; | ||||
|                 color: #fff; | ||||
|             color: rgb(245, 178, 11); | ||||
|             margin-top: 0px; | ||||
|  | ||||
|             font: { | ||||
|                 size: 1.65rem; | ||||
|                 family: "FZ-ZHUOHEI"; | ||||
|                 weight: 100; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| .telsaler-list-wrapper { | ||||
|     flex-grow: 1; | ||||
|     display: flex; | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
|  | ||||
|     span { | ||||
|             display: block; | ||||
|             text-align: center; | ||||
|             color: rgb(101, 140, 194); | ||||
|             margin-top: 0px; | ||||
|  | ||||
|             font: { | ||||
|                 size: 2rem; | ||||
| @@ -142,29 +123,5 @@ export default { | ||||
|                 weight: 100; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         .banner-wrapper { | ||||
|             display: flex; | ||||
|             justify-content: center; | ||||
|             align-items: center; | ||||
|  | ||||
|             img { | ||||
|                 width: 30px; | ||||
|                 height: 30px; | ||||
|             } | ||||
|  | ||||
|             span { | ||||
|                 display: inline-block; | ||||
|                 text-align: center; | ||||
|                 color: #fff; | ||||
|  | ||||
|                 font: { | ||||
|                     size: 1.5rem; | ||||
|                     family: "FZ-ZHUOHEI"; | ||||
|                     weight: 100; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -9,6 +9,9 @@ | ||||
| --> | ||||
| <template> | ||||
|     <div class="rankinglist-wrapper"> | ||||
|         <div class="rankinglist-title"> | ||||
|             <span>{{ props.title }}</span> | ||||
|         </div> | ||||
|         <el-table | ||||
|             :data="topFive" | ||||
|             stripe | ||||
| @@ -25,7 +28,7 @@ | ||||
|                 </template> | ||||
|             </el-table-column> | ||||
|             <el-table-column | ||||
|                 label="名次" | ||||
|                 label="名称" | ||||
|                 width="160" | ||||
|                 align="center" | ||||
|             > | ||||
| @@ -39,7 +42,7 @@ | ||||
|                 align="center" | ||||
|             > | ||||
|                 <template #default="ranking"> | ||||
|                     <span class="rankinglist-index">{{ ranking.row.appraiseValue }}</span> | ||||
|                     <span class="rankinglist-index">{{ ranking.row.appraiseValue }}%</span> | ||||
|                 </template> | ||||
|             </el-table-column> | ||||
|         </el-table> | ||||
| @@ -103,7 +106,14 @@ export default { | ||||
|     // border: 1px solid red; | ||||
|     border-radius: 5px; | ||||
|     width: 300px; | ||||
|     height: 260px; | ||||
|     height: 270px; | ||||
|  | ||||
|     display: flex; | ||||
|     flex-direction: column; | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
|  | ||||
|     margin-bottom: 15px; | ||||
| } | ||||
|  | ||||
| .rankinglist-index { | ||||
| @@ -113,7 +123,7 @@ export default { | ||||
|  | ||||
| :deep(.el-table) | ||||
| { | ||||
|     border-radius: 5px; | ||||
|     border-radius: 0px 0px 5px 5px; | ||||
| } | ||||
|  | ||||
| :deep(.el-table__header-wrapper) { | ||||
| @@ -129,4 +139,28 @@ export default { | ||||
|   } | ||||
| } | ||||
|  | ||||
| .rankinglist-title { | ||||
|     color: #da3703; | ||||
|     background-color: #fecc96; | ||||
|  | ||||
|     width: 100%; | ||||
|     border-radius: 5px 5px 0px 0px; | ||||
|  | ||||
|     height: 1.5rem; | ||||
|  | ||||
|     display: flex; | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
|  | ||||
|     padding-top: 10px; | ||||
|     padding-bottom: 0px; | ||||
|  | ||||
|     span { | ||||
|         font: { | ||||
|             size: 1rem; | ||||
|             weight: 700; | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| </style> | ||||
|   | ||||
| @@ -92,7 +92,7 @@ export default { | ||||
|         align-items: start; | ||||
|  | ||||
|         font: { | ||||
|             size: 0.5rem; | ||||
|             size: 0.75rem; | ||||
|         } | ||||
|  | ||||
|         >*+* { | ||||
|   | ||||
| @@ -11,7 +11,7 @@ | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-01-04 11:40:03 | ||||
|  * @LastEditors: Kane | ||||
|  * @LastEditTime: 2023-03-27 18:19:35 | ||||
|  * @LastEditTime: 2023-09-27 11:19:05 | ||||
|  * @FilePath: /it-console/src/layout/components/Main.vue | ||||
|  * @Description: | ||||
|  * | ||||
| @@ -37,6 +37,6 @@ export default { | ||||
| .el-scrollbar { | ||||
|     height: 100%; | ||||
|     width: 100%; | ||||
|     background-color: #ecf2f9; | ||||
|     /* background-color: #ecf2f9; */ | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -62,13 +62,13 @@ const routes = [ | ||||
|         component: ()=> import( "../layout/Index.vue" ), | ||||
|         children:[ | ||||
|             { | ||||
|                 path:"/staff_data", | ||||
|                 name:"StaffDataManagement", | ||||
|                 path:"/telsaler_data", | ||||
|                 name:"TelsalerManagement", | ||||
|                 meta: { | ||||
|                     title:"坐席管理", | ||||
|                     icon: "user", | ||||
|                 }, | ||||
|                 component: ()=> import( "../views/StaffManagement.vue" ), | ||||
|                 component: ()=> import( "../views/telsaler/TelsalerManagementView.vue" ), | ||||
|             }, | ||||
|             { | ||||
|                 path: "/data_management", | ||||
| @@ -77,7 +77,7 @@ const routes = [ | ||||
|                     title: "数据管理", | ||||
|                     icon: "document", | ||||
|                 }, | ||||
|                 component: ()=> import( "../views/DataManagement.vue" ),  | ||||
|                 component: ()=> import( "../views/data/DataManagement.vue" ),  | ||||
|             }, | ||||
|             { | ||||
|                 path:"/reward_management", | ||||
|   | ||||
							
								
								
									
										79
									
								
								code/web/task_schedule/src/utils/BIReport.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								code/web/task_schedule/src/utils/BIReport.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,79 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-17 11:18:19 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/utils/BIReport.ts | ||||
|  * @Description: BI报表相关的代码 | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| import { service as instance } from "./api/request.js"; | ||||
| import { API_URL } from "./api/config.js"; | ||||
| import { type AxiosResponse } from "axios"; | ||||
| interface BIReportType | ||||
| { | ||||
|     reportTypeCode: number; | ||||
|     reportTypeName: string; | ||||
| } | ||||
|  | ||||
| interface ImportBIReportRequest | ||||
| { | ||||
|     filePath: string, | ||||
|     reportType: number, | ||||
|     firstRow: number, | ||||
|     sheetIndex: number, | ||||
| } | ||||
|  | ||||
| interface ImportBIReportResponse | ||||
| { | ||||
|     success: boolean, | ||||
|     message: string, | ||||
|     importedCount: number, | ||||
| } | ||||
|  | ||||
| type ImportBIReportResponseHandler = ( response: ImportBIReportResponse, error?: any ) => void; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * @param request 请求参数 | ||||
|  * @param handler 调用者提供的请求结果处理函数 | ||||
|  */ | ||||
| function importBIReport( request: ImportBIReportRequest, handler: any ): void | ||||
| { | ||||
|     const importResponse: ImportBIReportResponse = { | ||||
|         success: false, | ||||
|         message: "", | ||||
|         importedCount: 0, | ||||
|     }; | ||||
|  | ||||
|     instance.request({ | ||||
|         url: API_URL.URL_IMPORT_REPORT, | ||||
|         method: "post", | ||||
|         data: request, | ||||
|     }) | ||||
|         .then(( response: AxiosResponse<any, any> ): any => | ||||
|         { | ||||
|             const data: ImportBIReportResponse = response.data; | ||||
|  | ||||
|             importResponse.success = data.success ?? false; | ||||
|             importResponse.message = data.message ?? ""; | ||||
|             importResponse.importedCount = data.importedCount ?? 0; | ||||
|  | ||||
|             handler( importResponse, null ); | ||||
|         }) | ||||
|         .catch(( error: any ): any => | ||||
|         { | ||||
|             importResponse.message = "请求导入报表错误,请查看控制台!"; | ||||
|             console.log( error ); | ||||
|  | ||||
|             handler( importResponse, error ); | ||||
|         }); | ||||
| } | ||||
|  | ||||
| export { | ||||
|     type BIReportType, | ||||
|     type ImportBIReportRequest, | ||||
|     type ImportBIReportResponse, | ||||
|     type ImportBIReportResponseHandler, | ||||
|     importBIReport | ||||
| }; | ||||
| @@ -44,7 +44,12 @@ const API_URL = { | ||||
|     // 删除获奖人员 | ||||
|     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: "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: "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", | ||||
| }; | ||||
|  | ||||
| export { API_URL }; | ||||
|   | ||||
| @@ -31,6 +31,7 @@ interface CallerArchievement // 坐席业绩对象 | ||||
|     success: boolean; | ||||
|     message: string; | ||||
|     total_archievement: number; | ||||
|     moto_premium_present_month: number; | ||||
|     mensual_archievement_list: number[]; | ||||
|     insurance_renewal_rate: string; | ||||
|     attaching_rate: string; | ||||
| @@ -134,6 +135,7 @@ function queryCallerArchievement( callerInfo: TelSaler, render: any ): void | ||||
|         success: false, | ||||
|         message: "", | ||||
|         total_archievement: 0, | ||||
|         moto_premium_present_month: 0, | ||||
|         mensual_archievement_list: [], | ||||
|         insurance_renewal_rate: "0.0", | ||||
|         attaching_rate: "0.0", | ||||
| @@ -150,9 +152,12 @@ function queryCallerArchievement( callerInfo: TelSaler, render: any ): void | ||||
|         { | ||||
|             const data = response.data ?? {}; | ||||
|  | ||||
|             console.log( "个人业绩数据", data ); | ||||
|  | ||||
|             callArchievement.success = data.success ?? false; | ||||
|             callArchievement.message = data.message ?? "服务器没有返回调用结果消息,请检查日志!"; | ||||
|             callArchievement.total_archievement = data.total_archievement ?? 0; | ||||
|             callArchievement.moto_premium_present_month = data.motoPremiumPresentMonth ?? 0; | ||||
|             callArchievement.mensual_archievement_list = []; | ||||
|             callArchievement.insurance_renewal_rate = data.insurance_renewal_rate ?? "0.0"; | ||||
|             callArchievement.attaching_rate = data.attaching_rate ?? "0.0"; | ||||
|   | ||||
							
								
								
									
										20
									
								
								code/web/task_schedule/src/utils/fileUpload.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								code/web/task_schedule/src/utils/fileUpload.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-09-27 14:13:47 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/utils/fileUpload.ts | ||||
|  * @Description: 文件上传相关 | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
|  | ||||
| interface FileUploadResponse | ||||
| { | ||||
|     success: boolean; | ||||
|     message: string; | ||||
|     fileList: string[]; | ||||
| } | ||||
|  | ||||
| export { | ||||
|     type FileUploadResponse | ||||
| }; | ||||
| @@ -1,40 +0,0 @@ | ||||
| <!-- | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-09-25 09:48:25 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/views/DataManagement.vue | ||||
|  * @Description: 数据管理view | ||||
|  * | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved. | ||||
| --> | ||||
| <template> | ||||
|     <div class="data_management_wrapper"> | ||||
|         数据管理 | ||||
|     </div> | ||||
| </template> | ||||
| <script lang="ts"> | ||||
| import { ref, reactive } from "vue"; | ||||
|  | ||||
| export default { | ||||
|     name: "DataManagement", | ||||
|     setup() | ||||
|     { | ||||
|         const ui = reactive({ | ||||
|             showUI: false, | ||||
|         }); | ||||
|  | ||||
|         return { ui, }; | ||||
|     }, | ||||
| }; | ||||
| </script> | ||||
| <style lang="scss"> | ||||
| .data_management_wrapper { | ||||
|     margin: 10px; | ||||
|  | ||||
|     min-width: 800px; | ||||
|  | ||||
|     >*+* { | ||||
|         margin-top: 10px; | ||||
|     } | ||||
| } | ||||
| </style> | ||||
| @@ -54,34 +54,16 @@ | ||||
|                 :attaching-rate="ui.callerAttachingRate" | ||||
|                 :renewal-rate="ui.callerRenewalRate" | ||||
|             /> | ||||
|             <div class="carousel-item"> | ||||
|                 <el-carousel | ||||
|                     arrow="never" | ||||
|                     indicator-position="none" | ||||
|                     :interval="4000" | ||||
|                 > | ||||
|                     <el-carousel-item :key="1"> | ||||
|                         <RankingListComponent :ranking-list="ui.attachingRankingList" /> | ||||
|                     </el-carousel-item> | ||||
|                     <el-carousel-item :key="2"> | ||||
|                         <RankingListComponent :ranking-list="ui.renewalRankingList" /> | ||||
|                     </el-carousel-item> | ||||
|                 </el-carousel> | ||||
|             </div> | ||||
|             <div class="carousel-item"> | ||||
|                 <el-carousel | ||||
|                     arrow="never" | ||||
|                     indicator-position="none" | ||||
|                     :interval="4000" | ||||
|                 > | ||||
|                     <el-carousel-item :key="1"> | ||||
|                         <RankingListComponent :ranking-list="ui.attachingRankingList" /> | ||||
|                     </el-carousel-item> | ||||
|                     <el-carousel-item :key="2"> | ||||
|                         <RankingListComponent :ranking-list="ui.renewalRankingList" /> | ||||
|                     </el-carousel-item> | ||||
|                 </el-carousel> | ||||
|             </div> | ||||
|  | ||||
|             <RankingListComponent | ||||
|                 title="渗透率" | ||||
|                 :ranking-list="ui.attachingRankingList" | ||||
|             /> | ||||
|  | ||||
|             <RankingListComponent | ||||
|                 title="续保率" | ||||
|                 :ranking-list="ui.renewalRankingList" | ||||
|             /> | ||||
|         </div> | ||||
|     </div> | ||||
| </template> | ||||
| @@ -256,10 +238,10 @@ export default { | ||||
|             ui.totalArchievement = data.total_archievement; | ||||
|             ui.callerAttachingRate = data.attaching_rate; | ||||
|             ui.callerRenewalRate = data.insurance_renewal_rate; | ||||
|             ui.callerPersentMonthPremium = data.mensual_archievement_list[thisMonth]; | ||||
|             ui.callerPersentMonthPremium = data.moto_premium_present_month; | ||||
|             // ui.callerPersentMonthPremium = data.mensual_archievement_list[thisMonth]; | ||||
|  | ||||
|             // console.log( "业绩清单", ui.chartData ); | ||||
|             // console.log( "当月", data.mensual_archievement_list ); | ||||
|             console.log( "业绩清单", data ); | ||||
|  | ||||
|             ui.showUI = false; | ||||
|             setTimeout(() => | ||||
| @@ -402,7 +384,7 @@ export default { | ||||
|             size: 90px; | ||||
|         } | ||||
|  | ||||
|         color: $color-bg-04; | ||||
|         color: $color-title-font; | ||||
|         text-shadow: #feebb1 0px 0px, | ||||
|         #feebb1 5px 0px, | ||||
|         #feebb1 -5px -0px, | ||||
|   | ||||
| @@ -260,10 +260,12 @@ export default { | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 ElMessage({ | ||||
|                 ElMessageBox({ | ||||
|                     message: response.message, | ||||
|                     type: "error", | ||||
|                 }); | ||||
|                 }) | ||||
|                     .then(() => {}) | ||||
|                     .catch(() => {}); | ||||
|             } | ||||
|  | ||||
|             refresh(); | ||||
|   | ||||
							
								
								
									
										115
									
								
								code/web/task_schedule/src/views/data/DataManagement.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								code/web/task_schedule/src/views/data/DataManagement.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,115 @@ | ||||
| <!-- | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-09-25 09:48:25 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/views/data/DataManagement.vue | ||||
|  * @Description: 数据管理view | ||||
|  * | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved. | ||||
| --> | ||||
| <template> | ||||
|     <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-tab-pane label="坐席车非渗透率"> | ||||
|                 <TelsalerAttachingRateView /> | ||||
|             </el-tab-pane> | ||||
|             <el-tab-pane label="坐席续保率"> | ||||
|                 坐席车非渗透率 | ||||
|             </el-tab-pane> | ||||
|             <el-tab-pane label="机构"> | ||||
|                 坐席车非渗透率 | ||||
|             </el-tab-pane> | ||||
|         </el-tabs> | ||||
|     </div> | ||||
| </template> | ||||
| <script lang="ts"> | ||||
| import { ref, reactive } from "vue"; | ||||
| import { ElMessage, ElMessageBox, type UploadFile, type UploadFiles, type UploadProps, type UploadUserFile } from "element-plus"; | ||||
| import TelsalerAttachingRateView from "@/views/data/bi/TelsalerAttachingRateView.vue"; | ||||
| export default { | ||||
|     name: "DataManagement", | ||||
|     components: { TelsalerAttachingRateView, }, | ||||
|     setup() | ||||
|     { | ||||
|         const ui = reactive({ | ||||
|             showUI: false, | ||||
|             fileList: ref<UploadUserFile[]>([]), | ||||
|             uploadData: { | ||||
|                 "task-name": "1234", | ||||
|             }, | ||||
|         }); | ||||
|  | ||||
|         const handleRemove: UploadProps["onRemove"] = ( file, uploadFile ) => | ||||
|         { | ||||
|             console.log( file, uploadFile ); | ||||
|         }; | ||||
|  | ||||
|         const handlePreview: UploadProps["onPreview"] = ( uploadFile ) => | ||||
|         { | ||||
|             console.log( uploadFile ); | ||||
|         }; | ||||
|  | ||||
|         const handleExceed: UploadProps["onExceed"] = ( files, uploadFiles ) => | ||||
|         { | ||||
|             ElMessage.warning( "一次只能上传三个文件!" ); | ||||
|         }; | ||||
|  | ||||
|         const beforeRemove: UploadProps["beforeRemove"] = async ( uploadFile, uploadFiles ) => | ||||
|         { | ||||
|             return await ElMessageBox.confirm( | ||||
|                 `放弃上传${uploadFile.name}` | ||||
|             ) | ||||
|                 .then(() => true, () => false ); | ||||
|         }; | ||||
|  | ||||
|         const handleUploadSuccess = ( response: any, uploadFile: UploadFile, uploadFiles: UploadFiles ): void => | ||||
|         { | ||||
|             console.log( response ); | ||||
|         }; | ||||
|  | ||||
|         return { | ||||
|             ui, | ||||
|             handleRemove, | ||||
|             handlePreview, | ||||
|             handleExceed, | ||||
|             beforeRemove, | ||||
|             handleUploadSuccess, | ||||
|         }; | ||||
|     }, | ||||
| }; | ||||
| </script> | ||||
| <style lang="scss"> | ||||
| .data_management_wrapper { | ||||
|     margin: 10px; | ||||
|  | ||||
|     min-width: 800px; | ||||
|  | ||||
|     >*+* { | ||||
|         margin-top: 10px; | ||||
|     } | ||||
| } | ||||
| </style> | ||||
							
								
								
									
										238
									
								
								code/web/task_schedule/src/views/data/bi/BiDataUploadView.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										238
									
								
								code/web/task_schedule/src/views/data/bi/BiDataUploadView.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,238 @@ | ||||
| <!-- | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-17 10:56:43 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/views/data/bi/BiDataUploadView.vue | ||||
|  * @Description: | ||||
|  * | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved. | ||||
| --> | ||||
| <template> | ||||
|     <div class="bi-dataupload-wrapper"> | ||||
|         <div class="query-box-wrapper"> | ||||
|             <el-row :gutter="10"> | ||||
|                 <el-col :span="4"> | ||||
|                     <span>报表类型</span> | ||||
|                 </el-col> | ||||
|                 <el-col :span="9"> | ||||
|                     <el-select v-model="ui.selectedReportType"> | ||||
|                         <el-option | ||||
|                             v-for="item in ui.reportType" | ||||
|                             :key="item.reportTypeCode" | ||||
|                             :label="item.reportTypeName" | ||||
|                             :value="item.reportTypeCode" | ||||
|                             width="100%" | ||||
|                         /> | ||||
|                     </el-select> | ||||
|                 </el-col> | ||||
|                 <el-col :span="4"> | ||||
|                     <span>sheet编号</span> | ||||
|                 </el-col> | ||||
|                 <el-col :span="6"> | ||||
|                     <el-input v-model.lazy.number="ui.sheetIndex" /> | ||||
|                 </el-col> | ||||
|             </el-row> | ||||
|             <el-row :gutter="10"> | ||||
|                 <el-col :span="4"> | ||||
|                     <span>起始行</span> | ||||
|                 </el-col> | ||||
|                 <el-col :span="9"> | ||||
|                     <el-input v-model.lazy.number="ui.firstRow" /> | ||||
|                 </el-col> | ||||
|                 <el-col :span="11"> | ||||
|                     <span style="text-align:left;color:red;">*从0开始计数</span> | ||||
|                 </el-col> | ||||
|             </el-row> | ||||
|         </div> | ||||
|         <el-upload | ||||
|             drag | ||||
|             action="http://222.76.244.118:11101/desktop_archievement_backend/file/file-upload.do" | ||||
|             name="files" | ||||
|             :show-file-list="false" | ||||
|             :data="ui.uploadParameters" | ||||
|             :on-success="onUploadSuccess" | ||||
|         > | ||||
|             <el-icon class="el-icon--upload"> | ||||
|                 <upload-filled /> | ||||
|             </el-icon> | ||||
|             <div class="el-upload__text"> | ||||
|                 将文件拖到此处,或<em>点击上传</em> | ||||
|             </div> | ||||
|         </el-upload> | ||||
|     </div> | ||||
| </template> | ||||
| <script lang="ts"> | ||||
| import { reactive, ref } from "vue"; | ||||
| import { | ||||
|     type BIReportType, | ||||
|     type ImportBIReportRequest, | ||||
|     type ImportBIReportResponse, | ||||
|     type ImportBIReportResponseHandler, | ||||
|     importBIReport | ||||
| } from "@/utils/BIReport.js"; | ||||
| import { type FileUploadResponse } from "@/utils/fileUpload.js"; | ||||
| // import { UploadFilled } from "@element-plus/icons-vue"; | ||||
| import { type UploadProps, type UploadFile, type UploadFiles, ElMessage, ElMessageBox } from "element-plus"; | ||||
|  | ||||
| interface UI | ||||
| { | ||||
|     showUI: boolean, | ||||
|     selectedReportType: number, | ||||
|     reportType: BIReportType[], | ||||
|     sheetIndex: number, | ||||
|     firstRow: number, | ||||
|     hasCaption: boolean, | ||||
|     uploadParameters: any, | ||||
|     showFileList: boolean, | ||||
| } | ||||
|  | ||||
| export default { | ||||
|     name: "BiDataUploadView", | ||||
|     props: { | ||||
|         reportType: { | ||||
|             type: Number, | ||||
|             require: true, | ||||
|             default: (): number => -9999, | ||||
|         }, | ||||
|     }, | ||||
|     setup() | ||||
|     { | ||||
|         const ui: UI = reactive({ | ||||
|             showUI: false, | ||||
|             selectedReportType: 0, | ||||
|             reportType: [ | ||||
|                 { | ||||
|                     reportTypeCode: 0, | ||||
|                     reportTypeName: "坐席车非渗透率", | ||||
|                 }, | ||||
|                 { | ||||
|                     reportTypeCode: 1, | ||||
|                     reportTypeName: "坐席续保率", | ||||
|                 }, | ||||
|                 { | ||||
|                     reportTypeCode: 2, | ||||
|                     reportTypeName: "部门车非渗透率", | ||||
|                 }, | ||||
|                 { | ||||
|                     reportTypeCode: 3, | ||||
|                     reportTypeName: "当月个车续保率跟踪报表【机构】", | ||||
|                 },], | ||||
|             sheetIndex: 0, | ||||
|             firstRow: 2, | ||||
|             hasCaption: true, | ||||
|             uploadParameters: { | ||||
|                 "task-name": "1234", | ||||
|             }, | ||||
|             showFileList: false, | ||||
|         }); | ||||
|  | ||||
|         /** | ||||
|          * 文件上传成功响应函数 | ||||
|          * @param response 响应结果参数 | ||||
|          * @param uploadFile  | ||||
|          * @param uploadFiles  | ||||
|          */ | ||||
|         const onUploadSuccess: UploadProps["onSuccess"] = ( response: FileUploadResponse, uploadFile: UploadFile, uploadFiles: UploadFiles ): void => | ||||
|         { | ||||
|             //  先判断成功标志位 | ||||
|             if ( response.success ) | ||||
|             { | ||||
|                 // 成功,发出导入报表请求 | ||||
|                 if ( response.fileList.length === 0 ) | ||||
|                 { | ||||
|                     // 上传文件路径有问题,提示一下 | ||||
|                     ElMessageBox.confirm( | ||||
|                         "上传文件的保存路径有误,请联系开发人员。", | ||||
|                         "上传文件错误", | ||||
|                         { | ||||
|                             confirmButtonText: "确定", | ||||
|                             type: "warning", | ||||
|                             center: true, | ||||
|                         } | ||||
|                     ) | ||||
|                         .then((): void => {}) | ||||
|                         .catch((): void => {}); | ||||
|                 } | ||||
|  | ||||
|                 const request: ImportBIReportRequest = { | ||||
|                     filePath: response.fileList[0], | ||||
|                     reportType: ui.selectedReportType, | ||||
|                     firstRow: ui.firstRow, | ||||
|                     sheetIndex: ui.sheetIndex, | ||||
|                 }; | ||||
|  | ||||
|                 console.log( "请求参数", request ); | ||||
|  | ||||
|                 // 发出请求 | ||||
|                 importBIReport( request, importResponseHandler ); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 // 失败了,提示一下 | ||||
|                 ElMessageBox.confirm( | ||||
|                     response.message, | ||||
|                     "上传文件错误", | ||||
|                     { | ||||
|                         confirmButtonText: "确定", | ||||
|                         type: "warning", | ||||
|                         center: true, | ||||
|                     } | ||||
|                 ) | ||||
|                     .then((): void => {}) | ||||
|                     .catch((): void => {}); | ||||
|             } | ||||
|         }; | ||||
|  | ||||
|         /** | ||||
|          * handler函数 | ||||
|          * @param response  | ||||
|          * @param error  | ||||
|          */ | ||||
|         const importResponseHandler: ImportBIReportResponseHandler = ( response: ImportBIReportResponse, error?: any ): void => | ||||
|         { | ||||
|             if ( response.success ) | ||||
|             { | ||||
|                 ElMessage({ | ||||
|                     type: "success", | ||||
|                     message: response.message, | ||||
|                 }); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 ElMessageBox.confirm( | ||||
|                     response.message, | ||||
|                     "导入错误", | ||||
|                     { | ||||
|                         confirmButtonText: "确定", | ||||
|                         type: "warning", | ||||
|                         center: true, | ||||
|                     } | ||||
|                 ) | ||||
|                     .then((): void => {}) | ||||
|                     .catch((): void => {}); | ||||
|                 console.log( error ); | ||||
|             } | ||||
|         }; | ||||
|  | ||||
|         return { | ||||
|             ui, | ||||
|             onUploadSuccess, | ||||
|         }; | ||||
|     }, | ||||
| }; | ||||
| </script> | ||||
| <style lang="scss" scoped> | ||||
| @import "@/assets/css/public/_public.scss"; | ||||
|  | ||||
| .bi-dataupload-wrapper { | ||||
|     // max-width: 600px; | ||||
|     width: 100%; | ||||
|     >*+* { | ||||
|         margin-top: 10px; | ||||
|     } | ||||
| } | ||||
|  | ||||
| .query-box-wrapper { | ||||
|     @include query-box-wrap; | ||||
| } | ||||
| </style> | ||||
| @@ -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> | ||||
| @@ -0,0 +1,142 @@ | ||||
| <!-- | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-17 14:41:39 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/views/data/bi/TelsalerAttachingRateView.vue | ||||
|  * @Description: BI坐席车非渗透率数据管理界面 | ||||
|  * | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved. | ||||
| --> | ||||
| <template> | ||||
|     <div class="wrapper"> | ||||
|         <el-row :gutter="10"> | ||||
|             <el-col :span="8"> | ||||
|                 <el-button | ||||
|                     type="warning" | ||||
|                     icon="upload" | ||||
|                     @click="showUploadFileDialog" | ||||
|                 > | ||||
|                     上传 | ||||
|                 </el-button> | ||||
|             </el-col> | ||||
|         </el-row> | ||||
|         <el-table | ||||
|             border | ||||
|             stripe | ||||
|             style="width:100%;" | ||||
|         > | ||||
|             <el-table-column | ||||
|                 type="selection" | ||||
|                 align="center" | ||||
|             /> | ||||
|             <el-table-column | ||||
|                 label="部门" | ||||
|                 align="center" | ||||
|                 width="200" | ||||
|             /> | ||||
|             <el-table-column | ||||
|                 label="名称" | ||||
|                 align="center" | ||||
|                 width="200" | ||||
|             /> | ||||
|             <el-table-column | ||||
|                 label="车险保费(万)" | ||||
|                 align="center" | ||||
|             /> | ||||
|             <el-table-column | ||||
|                 label="非车险保费(万)" | ||||
|                 align="center" | ||||
|             /> | ||||
|             <el-table-column | ||||
|                 label="当月保费渗透率" | ||||
|                 align="center" | ||||
|             /> | ||||
|             <el-table-column | ||||
|                 label="渗透率环比上月" | ||||
|                 align="center" | ||||
|             /> | ||||
|         </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" | ||||
|             > | ||||
|                 <BiDataUploadView /> | ||||
|             </el-dialog> | ||||
|         </div> | ||||
|     </div> | ||||
| </template> | ||||
| <script lang="ts"> | ||||
| import { reactive } from "vue"; | ||||
| import BiDataUploadView from "@/views/data/bi/BiDataUploadView.vue"; | ||||
|  | ||||
| export default { | ||||
|     name: "TelsalerAttachingRateView", | ||||
|     components: { BiDataUploadView, }, | ||||
|     setup() | ||||
|     { | ||||
|         const ui = reactive({ | ||||
|             showUI: true, | ||||
|             showUploadDialog: false, | ||||
|             tableCurrentPageIndex: 1, | ||||
|             tablePageSize: 10, | ||||
|         }); | ||||
|  | ||||
|         const showUploadFileDialog = (): void => | ||||
|         { | ||||
|             ui.showUploadDialog = true; | ||||
|         }; | ||||
|  | ||||
|         const onCurrentPageIndexChange = ( index: number ): void => | ||||
|         { | ||||
|             ui.tableCurrentPageIndex = index; | ||||
|         }; | ||||
|  | ||||
|         const onTablePageSizeChange = ( pageSize: number ): void => | ||||
|         { | ||||
|             ui.tablePageSize = pageSize; | ||||
|         }; | ||||
|  | ||||
|         return { | ||||
|             ui, | ||||
|             showUploadFileDialog, | ||||
|             onCurrentPageIndexChange, | ||||
|             onTablePageSizeChange, | ||||
|         }; | ||||
|     }, | ||||
| }; | ||||
| </script> | ||||
| <style lang="scss" scoped> | ||||
| .wrapper { | ||||
|     margin: 10px; | ||||
|  | ||||
|     >*+* { | ||||
|         margin-top: 10px; | ||||
|     } | ||||
| } | ||||
|  | ||||
| .pagination_wrapper { | ||||
|     display: flex; | ||||
|     justify-content: flex-end; | ||||
| } | ||||
| </style> | ||||
| @@ -0,0 +1,30 @@ | ||||
| src/views/data/bi/TelsalerAttachingRateView.vue<!-- | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-17 14:41:39 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/views/data/TelsalerAttachingRateView.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: "TelsalerAttachingRateView", | ||||
|     setup() | ||||
|     { | ||||
|         const ui = reactive({ | ||||
|             showUI: true, | ||||
|         }); | ||||
|     }, | ||||
| }; | ||||
| </script> | ||||
| <style lang="scss" scoped> | ||||
| .wrapper { | ||||
|     margin: 10px; | ||||
| } | ||||
| </style> | ||||
| @@ -61,17 +61,13 @@ import { ElMessage, ElMessageBox } from "element-plus"; | ||||
| import { | ||||
|     type RewardProject, | ||||
|     type RewardProjectResponse, | ||||
|     type RewardGainerResponse, | ||||
|     type DeleteRewardTelsalerRequest, | ||||
|     type DeleteRewardTelsalerResponse, | ||||
|     type AddRewardTelsalerRequest, | ||||
|     type AddRewardTelsalerResponse, | ||||
|     type UpdateRewardTelsalerRequest, | ||||
|     type UpdateRewardTelsalerResponse, | ||||
|     requestRewardPorjectsList, | ||||
|     addRewardTelsaler, | ||||
|     updateTelsalerReward, | ||||
|     deleteRewardTelsaler | ||||
|     updateTelsalerReward | ||||
| } from "@/utils/reward.js"; | ||||
| import eventBus from "@/utils/api/EventBus.js"; | ||||
|  | ||||
| @@ -131,13 +127,9 @@ export default { | ||||
|                     .then((): void => {}) | ||||
|                     .catch((): void => {}); | ||||
|  | ||||
|                 console.log( "请求奖励项目失败:", error ); | ||||
|  | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             console.log( "请求奖励项目结果", response.rewardList ); | ||||
|  | ||||
|             ui.rewardProjectList = response.rewardList; | ||||
|         }; | ||||
|  | ||||
| @@ -153,8 +145,6 @@ export default { | ||||
|             ui.selectedRecID = props.selectedRecId; | ||||
|  | ||||
|             refresh(); | ||||
|  | ||||
|             console.log( props.selectedRewardProjectCode ); | ||||
|         }); | ||||
|  | ||||
|         const onSaveRewardTelsaler = (): void => | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-03-23 16:05:08 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/views/StaffManagement.vue | ||||
|  * @FilePath: /task_schedule/src/views/telsaler/TelsalerManagement.vue | ||||
|  * @Description: | ||||
|  * | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved. | ||||
| @@ -107,7 +107,7 @@ | ||||
| <script lang="ts"> | ||||
| import { reactive, computed } from "vue"; | ||||
| export default { | ||||
|     name: "StaffManagement", | ||||
|     name: "TelsalerManagement", | ||||
|     setup() | ||||
|     { | ||||
|         const ui = reactive({ | ||||
| @@ -150,16 +150,9 @@ export default { | ||||
| @import "@/assets/css/public/_public.scss"; | ||||
| 
 | ||||
| .wrapper { | ||||
|     margin: 10px; | ||||
|     padding: 10px; | ||||
| 
 | ||||
|     background-color: #fff; | ||||
|     border-radius: 5px; | ||||
|     box-shadow: $box-shadow; | ||||
| 
 | ||||
|     &:hover { | ||||
|         box-shadow: $box-shadow-hover; | ||||
|     } | ||||
| 
 | ||||
|     min-width: 800px; | ||||
| 
 | ||||
| @@ -0,0 +1,69 @@ | ||||
| <!-- | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-09-27 10:13:31 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /task_schedule/src/views/telsaler/TelsalerManagementView.vue | ||||
|  * @Description: | ||||
|  * | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved. | ||||
| --> | ||||
| <template> | ||||
|     <div | ||||
|         v-if="ui.showUI" | ||||
|         class="telsaler-management-view-wrapper" | ||||
|     > | ||||
|         <el-tabs type="border-card"> | ||||
|             <el-tab-pane> | ||||
|                 <template #label> | ||||
|                     <el-icon><User /></el-icon> | ||||
|                     <span>坐席管理</span> | ||||
|                 </template> | ||||
|                 <TelsalerManagement /> | ||||
|             </el-tab-pane> | ||||
|             <el-tab-pane> | ||||
|                 <template #label> | ||||
|                     <el-icon><Document /></el-icon> | ||||
|                     <span>导入导出</span> | ||||
|                 </template> | ||||
|                 导入导出 | ||||
|             </el-tab-pane> | ||||
|         </el-tabs> | ||||
|     </div> | ||||
| </template> | ||||
| <script lang="ts"> | ||||
| import { ref, reactive } from "vue"; | ||||
| // import { User } from "@element-plus/icons-vue"; | ||||
|  | ||||
| import TelsalerManagement from "@/views/telsaler/TelsalerManagement.vue"; | ||||
|  | ||||
| export default { | ||||
|     name: "TelsalerManagementView", | ||||
|     components: { TelsalerManagement, }, | ||||
|     setup() | ||||
|     { | ||||
|         const ui = reactive({ | ||||
|             showUI: true, | ||||
|         }); | ||||
|  | ||||
|         return { | ||||
|             ui, | ||||
|         }; | ||||
|     }, | ||||
| }; | ||||
| </script> | ||||
| <style scoped lang="scss"> | ||||
| .telsaler-management-view-wrapper { | ||||
|     margin: 10px 10px; | ||||
|  | ||||
|     min-width: 800px; | ||||
|  | ||||
|     >*+* { | ||||
|         margin-top: 10px; | ||||
|     } | ||||
|  | ||||
|     span { | ||||
|         margin-left: 4px; | ||||
|         vertical-align: middle; | ||||
|     } | ||||
| } | ||||
| </style> | ||||
| @@ -2,5 +2,7 @@ | ||||
|     "java.configuration.updateBuildConfiguration": "automatic", | ||||
|     "java.compile.nullAnalysis.mode": "automatic", | ||||
|     "vue.codeActions.enabled": false, | ||||
|     "java.debug.settings.onBuildFailureProceed": true | ||||
|     "java.debug.settings.onBuildFailureProceed": true, | ||||
|     "java.checkstyle.version": "10.12.4", | ||||
|     "java.checkstyle.configuration": "/D:/DevTools/vscode/代码格式化/eclipse-java-google-style.xml" | ||||
| } | ||||
| @@ -14,6 +14,7 @@ | ||||
|     <maven.compiler.source>17</maven.compiler.source> | ||||
|     <maven.compiler.target>17</maven.compiler.target> | ||||
|     <spring.version>5.3.24</spring.version> | ||||
|     <log4j2.version>2.20.0</log4j2.version> | ||||
|     <!-- <spring.version>6.0.11</spring.version> --> | ||||
|   </properties> | ||||
|  | ||||
| @@ -116,6 +117,27 @@ | ||||
|       <artifactId>log4j-slf4j2-impl</artifactId> | ||||
|       <version>2.20.0</version> | ||||
|     </dependency> | ||||
|     <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api --> | ||||
|     <dependency> | ||||
|       <groupId>org.apache.logging.log4j</groupId> | ||||
|       <artifactId>log4j-api</artifactId> | ||||
|       <version>2.20.0</version> | ||||
|     </dependency> | ||||
|  | ||||
|  | ||||
|     <!-- POI --> | ||||
|     <!-- https://mvnrepository.com/artifact/org.apache.poi/poi --> | ||||
|     <dependency> | ||||
|       <groupId>org.apache.poi</groupId> | ||||
|       <artifactId>poi</artifactId> | ||||
|       <version>5.2.3</version> | ||||
|     </dependency> | ||||
|     <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> | ||||
|     <dependency> | ||||
|       <groupId>org.apache.poi</groupId> | ||||
|       <artifactId>poi-ooxml</artifactId> | ||||
|       <version>5.2.3</version> | ||||
|     </dependency> | ||||
|  | ||||
|     <dependency> | ||||
|       <groupId>org.mybatis</groupId> | ||||
|   | ||||
| @@ -0,0 +1,34 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-11 16:47:59 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/mapper/ImportBIArchievementDataMapper.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.mybatis.mapper; | ||||
|  | ||||
| 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 ImportBIArchievementDataMapper | ||||
| { | ||||
|     public void insertTelsalerAttachingRateDataToDB( BITelsalerAttachingRateRecord record); | ||||
|  | ||||
|     public void insertTelsalerRenewalRateDataToDB( BITelsalerRenewalRateRecord record ); | ||||
|  | ||||
|     public void insertDepartmentAttachingRateDataToDB(BIDepartmentAttachingRateRecord record); | ||||
|  | ||||
|     public void insertDepartmentRenewalRateDataToDB(BIDepartmentRenewalRateRecord record); | ||||
|     | ||||
|     public void cleanTelsalerAttachingRateData(); | ||||
|  | ||||
|     public void cleanTelsalerRenewalRateData(); | ||||
|  | ||||
|     public void cleanDepartmentAttachingRateData(); | ||||
|  | ||||
|     public void cleanDepartmentRenewalRateData(); | ||||
| } | ||||
| @@ -0,0 +1,296 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-10 14:50:55 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/BIDepartmentAttachingRateRecord.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.mybatis.pojo; | ||||
|  | ||||
| public class BIDepartmentAttachingRateRecord | ||||
| { | ||||
|     // 部门 | ||||
|     private String departmentName; | ||||
|     // 目标值-机构 | ||||
|     private double departmentObject; | ||||
|     // 目标差距 | ||||
|     private double objectGap; | ||||
|     // 车险保费(万) | ||||
|     private double motoPremium; | ||||
|     // 车险保费占比 | ||||
|     private double motoPremiumProPortion; | ||||
|     // 非车保费(万) | ||||
|     private double nomotoPremium; | ||||
|     // 当月保费渗透率 | ||||
|     private double attachingRate; | ||||
|     // 保费渗透率环比上月 | ||||
|     private double attachingRateChange; | ||||
|     // 车险客户数 | ||||
|     private int motoInsuranceCustomerCount; | ||||
|     // 当月客户渗透率 | ||||
|     private double customerHandleRate; | ||||
|  | ||||
|     // 客户渗透率环比上月 | ||||
|     private double customerHandleRateChange; | ||||
|  | ||||
|     // 当月车非客均保费 | ||||
|     private double premiumPerCustomer; | ||||
|  | ||||
|     // 客均保费环比上月 | ||||
|     private double premiumPerCustomerChange; | ||||
|  | ||||
|     public BIDepartmentAttachingRateRecord( String departmentName, double departmentObject, | ||||
|             double objectGap, double motoPremium, double motoPremiumProPortion, | ||||
|             double nomotoPremium, double attachingRate, double attachingRateChange, | ||||
|             int motoInsuranceCustomerCount, double customerHandleRate, | ||||
|             double customerHandleRateChange, double premiumPerCustomer, | ||||
|             double premiumPerCustomerChange ) | ||||
|     { | ||||
|         this.departmentName = departmentName; | ||||
|         this.departmentObject = departmentObject; | ||||
|         this.objectGap = objectGap; | ||||
|         this.motoPremium = motoPremium; | ||||
|         this.motoPremiumProPortion = motoPremiumProPortion; | ||||
|         this.nomotoPremium = nomotoPremium; | ||||
|         this.attachingRate = attachingRate; | ||||
|         this.attachingRateChange = attachingRateChange; | ||||
|         this.motoInsuranceCustomerCount = motoInsuranceCustomerCount; | ||||
|         this.customerHandleRate = customerHandleRate; | ||||
|         this.customerHandleRateChange = customerHandleRateChange; | ||||
|         this.premiumPerCustomer = premiumPerCustomer; | ||||
|         this.premiumPerCustomerChange = premiumPerCustomerChange; | ||||
|     } | ||||
|  | ||||
|     public int getMotoInsuranceCustomerCount() | ||||
|     { | ||||
|         return motoInsuranceCustomerCount; | ||||
|     } | ||||
|  | ||||
|     public void setMotoInsuranceCustomerCount( int motoInsuranceCustomerCount ) | ||||
|     { | ||||
|         this.motoInsuranceCustomerCount = motoInsuranceCustomerCount; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "BIDepartmentAttachingRateRecord [departmentName=" + departmentName | ||||
|                 + ", departmentObject=" + departmentObject + ", objectGap=" + objectGap | ||||
|                 + ", motoPremium=" + motoPremium + ", motoPremiumProPortion=" | ||||
|                 + motoPremiumProPortion + ", nomotoPremium=" + nomotoPremium + ", attachingRate=" | ||||
|                 + attachingRate + ", attachingRateChange=" + attachingRateChange | ||||
|                 + ", motoInsuranceCustomerCount=" + motoInsuranceCustomerCount | ||||
|                 + ", customerHandleRate=" + customerHandleRate + ", customerHandleRateChange=" | ||||
|                 + customerHandleRateChange + ", premiumPerCustomer=" + premiumPerCustomer | ||||
|                 + ", premiumPerCustomerChange=" + premiumPerCustomerChange + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode()); | ||||
|         long temp; | ||||
|         temp = Double.doubleToLongBits( departmentObject ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( objectGap ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( motoPremium ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( motoPremiumProPortion ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( nomotoPremium ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( attachingRate ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( attachingRateChange ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         result = prime * result + motoInsuranceCustomerCount; | ||||
|         temp = Double.doubleToLongBits( customerHandleRate ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( customerHandleRateChange ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( premiumPerCustomer ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( premiumPerCustomerChange ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         return result; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean equals( Object obj ) | ||||
|     { | ||||
|         if ( this == obj ) | ||||
|             return true; | ||||
|         if ( obj == null ) | ||||
|             return false; | ||||
|         if ( getClass() != obj.getClass() ) | ||||
|             return false; | ||||
|         BIDepartmentAttachingRateRecord other = (BIDepartmentAttachingRateRecord) obj; | ||||
|         if ( departmentName == null ) | ||||
|         { | ||||
|             if ( other.departmentName != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !departmentName.equals( other.departmentName ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( departmentObject ) != Double | ||||
|                 .doubleToLongBits( other.departmentObject ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( objectGap ) != Double.doubleToLongBits( other.objectGap ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( motoPremium ) != Double | ||||
|                 .doubleToLongBits( other.motoPremium ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( motoPremiumProPortion ) != Double | ||||
|                 .doubleToLongBits( other.motoPremiumProPortion ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( nomotoPremium ) != Double | ||||
|                 .doubleToLongBits( other.nomotoPremium ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( attachingRate ) != Double | ||||
|                 .doubleToLongBits( other.attachingRate ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( attachingRateChange ) != Double | ||||
|                 .doubleToLongBits( other.attachingRateChange ) ) | ||||
|             return false; | ||||
|         if ( motoInsuranceCustomerCount != other.motoInsuranceCustomerCount ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( customerHandleRate ) != Double | ||||
|                 .doubleToLongBits( other.customerHandleRate ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( customerHandleRateChange ) != Double | ||||
|                 .doubleToLongBits( other.customerHandleRateChange ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( premiumPerCustomer ) != Double | ||||
|                 .doubleToLongBits( other.premiumPerCustomer ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( premiumPerCustomerChange ) != Double | ||||
|                 .doubleToLongBits( other.premiumPerCustomerChange ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public String getDepartmentName() | ||||
|     { | ||||
|         return departmentName; | ||||
|     } | ||||
|  | ||||
|     public void setDepartmentName( String departmentName ) | ||||
|     { | ||||
|         this.departmentName = departmentName; | ||||
|     } | ||||
|  | ||||
|     public double getDepartmentObject() | ||||
|     { | ||||
|         return departmentObject; | ||||
|     } | ||||
|  | ||||
|     public void setDepartmentObject( double departmentObject ) | ||||
|     { | ||||
|         this.departmentObject = departmentObject; | ||||
|     } | ||||
|  | ||||
|     public double getObjectGap() | ||||
|     { | ||||
|         return objectGap; | ||||
|     } | ||||
|  | ||||
|     public void setObjectGap( double objectGap ) | ||||
|     { | ||||
|         this.objectGap = objectGap; | ||||
|     } | ||||
|  | ||||
|     public double getMotoPremium() | ||||
|     { | ||||
|         return motoPremium; | ||||
|     } | ||||
|  | ||||
|     public void setMotoPremium( double motoPremium ) | ||||
|     { | ||||
|         this.motoPremium = motoPremium; | ||||
|     } | ||||
|  | ||||
|     public double getMotoPremiumProPortion() | ||||
|     { | ||||
|         return motoPremiumProPortion; | ||||
|     } | ||||
|  | ||||
|     public void setMotoPremiumProPortion( double motoPremiumProPortion ) | ||||
|     { | ||||
|         this.motoPremiumProPortion = motoPremiumProPortion; | ||||
|     } | ||||
|  | ||||
|     public double getNomotoPremium() | ||||
|     { | ||||
|         return nomotoPremium; | ||||
|     } | ||||
|  | ||||
|     public void setNomotoPremium( double nomotoPremium ) | ||||
|     { | ||||
|         this.nomotoPremium = nomotoPremium; | ||||
|     } | ||||
|  | ||||
|     public double getAttachingRate() | ||||
|     { | ||||
|         return attachingRate; | ||||
|     } | ||||
|  | ||||
|     public void setAttachingRate( double attachingRate ) | ||||
|     { | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     public double getAttachingRateChange() | ||||
|     { | ||||
|         return attachingRateChange; | ||||
|     } | ||||
|  | ||||
|     public void setAttachingRateChange( double attachingRateChange ) | ||||
|     { | ||||
|         this.attachingRateChange = attachingRateChange; | ||||
|     } | ||||
|  | ||||
|     public double getCustomerHandleRate() | ||||
|     { | ||||
|         return customerHandleRate; | ||||
|     } | ||||
|  | ||||
|     public void setCustomerHandleRate( double customerHandleRate ) | ||||
|     { | ||||
|         this.customerHandleRate = customerHandleRate; | ||||
|     } | ||||
|  | ||||
|     public double getCustomerHandleRateChange() | ||||
|     { | ||||
|         return customerHandleRateChange; | ||||
|     } | ||||
|  | ||||
|     public void setCustomerHandleRateChange( double customerHandleRateChange ) | ||||
|     { | ||||
|         this.customerHandleRateChange = customerHandleRateChange; | ||||
|     } | ||||
|  | ||||
|     public double getPremiumPerCustomer() | ||||
|     { | ||||
|         return premiumPerCustomer; | ||||
|     } | ||||
|  | ||||
|     public void setPremiumPerCustomer( double premiumPerCustomer ) | ||||
|     { | ||||
|         this.premiumPerCustomer = premiumPerCustomer; | ||||
|     } | ||||
|  | ||||
|     public double getPremiumPerCustomerChange() | ||||
|     { | ||||
|         return premiumPerCustomerChange; | ||||
|     } | ||||
|  | ||||
|     public void setPremiumPerCustomerChange( double premiumPerCustomerChange ) | ||||
|     { | ||||
|         this.premiumPerCustomerChange = premiumPerCustomerChange; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,214 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-24 11:06:29 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/BIDepartmentRenewalRateRecord.java | ||||
|  * @Description: BI机构当月个车续保率跟踪表记录对象 | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.mybatis.pojo; | ||||
|  | ||||
| public class BIDepartmentRenewalRateRecord | ||||
| { | ||||
|     private String 责任部门; | ||||
|     private double 机构目标值; | ||||
|     private int 到期数全月; | ||||
|     private double 序时到期数占比; | ||||
|     private double 个车续保率序时; | ||||
|     private double 个车续保率全月; | ||||
|     private double 环比昨日; | ||||
|     private double 环比上月; | ||||
|     private int 平均提前签单天数; | ||||
|     private double 环比; | ||||
|  | ||||
|     public BIDepartmentRenewalRateRecord() {} | ||||
|  | ||||
|     public BIDepartmentRenewalRateRecord( String 责任部门, double 机构目标值, int 到期数全月, double 序时到期数占比, | ||||
|             double 个车续保率序时, double 个车续保率全月, double 环比昨日, double 环比上月, int 平均提前签单天数, double 环比 ) | ||||
|     { | ||||
|         this.责任部门 = 责任部门; | ||||
|         this.机构目标值 = 机构目标值; | ||||
|         this.到期数全月 = 到期数全月; | ||||
|         this.序时到期数占比 = 序时到期数占比; | ||||
|         this.个车续保率序时 = 个车续保率序时; | ||||
|         this.个车续保率全月 = 个车续保率全月; | ||||
|         this.环比昨日 = 环比昨日; | ||||
|         this.环比上月 = 环比上月; | ||||
|         this.平均提前签单天数 = 平均提前签单天数; | ||||
|         this.环比 = 环比; | ||||
|     } | ||||
|  | ||||
|     public String get责任部门() | ||||
|     { | ||||
|         return 责任部门; | ||||
|     } | ||||
|  | ||||
|     public void set责任部门( String 责任部门 ) | ||||
|     { | ||||
|         this.责任部门 = 责任部门; | ||||
|     } | ||||
|  | ||||
|     public double get机构目标值() | ||||
|     { | ||||
|         return 机构目标值; | ||||
|     } | ||||
|  | ||||
|     public void set机构目标值( double 机构目标值 ) | ||||
|     { | ||||
|         this.机构目标值 = 机构目标值; | ||||
|     } | ||||
|  | ||||
|     public int get到期数全月() | ||||
|     { | ||||
|         return 到期数全月; | ||||
|     } | ||||
|  | ||||
|     public void set到期数全月( int 到期数全月 ) | ||||
|     { | ||||
|         this.到期数全月 = 到期数全月; | ||||
|     } | ||||
|  | ||||
|     public double get序时到期数占比() | ||||
|     { | ||||
|         return 序时到期数占比; | ||||
|     } | ||||
|  | ||||
|     public void set序时到期数占比( double 序时到期数占比 ) | ||||
|     { | ||||
|         this.序时到期数占比 = 序时到期数占比; | ||||
|     } | ||||
|  | ||||
|     public double get个车续保率序时() | ||||
|     { | ||||
|         return 个车续保率序时; | ||||
|     } | ||||
|  | ||||
|     public void set个车续保率序时( double 个车续保率序时 ) | ||||
|     { | ||||
|         this.个车续保率序时 = 个车续保率序时; | ||||
|     } | ||||
|  | ||||
|     public double get个车续保率全月() | ||||
|     { | ||||
|         return 个车续保率全月; | ||||
|     } | ||||
|  | ||||
|     public void set个车续保率全月( double 个车续保率全月 ) | ||||
|     { | ||||
|         this.个车续保率全月 = 个车续保率全月; | ||||
|     } | ||||
|  | ||||
|     public double get环比昨日() | ||||
|     { | ||||
|         return 环比昨日; | ||||
|     } | ||||
|  | ||||
|     public void set环比昨日( double 环比昨日 ) | ||||
|     { | ||||
|         this.环比昨日 = 环比昨日; | ||||
|     } | ||||
|  | ||||
|     public double get环比上月() | ||||
|     { | ||||
|         return 环比上月; | ||||
|     } | ||||
|  | ||||
|     public void set环比上月( double 环比上月 ) | ||||
|     { | ||||
|         this.环比上月 = 环比上月; | ||||
|     } | ||||
|  | ||||
|     public int get平均提前签单天数() | ||||
|     { | ||||
|         return 平均提前签单天数; | ||||
|     } | ||||
|  | ||||
|     public void set平均提前签单天数( int 平均提前签单天数 ) | ||||
|     { | ||||
|         this.平均提前签单天数 = 平均提前签单天数; | ||||
|     } | ||||
|  | ||||
|     public double get环比() | ||||
|     { | ||||
|         return 环比; | ||||
|     } | ||||
|  | ||||
|     public void set环比( double 环比 ) | ||||
|     { | ||||
|         this.环比 = 环比; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + ((责任部门 == null) ? 0 : 责任部门.hashCode()); | ||||
|         long temp; | ||||
|         temp = Double.doubleToLongBits( 机构目标值 ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         result = prime * result + 到期数全月; | ||||
|         temp = Double.doubleToLongBits( 序时到期数占比 ); | ||||
|         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)); | ||||
|         temp = Double.doubleToLongBits( 环比昨日 ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( 环比上月 ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         result = prime * result + 平均提前签单天数; | ||||
|         temp = Double.doubleToLongBits( 环比 ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         return result; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean equals( Object obj ) | ||||
|     { | ||||
|         if ( this == obj ) | ||||
|             return true; | ||||
|         if ( obj == null ) | ||||
|             return false; | ||||
|         if ( getClass() != obj.getClass() ) | ||||
|             return false; | ||||
|         BIDepartmentRenewalRateRecord other = (BIDepartmentRenewalRateRecord) obj; | ||||
|         if ( 责任部门 == null ) | ||||
|         { | ||||
|             if ( other.责任部门 != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !责任部门.equals( other.责任部门 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 机构目标值 ) != Double.doubleToLongBits( other.机构目标值 ) ) | ||||
|             return false; | ||||
|         if ( 到期数全月 != other.到期数全月 ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 序时到期数占比 ) != Double.doubleToLongBits( other.序时到期数占比 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 个车续保率序时 ) != Double.doubleToLongBits( other.个车续保率序时 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 个车续保率全月 ) != Double.doubleToLongBits( other.个车续保率全月 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 环比昨日 ) != Double.doubleToLongBits( other.环比昨日 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 环比上月 ) != Double.doubleToLongBits( other.环比上月 ) ) | ||||
|             return false; | ||||
|         if ( 平均提前签单天数 != other.平均提前签单天数 ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 环比 ) != Double.doubleToLongBits( other.环比 ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "BIDepartmentRenewalRateRecord [责任部门=" + 责任部门 + ", 机构目标值=" + 机构目标值 + ", 到期数全月=" | ||||
|                 + 到期数全月 + ", 序时到期数占比=" + 序时到期数占比 + ", 个车续保率序时=" + 个车续保率序时 + ", 个车续保率全月=" + 个车续保率全月 | ||||
|                 + ", 环比昨日=" + 环比昨日 + ", 环比上月=" + 环比上月 + ", 平均提前签单天数=" + 平均提前签单天数 + ", 环比=" + 环比 | ||||
|                 + "]"; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,311 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-08 14:45:13 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/BITelsalerAttachingRateRecord.java | ||||
|  * @Description: 用于存放BI导出每日电销坐席车险非车险保费和车非渗透率数据. | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.mybatis.pojo; | ||||
|  | ||||
| import java.time.LocalDate; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| public class BITelsalerAttachingRateRecord | ||||
| { | ||||
|     // 部门 | ||||
|     @JsonProperty( "departmentName" ) | ||||
|     private String departmentName; | ||||
|  | ||||
|     // 统计日期 | ||||
|     @JsonProperty( "summaryDate" ) | ||||
|     private LocalDate summaryDate; | ||||
|  | ||||
|     // 坐席名称 | ||||
|     @JsonProperty( "telsalerName" ) | ||||
|     private String telsalerName; | ||||
|  | ||||
|     // 车险保费 | ||||
|     @JsonProperty( "motoPremium" ) | ||||
|     private double motoPremium; | ||||
|  | ||||
|     // 非车险保费 | ||||
|     @JsonProperty( "nomotoPremium" ) | ||||
|     private double nomotoPremium; | ||||
|  | ||||
|     // 车险保费占比 | ||||
|     @JsonProperty( "motoPremiumProportion" ) | ||||
|     private double motoPremiumProportion; | ||||
|  | ||||
|     // 渗透率 | ||||
|     @JsonProperty( "attachingRate" ) | ||||
|     private double attachingRate; | ||||
|  | ||||
|     // 渗透率环比上月 | ||||
|     @JsonProperty( "attachingRateChange" ) | ||||
|     private double attachingRateChange; | ||||
|  | ||||
|     // 当月客户渗透率 | ||||
|     @JsonProperty( "customerHandleRateCell" ) | ||||
|     private double customerHandleRate; | ||||
|  | ||||
|     // 客户渗透率环比上月 | ||||
|     @JsonProperty( "customerHandleRateChangeCell" ) | ||||
|     private double customerHandleRateChange; | ||||
|  | ||||
|     // 当月车非客均保费 | ||||
|     @JsonProperty( "noMotoPremiumPerCustomerCell" ) | ||||
|     private double noMotoPremiumPerCustomer; | ||||
|  | ||||
|     // 客均保费环比上月 | ||||
|     @JsonProperty( "noMotoPremiumPerCustomerChangeCell" ) | ||||
|     private double noMotoPremiumPerCustomerChange; | ||||
|  | ||||
|     public BITelsalerAttachingRateRecord( String departmentName, LocalDate summaryDate, | ||||
|             String telsalerName, double motoPremium, double nomotoPremium, | ||||
|             double motoPremiumProportion, double attachingRate, double attachingRateChange, | ||||
|             double customerHandleRate, double customerHandleRateChange, | ||||
|             double noMotoPremiumPerCustomer, double noMotoPremiumPerCustomerChange ) | ||||
|     { | ||||
|         this.departmentName = departmentName; | ||||
|         this.summaryDate = summaryDate; | ||||
|         this.telsalerName = telsalerName; | ||||
|         this.motoPremium = motoPremium; | ||||
|         this.nomotoPremium = nomotoPremium; | ||||
|         this.motoPremiumProportion = motoPremiumProportion; | ||||
|         this.attachingRate = attachingRate; | ||||
|         this.attachingRateChange = attachingRateChange; | ||||
|         this.customerHandleRate = customerHandleRate; | ||||
|         this.customerHandleRateChange = customerHandleRateChange; | ||||
|         this.noMotoPremiumPerCustomer = noMotoPremiumPerCustomer; | ||||
|         this.noMotoPremiumPerCustomerChange = noMotoPremiumPerCustomerChange; | ||||
|     } | ||||
|  | ||||
|     public BITelsalerAttachingRateRecord() | ||||
|     {} | ||||
|  | ||||
|     public double getCustomerHandleRate() | ||||
|     { | ||||
|         return customerHandleRate; | ||||
|     } | ||||
|  | ||||
|     public void setCustomerHandleRate( double customerHandleRate ) | ||||
|     { | ||||
|         this.customerHandleRate = customerHandleRate; | ||||
|     } | ||||
|  | ||||
|     public double getCustomerHandleRateChange() | ||||
|     { | ||||
|         return customerHandleRateChange; | ||||
|     } | ||||
|  | ||||
|     public void setCustomerHandleRateChange( double customerHandleRateChange ) | ||||
|     { | ||||
|         this.customerHandleRateChange = customerHandleRateChange; | ||||
|     } | ||||
|  | ||||
|     public double getNoMotoPremiumPerCustomer() | ||||
|     { | ||||
|         return noMotoPremiumPerCustomer; | ||||
|     } | ||||
|  | ||||
|     public void setNoMotoPremiumPerCustomer( double noMotoPremiumPerCustomer ) | ||||
|     { | ||||
|         this.noMotoPremiumPerCustomer = noMotoPremiumPerCustomer; | ||||
|     } | ||||
|  | ||||
|     public double getNoMotoPremiumPerCustomerChange() | ||||
|     { | ||||
|         return noMotoPremiumPerCustomerChange; | ||||
|     } | ||||
|  | ||||
|     public void setNoMotoPremiumPerCustomerChange( double noMotoPremiumPerCustomerChange ) | ||||
|     { | ||||
|         this.noMotoPremiumPerCustomerChange = noMotoPremiumPerCustomerChange; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "BITelsalerAttachingRateRecord [departmentName=" + departmentName + ", summaryDate=" | ||||
|                 + summaryDate + ", telsalerName=" + telsalerName + ", motoPremium=" + motoPremium | ||||
|                 + ", nomotoPremium=" + nomotoPremium + ", motoPremiumProportion=" | ||||
|                 + motoPremiumProportion + ", attachingRate=" + attachingRate | ||||
|                 + ", attachingRateChange=" + attachingRateChange + ", customerHandleRate=" | ||||
|                 + customerHandleRate + ", customerHandleRateChange=" + customerHandleRateChange | ||||
|                 + ", noMotoPremiumPerCustomer=" + noMotoPremiumPerCustomer | ||||
|                 + ", noMotoPremiumPerCustomerChange=" + noMotoPremiumPerCustomerChange + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode()); | ||||
|         result = prime * result + ((summaryDate == null) ? 0 : summaryDate.hashCode()); | ||||
|         result = prime * result + ((telsalerName == null) ? 0 : telsalerName.hashCode()); | ||||
|         long temp; | ||||
|         temp = Double.doubleToLongBits( motoPremium ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( nomotoPremium ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( motoPremiumProportion ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( attachingRate ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( attachingRateChange ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( customerHandleRate ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( customerHandleRateChange ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( noMotoPremiumPerCustomer ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         temp = Double.doubleToLongBits( noMotoPremiumPerCustomerChange ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         return result; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean equals( Object obj ) | ||||
|     { | ||||
|         if ( this == obj ) | ||||
|             return true; | ||||
|         if ( obj == null ) | ||||
|             return false; | ||||
|         if ( getClass() != obj.getClass() ) | ||||
|             return false; | ||||
|         BITelsalerAttachingRateRecord other = (BITelsalerAttachingRateRecord) obj; | ||||
|         if ( departmentName == null ) | ||||
|         { | ||||
|             if ( other.departmentName != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !departmentName.equals( other.departmentName ) ) | ||||
|             return false; | ||||
|         if ( summaryDate == null ) | ||||
|         { | ||||
|             if ( other.summaryDate != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !summaryDate.equals( other.summaryDate ) ) | ||||
|             return false; | ||||
|         if ( telsalerName == null ) | ||||
|         { | ||||
|             if ( other.telsalerName != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !telsalerName.equals( other.telsalerName ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( motoPremium ) != Double | ||||
|                 .doubleToLongBits( other.motoPremium ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( nomotoPremium ) != Double | ||||
|                 .doubleToLongBits( other.nomotoPremium ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( motoPremiumProportion ) != Double | ||||
|                 .doubleToLongBits( other.motoPremiumProportion ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( attachingRate ) != Double | ||||
|                 .doubleToLongBits( other.attachingRate ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( attachingRateChange ) != Double | ||||
|                 .doubleToLongBits( other.attachingRateChange ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( customerHandleRate ) != Double | ||||
|                 .doubleToLongBits( other.customerHandleRate ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( customerHandleRateChange ) != Double | ||||
|                 .doubleToLongBits( other.customerHandleRateChange ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( noMotoPremiumPerCustomer ) != Double | ||||
|                 .doubleToLongBits( other.noMotoPremiumPerCustomer ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( noMotoPremiumPerCustomerChange ) != Double | ||||
|                 .doubleToLongBits( other.noMotoPremiumPerCustomerChange ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public LocalDate getSummaryDate() | ||||
|     { | ||||
|         return summaryDate; | ||||
|     } | ||||
|  | ||||
|     public void setSummaryDate( LocalDate summaryDate ) | ||||
|     { | ||||
|         this.summaryDate = summaryDate; | ||||
|     } | ||||
|  | ||||
|     public String getTelsalerName() | ||||
|     { | ||||
|         return telsalerName; | ||||
|     } | ||||
|  | ||||
|     public void setTelsalerName( String telsalerName ) | ||||
|     { | ||||
|         this.telsalerName = telsalerName; | ||||
|     } | ||||
|  | ||||
|     public double getMotoPremium() | ||||
|     { | ||||
|         return motoPremium; | ||||
|     } | ||||
|  | ||||
|     public void setMotoPremium( double motoPremium ) | ||||
|     { | ||||
|         this.motoPremium = motoPremium; | ||||
|     } | ||||
|  | ||||
|     public double getNomotoPremium() | ||||
|     { | ||||
|         return nomotoPremium; | ||||
|     } | ||||
|  | ||||
|     public void setNomotoPremium( double nomotoPremium ) | ||||
|     { | ||||
|         this.nomotoPremium = nomotoPremium; | ||||
|     } | ||||
|  | ||||
|     public double getMotoPremiumProportion() | ||||
|     { | ||||
|         return motoPremiumProportion; | ||||
|     } | ||||
|  | ||||
|     public void setMotoPremiumProportion( double motoPremiumProportion ) | ||||
|     { | ||||
|         this.motoPremiumProportion = motoPremiumProportion; | ||||
|     } | ||||
|  | ||||
|     public double getAttachingRate() | ||||
|     { | ||||
|         return attachingRate; | ||||
|     } | ||||
|  | ||||
|     public void setAttachingRate( double attachingRate ) | ||||
|     { | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     public double getAttachingRateChange() | ||||
|     { | ||||
|         return attachingRateChange; | ||||
|     } | ||||
|  | ||||
|     public void setAttachingRateChange( double attachingRateChange ) | ||||
|     { | ||||
|         this.attachingRateChange = attachingRateChange; | ||||
|     } | ||||
|  | ||||
|     public String getDepartmentName() | ||||
|     { | ||||
|         return departmentName; | ||||
|     } | ||||
|  | ||||
|     public void setDepartmentName( String departmentName ) | ||||
|     { | ||||
|         this.departmentName = departmentName; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,236 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-09 21:45:39 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/BITelsalerRenewalRateRecord.java | ||||
|  * @Description: BI导出的续保率Excel文件行记录。 | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.mybatis.pojo; | ||||
|  | ||||
| public class BITelsalerRenewalRateRecord | ||||
| { | ||||
|     private String 责任部门; | ||||
|     private String 责任人; | ||||
|     private double 机构目标值; | ||||
|     private double 到期数全月; | ||||
|     private double 序时到期数占比; | ||||
|     private double 个车续保率序时; | ||||
|     private double 个车续保率全月; | ||||
|     private double 环比昨日; | ||||
|     private double 环比上月; | ||||
|     private double 平均提前签单天数; | ||||
|     private double 环比; | ||||
|      | ||||
|     public BITelsalerRenewalRateRecord( String 责任部门, String 责任人, double 机构目标值, double 到期数全月, | ||||
|             double 序时到期数占比, double 个车续保率序时, double 个车续保率全月, double 环比昨日, double 环比上月, | ||||
|             double 平均提前签单天数, double 环比 ) | ||||
|     { | ||||
|         this.责任部门 = 责任部门; | ||||
|         this.责任人 = 责任人; | ||||
|         this.机构目标值 = 机构目标值; | ||||
|         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责任部门() | ||||
|     { | ||||
|         return 责任部门; | ||||
|     } | ||||
|  | ||||
|     public void set责任部门( String 责任部门 ) | ||||
|     { | ||||
|         this.责任部门 = 责任部门; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + ((责任部门 == null) ? 0 : 责任部门.hashCode()); | ||||
|         result = prime * result + ((责任人 == null) ? 0 : 责任人.hashCode()); | ||||
|         long temp; | ||||
|         temp = Double.doubleToLongBits( 机构目标值 ); | ||||
|         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)); | ||||
|         temp = Double.doubleToLongBits( 个车续保率序时 ); | ||||
|         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)); | ||||
|         temp = Double.doubleToLongBits( 环比上月 ); | ||||
|         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; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean equals( Object obj ) | ||||
|     { | ||||
|         if ( this == obj ) | ||||
|             return true; | ||||
|         if ( obj == null ) | ||||
|             return false; | ||||
|         if ( getClass() != obj.getClass() ) | ||||
|             return false; | ||||
|         BITelsalerRenewalRateRecord other = (BITelsalerRenewalRateRecord) 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 ( Double.doubleToLongBits( 机构目标值 ) != Double.doubleToLongBits( other.机构目标值 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 到期数全月 ) != Double.doubleToLongBits( other.到期数全月 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 序时到期数占比 ) != Double.doubleToLongBits( other.序时到期数占比 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 个车续保率序时 ) != Double.doubleToLongBits( other.个车续保率序时 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 个车续保率全月 ) != Double.doubleToLongBits( other.个车续保率全月 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 环比昨日 ) != Double.doubleToLongBits( other.环比昨日 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 环比上月 ) != Double.doubleToLongBits( other.环比上月 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 平均提前签单天数 ) != Double.doubleToLongBits( other.平均提前签单天数 ) ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( 环比 ) != Double.doubleToLongBits( other.环比 ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "BITelsalerRenewalRateRecord [责任部门=" + 责任部门 + ", 责任人=" + 责任人 + ", 机构目标值=" + 机构目标值 | ||||
|                 + ", 到期数全月=" + 到期数全月 + ", 序时到期数占比=" + 序时到期数占比 + ", 个车续保率序时=" + 个车续保率序时 | ||||
|                 + ", 个车续保率全月=" + 个车续保率全月 + ", 环比昨日=" + 环比昨日 + ", 环比上月=" + 环比上月 + ", 平均提前签单天数=" | ||||
|                 + 平均提前签单天数 + ", 环比=" + 环比 + "]"; | ||||
|     } | ||||
|  | ||||
|     public String get责任人() | ||||
|     { | ||||
|         return 责任人; | ||||
|     } | ||||
|  | ||||
|     public void set责任人( String 责任人 ) | ||||
|     { | ||||
|         this.责任人 = 责任人; | ||||
|     } | ||||
|  | ||||
|     public double get机构目标值() | ||||
|     { | ||||
|         return 机构目标值; | ||||
|     } | ||||
|  | ||||
|     public void set机构目标值( double 机构目标值 ) | ||||
|     { | ||||
|         this.机构目标值 = 机构目标值; | ||||
|     } | ||||
|  | ||||
|     public double get到期数全月() | ||||
|     { | ||||
|         return 到期数全月; | ||||
|     } | ||||
|  | ||||
|     public void set到期数全月( double 到期数全月 ) | ||||
|     { | ||||
|         this.到期数全月 = 到期数全月; | ||||
|     } | ||||
|  | ||||
|     public double get序时到期数占比() | ||||
|     { | ||||
|         return 序时到期数占比; | ||||
|     } | ||||
|     public void set序时到期数占比( double 序时到期数占比 ) | ||||
|     { | ||||
|         this.序时到期数占比 = 序时到期数占比; | ||||
|     } | ||||
|  | ||||
|     public double get个车续保率序时() | ||||
|     { | ||||
|         return 个车续保率序时; | ||||
|     } | ||||
|  | ||||
|     public void set个车续保率序时( double 个车续保率序时 ) | ||||
|     { | ||||
|         this.个车续保率序时 = 个车续保率序时; | ||||
|     } | ||||
|  | ||||
|     public double get个车续保率全月() | ||||
|     { | ||||
|         return 个车续保率全月; | ||||
|     }	 | ||||
|  | ||||
|     public void set个车续保率全月( double 个车续保率全月 ) | ||||
|     { | ||||
|         this.个车续保率全月 = 个车续保率全月; | ||||
|     } | ||||
|  | ||||
|     public double get环比昨日() | ||||
|     { | ||||
|         return 环比昨日; | ||||
|     } | ||||
|  | ||||
|     public void set环比昨日( double 环比昨日 ) | ||||
|     { | ||||
|         this.环比昨日 = 环比昨日; | ||||
|     } | ||||
|  | ||||
|     public double get环比上月() | ||||
|     { | ||||
|         return 环比上月; | ||||
|     } | ||||
|     	 | ||||
|     public void set环比上月( double 环比上月 ) | ||||
|     { | ||||
|         this.环比上月 = 环比上月; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,341 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-07 23:29:22 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/mybatis/pojo/TelsalerFromJYGL.java | ||||
|  * @Description: 经营管理系统中导出的电销坐席数据记录。 | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.mybatis.pojo; | ||||
|  | ||||
| import java.time.LocalDate; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| /** | ||||
|  * 经营管理系统中导出的电销坐席数据记录。 | ||||
|  * @author Kane | ||||
|  */ | ||||
| public class TelsalerFromJYGL | ||||
| { | ||||
|     // 名称 | ||||
|     @JsonProperty("telsalerName") | ||||
|     private String telsalerName; | ||||
|  | ||||
|     // 坐席工号 | ||||
|     @JsonProperty("telsalerCode") | ||||
|     private String telsalerCode; | ||||
|  | ||||
|     // 籍贯 | ||||
|     @JsonProperty("nativePlace") | ||||
|     private String nativePlace; | ||||
|  | ||||
|     // 参加工作时间 | ||||
|     @JsonProperty("startWorkingDate") | ||||
|     private LocalDate startWorkingDate; | ||||
|  | ||||
|     // 入司时间 | ||||
|     @JsonProperty("employmentDate") | ||||
|     private LocalDate employmentDate; | ||||
|  | ||||
|     // 业务类型 | ||||
|     @JsonProperty("business") | ||||
|     private String business; | ||||
|  | ||||
|     // 办公地省 | ||||
|     @JsonProperty("province") | ||||
|     private String province; | ||||
|  | ||||
|     // 办公地市 | ||||
|     @JsonProperty("city") | ||||
|     private String city; | ||||
|  | ||||
|     // 人员类别 | ||||
|     @JsonProperty("employmentType") | ||||
|     private String employmentType; | ||||
|  | ||||
|     // 现任岗位 | ||||
|     @JsonProperty("quarters") | ||||
|     private String quarters; | ||||
|  | ||||
|     // 现任职级 | ||||
|     @JsonProperty("rank") | ||||
|     private String rank; | ||||
|  | ||||
|     // 机构名称 | ||||
|     @JsonProperty("branchName") | ||||
|     private String branchName; | ||||
|  | ||||
|     // 职场分类 | ||||
|     @JsonProperty("workPlaceType") | ||||
|     private String workPlaceType; | ||||
|  | ||||
|     public TelsalerFromJYGL() {} | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "TelsalerFromJYGL [telsalerName=" + telsalerName + ", telsalerCode=" + telsalerCode | ||||
|                 + ", nativePlace=" + nativePlace + ", startWorkingDate=" + startWorkingDate | ||||
|                 + ", employmentDate=" + employmentDate + ", business=" + business + ", province=" | ||||
|                 + province + ", city=" + city + ", employmentType=" + employmentType + ", quarters=" | ||||
|                 + quarters + ", rank=" + rank + ", branchName=" + branchName + ", workPlaceType=" | ||||
|                 + workPlaceType + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + ((telsalerName == null) ? 0 : telsalerName.hashCode()); | ||||
|         result = prime * result + ((telsalerCode == null) ? 0 : telsalerCode.hashCode()); | ||||
|         result = prime * result + ((nativePlace == null) ? 0 : nativePlace.hashCode()); | ||||
|         result = prime * result + ((startWorkingDate == null) ? 0 : startWorkingDate.hashCode()); | ||||
|         result = prime * result + ((employmentDate == null) ? 0 : employmentDate.hashCode()); | ||||
|         result = prime * result + ((business == null) ? 0 : business.hashCode()); | ||||
|         result = prime * result + ((province == null) ? 0 : province.hashCode()); | ||||
|         result = prime * result + ((city == null) ? 0 : city.hashCode()); | ||||
|         result = prime * result + ((employmentType == null) ? 0 : employmentType.hashCode()); | ||||
|         result = prime * result + ((quarters == null) ? 0 : quarters.hashCode()); | ||||
|         result = prime * result + ((rank == null) ? 0 : rank.hashCode()); | ||||
|         result = prime * result + ((branchName == null) ? 0 : branchName.hashCode()); | ||||
|         result = prime * result + ((workPlaceType == null) ? 0 : workPlaceType.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; | ||||
|         TelsalerFromJYGL other = (TelsalerFromJYGL) obj; | ||||
|         if ( telsalerName == null ) | ||||
|         { | ||||
|             if ( other.telsalerName != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !telsalerName.equals( other.telsalerName ) ) | ||||
|             return false; | ||||
|         if ( telsalerCode == null ) | ||||
|         { | ||||
|             if ( other.telsalerCode != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !telsalerCode.equals( other.telsalerCode ) ) | ||||
|             return false; | ||||
|         if ( nativePlace == null ) | ||||
|         { | ||||
|             if ( other.nativePlace != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !nativePlace.equals( other.nativePlace ) ) | ||||
|             return false; | ||||
|         if ( startWorkingDate == null ) | ||||
|         { | ||||
|             if ( other.startWorkingDate != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !startWorkingDate.equals( other.startWorkingDate ) ) | ||||
|             return false; | ||||
|         if ( employmentDate == null ) | ||||
|         { | ||||
|             if ( other.employmentDate != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !employmentDate.equals( other.employmentDate ) ) | ||||
|             return false; | ||||
|         if ( business == null ) | ||||
|         { | ||||
|             if ( other.business != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !business.equals( other.business ) ) | ||||
|             return false; | ||||
|         if ( province == null ) | ||||
|         { | ||||
|             if ( other.province != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !province.equals( other.province ) ) | ||||
|             return false; | ||||
|         if ( city == null ) | ||||
|         { | ||||
|             if ( other.city != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !city.equals( other.city ) ) | ||||
|             return false; | ||||
|         if ( employmentType == null ) | ||||
|         { | ||||
|             if ( other.employmentType != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !employmentType.equals( other.employmentType ) ) | ||||
|             return false; | ||||
|         if ( quarters == null ) | ||||
|         { | ||||
|             if ( other.quarters != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !quarters.equals( other.quarters ) ) | ||||
|             return false; | ||||
|         if ( rank == null ) | ||||
|         { | ||||
|             if ( other.rank != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !rank.equals( other.rank ) ) | ||||
|             return false; | ||||
|         if ( branchName == null ) | ||||
|         { | ||||
|             if ( other.branchName != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !branchName.equals( other.branchName ) ) | ||||
|             return false; | ||||
|         if ( workPlaceType == null ) | ||||
|         { | ||||
|             if ( other.workPlaceType != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !workPlaceType.equals( other.workPlaceType ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public String getTelsalerName() | ||||
|     { | ||||
|         return telsalerName; | ||||
|     } | ||||
|  | ||||
|     public void setTelsalerName( String telsalerName ) | ||||
|     { | ||||
|         this.telsalerName = telsalerName; | ||||
|     } | ||||
|  | ||||
|     public String getTelsalerCode() | ||||
|     { | ||||
|         return telsalerCode; | ||||
|     } | ||||
|  | ||||
|     public void setTelsalerCode( String telsalerCode ) | ||||
|     { | ||||
|         this.telsalerCode = telsalerCode; | ||||
|     } | ||||
|  | ||||
|     public String getNativePlace() | ||||
|     { | ||||
|         return nativePlace; | ||||
|     } | ||||
|  | ||||
|     public void setNativePlace( String nativePlace ) | ||||
|     { | ||||
|         this.nativePlace = nativePlace; | ||||
|     } | ||||
|  | ||||
|     public LocalDate getStartWorkingDate() | ||||
|     { | ||||
|         return startWorkingDate; | ||||
|     } | ||||
|  | ||||
|     public void setStartWorkingDate( LocalDate startWorkingDate ) | ||||
|     { | ||||
|         this.startWorkingDate = startWorkingDate; | ||||
|     } | ||||
|  | ||||
|     public LocalDate getEmploymentDate() | ||||
|     { | ||||
|         return employmentDate; | ||||
|     } | ||||
|  | ||||
|     public void setEmploymentDate( LocalDate employmentDate ) | ||||
|     { | ||||
|         this.employmentDate = employmentDate; | ||||
|     } | ||||
|  | ||||
|     public String getBusiness() | ||||
|     { | ||||
|         return business; | ||||
|     } | ||||
|  | ||||
|     public void setBusiness( String business ) | ||||
|     { | ||||
|         this.business = business; | ||||
|     } | ||||
|  | ||||
|     public String getProvince() | ||||
|     { | ||||
|         return province; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     public void setProvince( String province ) | ||||
|     { | ||||
|         this.province = province; | ||||
|     } | ||||
|  | ||||
|     public String getCity() | ||||
|     { | ||||
|         return city; | ||||
|     } | ||||
|  | ||||
|     public void setCity( String city ) | ||||
|     { | ||||
|         this.city = city; | ||||
|     } | ||||
|  | ||||
|     public String getEmploymentType() | ||||
|     { | ||||
|         return employmentType; | ||||
|     } | ||||
|  | ||||
|     public void setEmploymentType( String employmentType ) | ||||
|     { | ||||
|         this.employmentType = employmentType; | ||||
|     } | ||||
|  | ||||
|     public String getQuarters() | ||||
|     { | ||||
|         return quarters; | ||||
|     } | ||||
|  | ||||
|     public void setQuarters( String quarters ) | ||||
|     { | ||||
|         this.quarters = quarters; | ||||
|     } | ||||
|  | ||||
|     public String getRank() | ||||
|     { | ||||
|         return rank; | ||||
|     } | ||||
|  | ||||
|     public void setRank( String rank ) | ||||
|     { | ||||
|         this.rank = rank; | ||||
|     } | ||||
|  | ||||
|     public String getBranchName() | ||||
|     { | ||||
|         return branchName; | ||||
|     } | ||||
|  | ||||
|     public void setBranchName( String branchName ) | ||||
|     { | ||||
|         this.branchName = branchName; | ||||
|     } | ||||
|  | ||||
|     public String getWorkPlaceType() | ||||
|     { | ||||
|         return workPlaceType; | ||||
|     } | ||||
|  | ||||
|     public void setWorkPlaceType( String workPlaceType ) | ||||
|     { | ||||
|         this.workPlaceType = workPlaceType; | ||||
|     } | ||||
| } | ||||
| @@ -13,13 +13,15 @@ import java.io.IOException; | ||||
| import java.io.InputStream; | ||||
| import java.util.HashMap; | ||||
| import org.apache.ibatis.io.Resources; | ||||
| import org.apache.ibatis.session.ExecutorType; | ||||
| import org.apache.ibatis.session.SqlSession; | ||||
| import org.apache.ibatis.session.SqlSessionFactory; | ||||
| import org.apache.ibatis.session.SqlSessionFactoryBuilder; | ||||
|  | ||||
| public class MybatisUtils | ||||
| { | ||||
|     private static HashMap<String, SqlSession> SessionMap = new HashMap<>(); | ||||
|     private static HashMap<String, SqlSession> SessionMap = new HashMap<>(5); | ||||
|     private static HashMap<String, SqlSession> SessionMapBatch = new HashMap<>(5); | ||||
|     private static String DEFAULT_CONFIGFILE = "mybatis/mybatis-config.xml"; | ||||
|  | ||||
|     /** | ||||
| @@ -50,6 +52,31 @@ public class MybatisUtils | ||||
|         return session; | ||||
|     } | ||||
|  | ||||
|     public static SqlSession getSqlSessionBatch( String configFile ) throws IOException | ||||
|     { | ||||
|         SqlSession sessionBatch = SessionMapBatch.get( configFile ); | ||||
|  | ||||
|         if ( sessionBatch != null ) | ||||
|         { | ||||
|             return sessionBatch; | ||||
|         } | ||||
|  | ||||
|         // 没有缓存的就创建一个新的 | ||||
|         InputStream configIS = Resources.getResourceAsStream( configFile ); | ||||
|         SqlSessionFactory factory = new SqlSessionFactoryBuilder().build( configIS ); | ||||
|         sessionBatch = factory.openSession(ExecutorType.BATCH, false ); | ||||
|  | ||||
|         //保存 | ||||
|         SessionMapBatch.put( configFile, sessionBatch ); | ||||
|  | ||||
|         return sessionBatch; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      *  | ||||
|      * @return | ||||
|      * @throws IOException | ||||
|      */ | ||||
|     public static SqlSession getSqlSession() throws IOException | ||||
|     { | ||||
|         // 根据配置文件的路径,查找是否已经创建了对应的session | ||||
| @@ -71,4 +98,31 @@ public class MybatisUtils | ||||
|  | ||||
|         return session; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取一个Batch模式的sqlsession,使用默认路径的mybatis-config.xml文件。 | ||||
|      * 先判断SessionMapBatch中是否有和配置文件对应的缓存的sqlsession对象,有就直接使用。 | ||||
|      * 没有就创建一个新的,然后放入SessionMapBatch中。 | ||||
|      * @return ExecutorType.BATCH模式的sqlsession实例对象 | ||||
|      * @throws IOException 读取配置文件错误时抛出IOException异常 | ||||
|      */ | ||||
|     public static SqlSession getSqlSessionBatch() throws IOException | ||||
|     { | ||||
|         SqlSession sessionBatch = SessionMapBatch.get( DEFAULT_CONFIGFILE ); | ||||
|  | ||||
|         if ( sessionBatch != null ) | ||||
|         { | ||||
|             return sessionBatch; | ||||
|         } | ||||
|  | ||||
|         // 没有缓存的就创建一个新的 | ||||
|         InputStream configIS = Resources.getResourceAsStream( DEFAULT_CONFIGFILE ); | ||||
|         SqlSessionFactory factory = new SqlSessionFactoryBuilder().build( configIS ); | ||||
|         sessionBatch = factory.openSession(ExecutorType.BATCH, false ); | ||||
|  | ||||
|         //保存 | ||||
|         SessionMapBatch.put( DEFAULT_CONFIGFILE, sessionBatch ); | ||||
|  | ||||
|         return sessionBatch; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -25,24 +25,6 @@ public class CallerArchievement | ||||
| { | ||||
|     private static Logger logger = LoggerFactory.getLogger( CallerArchievement.class ); | ||||
|     private static ArrayList<MensualArchievementItem> monthArray = null; | ||||
|     /** | ||||
|      * 构造函数 | ||||
|      * @param callerCode | ||||
|      * @param totalArchievement | ||||
|      * @param mensualArchievementList | ||||
|      * @param insuranceRenewalRate | ||||
|      * @param attachingRate | ||||
|      */ | ||||
|     public CallerArchievement( String callerCode, long totalArchievement, | ||||
|             ArrayList<MensualArchievementItem> mensualArchievementList, String insuranceRenewalRate, | ||||
|             String attachingRate) | ||||
|     { | ||||
|         this.callerCode = callerCode; | ||||
|         this.totalArchievement = totalArchievement; | ||||
|         this.mensualArchievementList = mensualArchievementList; | ||||
|         this.insuranceRenewalRate = insuranceRenewalRate; | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     // 静态代码块 | ||||
|     static | ||||
| @@ -64,15 +46,6 @@ public class CallerArchievement | ||||
|         monthArray.add( new MensualArchievementItem( 12, "0" ) ); | ||||
|     } | ||||
|  | ||||
|     public CallerArchievement() | ||||
|     { | ||||
|         this.totalArchievement = 0; | ||||
|         this.mensualArchievementList = null; | ||||
|         this.insuranceRenewalRate = ""; | ||||
|         this.attachingRate = ""; | ||||
|         this.callerCode = ""; | ||||
|     } | ||||
|  | ||||
|     public static CallerArchievement getCallerArchievement( String callerCode ) throws IOException | ||||
|     { | ||||
|         CallerArchievement archievement = null; | ||||
| @@ -81,6 +54,7 @@ public class CallerArchievement | ||||
|         ArchievementMapper mapper = session.getMapper( ArchievementMapper.class ); | ||||
|         HashMap<String, Object> params = new HashMap<String, Object>(); | ||||
|         Integer totalArchievement = null; | ||||
|         double motoPremiumPresentMonth = 0; | ||||
|         String attachingRate = null; | ||||
|         String renewalRate = null; | ||||
|         ArrayList<MensualArchievementItem> mensual = null; | ||||
| @@ -93,16 +67,22 @@ public class CallerArchievement | ||||
|         if ( params.get( "a_total" ) instanceof Integer ) | ||||
|         { | ||||
|             totalArchievement = (Integer) params.get( "a_total" ); | ||||
|         } else | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|             totalArchievement = Integer.valueOf( 0 ); | ||||
|         } | ||||
|  | ||||
|         // 当月车险保费 | ||||
|         motoPremiumPresentMonth = ((Double) params.get( "a_present_month" )).doubleValue(); | ||||
|  | ||||
|  | ||||
|         // 车非融合 | ||||
|         if ( params.get( "a_attaching_rate" ) instanceof String ) | ||||
|         { | ||||
|             attachingRate = (String) params.get( "a_attaching_rate" ); | ||||
|         } else | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|             attachingRate = "0.0"; | ||||
|         } | ||||
| @@ -111,18 +91,23 @@ public class CallerArchievement | ||||
|         if ( params.get( "a_renewal_rate" ) instanceof String ) | ||||
|         { | ||||
|             renewalRate = (String) params.get( "a_renewal_rate" ); | ||||
|         } else | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|             renewalRate = "0.0"; | ||||
|         } | ||||
|  | ||||
|         // 处理每月业绩 | ||||
|         ArrayList<MensualArchievementItem> mensualList = new ArrayList<>(CallerArchievement.monthArray); | ||||
|         // ArrayList<MensualArchievementItem> mensualList = new | ||||
|         // ArrayList<>(CallerArchievement.monthArray); | ||||
|         // 数据库接收的每月业绩,要检查是否有缺漏 | ||||
|         if ( params.get( "a_mensual_cur" ) instanceof ArrayList ) | ||||
|         { | ||||
|             mensual = (ArrayList<MensualArchievementItem>) params.get( "a_mensual_cur" ); | ||||
|         } | ||||
|  | ||||
|         archievement = new CallerArchievement( callerCode, totalArchievement, mensual, renewalRate, | ||||
|                 attachingRate ); | ||||
|         archievement = new CallerArchievement( callerCode, totalArchievement, | ||||
|                 motoPremiumPresentMonth, mensual, renewalRate, attachingRate ); | ||||
|  | ||||
|         return archievement; | ||||
|     } | ||||
| @@ -137,6 +122,150 @@ public class CallerArchievement | ||||
|         CallerArchievement.logger = logger; | ||||
|     } | ||||
|  | ||||
|     public static ArrayList<MensualArchievementItem> getMonthArray() | ||||
|     { | ||||
|         return monthArray; | ||||
|     } | ||||
|  | ||||
|     public static void setMonthArray( ArrayList<MensualArchievementItem> monthArray ) | ||||
|     { | ||||
|         CallerArchievement.monthArray = monthArray; | ||||
|     } | ||||
|  | ||||
|     @JsonProperty( "caller_code" ) | ||||
|     private String callerCode; | ||||
|  | ||||
|     @JsonProperty( "total_archievement" ) | ||||
|     private long totalArchievement; // 总业绩 | ||||
|  | ||||
|     @JsonProperty( "motoPremiumPresentMonth" ) | ||||
|     private double motoPremiumPresentMonth; // 当月车险保费 | ||||
|  | ||||
|     // 每月业绩列表 | ||||
|     // 要保证数据是按照月份排序。 | ||||
|     @JsonProperty( "mensual_archievement_list" ) | ||||
|     private ArrayList<MensualArchievementItem> mensualArchievementList; | ||||
|  | ||||
|     @JsonProperty( "insurance_renewal_rate" ) | ||||
|     private String insuranceRenewalRate; // 续保率 | ||||
|  | ||||
|     @JsonProperty( "attaching_rate" ) | ||||
|     private String attachingRate; // 车非渗透率 | ||||
|  | ||||
|     /** | ||||
|      * 构造函数 | ||||
|      * @param callerCode | ||||
|      * @param totalArchievement | ||||
|      * @param mensualArchievementList | ||||
|      * @param insuranceRenewalRate | ||||
|      * @param attachingRate | ||||
|      */ | ||||
|     public CallerArchievement( String callerCode, long totalArchievement, | ||||
|             double motoPremiumPresentMonth, | ||||
|             ArrayList<MensualArchievementItem> mensualArchievementList, String insuranceRenewalRate, | ||||
|             String attachingRate ) | ||||
|     { | ||||
|         this.callerCode = callerCode; | ||||
|         this.totalArchievement = totalArchievement; | ||||
|         this.motoPremiumPresentMonth = motoPremiumPresentMonth; | ||||
|         this.mensualArchievementList = mensualArchievementList; | ||||
|         this.insuranceRenewalRate = insuranceRenewalRate; | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     public CallerArchievement() | ||||
|     { | ||||
|         this.totalArchievement = 0; | ||||
|         this.motoPremiumPresentMonth = 0; | ||||
|         this.mensualArchievementList = null; | ||||
|         this.insuranceRenewalRate = ""; | ||||
|         this.attachingRate = ""; | ||||
|         this.callerCode = ""; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "CallerArchievement [callerCode=" + callerCode + ", totalArchievement=" | ||||
|                 + totalArchievement + ", motoPremiumPresentMonth=" + motoPremiumPresentMonth | ||||
|                 + ", mensualArchievementList=" + mensualArchievementList + ", insuranceRenewalRate=" | ||||
|                 + insuranceRenewalRate + ", attachingRate=" + attachingRate + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + ((callerCode == null) ? 0 : callerCode.hashCode()); | ||||
|         result = prime * result + (int) (totalArchievement ^ (totalArchievement >>> 32)); | ||||
|         long temp; | ||||
|         temp = Double.doubleToLongBits( motoPremiumPresentMonth ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         result = prime * result | ||||
|                 + ((mensualArchievementList == null) ? 0 : mensualArchievementList.hashCode()); | ||||
|         result = prime * result | ||||
|                 + ((insuranceRenewalRate == null) ? 0 : insuranceRenewalRate.hashCode()); | ||||
|         result = prime * result + ((attachingRate == null) ? 0 : attachingRate.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; | ||||
|         CallerArchievement other = (CallerArchievement) obj; | ||||
|         if ( callerCode == null ) | ||||
|         { | ||||
|             if ( other.callerCode != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !callerCode.equals( other.callerCode ) ) | ||||
|             return false; | ||||
|         if ( totalArchievement != other.totalArchievement ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( motoPremiumPresentMonth ) != Double | ||||
|                 .doubleToLongBits( other.motoPremiumPresentMonth ) ) | ||||
|             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 ( attachingRate == null ) | ||||
|         { | ||||
|             if ( other.attachingRate != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !attachingRate.equals( other.attachingRate ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public double getMotoPremiumPresentMonth() | ||||
|     { | ||||
|         return motoPremiumPresentMonth; | ||||
|     } | ||||
|  | ||||
|     public void setMotoPremiumPresentMonth( double motoPremiumPresentMonth ) | ||||
|     { | ||||
|         this.motoPremiumPresentMonth = motoPremiumPresentMonth; | ||||
|     } | ||||
|  | ||||
|     public String getCallerCode() | ||||
|     { | ||||
|         return callerCode; | ||||
| @@ -187,21 +316,4 @@ public class CallerArchievement | ||||
|     { | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     @JsonProperty( "caller_code" ) | ||||
|     private String callerCode; | ||||
|  | ||||
|     @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; // 车非渗透率 | ||||
| } | ||||
|   | ||||
| @@ -0,0 +1,535 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-08 15:02:15 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/utils/data/ImportBIExcelData.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.time.LocalDate; | ||||
| 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.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.utils.poi.MyPOIUtils; | ||||
|  | ||||
| /** | ||||
|  * 坐席业绩相关的数据操作方法。 | ||||
|  */ | ||||
| public final class ImportBIExcelData | ||||
| { | ||||
|     private static Logger logger = LoggerFactory.getLogger( ImportBIExcelData.class ); | ||||
|  | ||||
|     private static String[] TelsalerAttachingRateExcelTitle = new String[] | ||||
|     { "部门", "经办", "车险保费(万)", "车险保费占比", "非车保费(万)", "当月保费渗透率", "保费渗透率环比上月", "当月客户渗透率", "客户渗透率环比上月", | ||||
|             "当月车非客均保费", "客均保费环比上月"}; | ||||
|  | ||||
|     private static String[] TelSalerRenewalRateExcelTitle = new String[] | ||||
|     { "责任部门", "责任人", "机构目标值1(%)", "到期数-全月", "序时到期数占比(%)", "个车续保率(序时)(%)", "个车续保率(全月)(%)", "环比昨日(%)", | ||||
|             "环比上月(%)", "平均提前签单天数", "环比"}; | ||||
|  | ||||
|     private static String[] DepartmentAttachingRateExcelTitle = new String[] | ||||
|     { "部门", "目标值-机构", "目标差距", "车险保费(万)", "车险保费占比", "非车保费(万)", "当月保费渗透率", "保费渗透率环比上月", "车险客户数", "当月客户渗透率", | ||||
|             "客户渗透率环比上月", "当月车非客均保费", "客均保费环比上月"}; | ||||
|  | ||||
|     private static String[] DepartmentRenewalRateExcelTitle = new String[] | ||||
|     { "责任部门", "机构目标值1(%)", "到期数-全月", "序时到期数占比(%)", "个车续保率(序时)(%)", "个车续保率(全月)(%)", "环比昨日(%)", | ||||
|             "环比上月(%)", "平均提前签单天数", "环比",}; | ||||
|  | ||||
|     /** | ||||
|      * 用于通过对比标题行判断excel文件格式的函数。 | ||||
|      * @param sheet | ||||
|      * @param caption 标题行文字 | ||||
|      * @param captionRowIndex 标题行索引 | ||||
|      * @param title 字段行文字数组 | ||||
|      * @param titleRowIndex 字段行索引 | ||||
|      * @return 返回判断结果 | ||||
|      */ | ||||
|     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; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 从excel文件读取坐席的车非渗透率数据 | ||||
|      * @param filePath 文件路径 | ||||
|      * @param SheetIndex sheet索引 | ||||
|      * @param firstRow 数据起始行 | ||||
|      * @return 返回一个ArrayList保存的TelsalerAttachingRateRecord记录数组。 | ||||
|      * @throws IOException 打开excel文件错误时抛出。 | ||||
|      * @throws InvalidFormatException excel单元格格式错误时抛出 | ||||
|      */ | ||||
|     public static ArrayList<BITelsalerAttachingRateRecord> importBITelsalerAttachingRateRecordFromXlsx( | ||||
|             String filePath, int SheetIndex, int firstRow ) | ||||
|             throws IOException, InvalidFormatException | ||||
|     { | ||||
|         ArrayList<BITelsalerAttachingRateRecord> records = new ArrayList<>( 200 ); | ||||
|  | ||||
|         Workbook wb = null; | ||||
|         Sheet sheet = null; | ||||
|         String name = null; | ||||
|         String departmentName = null; | ||||
|         String departmentCurrentRow = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             wb = WorkbookFactory.create( new File( filePath ) ); | ||||
|             sheet = wb.getSheetAt( SheetIndex ); | ||||
|  | ||||
|             // 先验证格式,不对就抛出错误 | ||||
|             if ( !checkExcelFormat( sheet, null, 0, TelsalerAttachingRateExcelTitle, 0 ) ) | ||||
|             { | ||||
|                 throw new InvalidFormatException( "Excel文件格式错误,请检查报表内容!" ); | ||||
|             } | ||||
|  | ||||
|             for ( Row row : sheet ) | ||||
|             { | ||||
|  | ||||
|                 int rowIndex = row.getRowNum(); | ||||
|  | ||||
|                 // 从数据行开始 | ||||
|                 if ( row.getRowNum() < firstRow ) | ||||
|                 { | ||||
|                     continue; | ||||
|                 } | ||||
|  | ||||
|                 try | ||||
|                 { | ||||
|                     // 部门 | ||||
|                     try | ||||
|                     { | ||||
|                         departmentCurrentRow = MyPOIUtils.getStringCellValue( row, 0 ); | ||||
|  | ||||
|                         // 因为是合并列,所以要判断一下是不是空的 | ||||
|                         if ( !departmentCurrentRow.equals( "" ) | ||||
|                                 && !departmentCurrentRow.equals( "合计" ) ) | ||||
|                         { | ||||
|                             // 不是空的,也不是合计,说明是新部门的数据,更新部门名称 | ||||
|                             departmentName = departmentCurrentRow; | ||||
|                         } | ||||
|                     } | ||||
|                     catch ( NullPointerException error ) | ||||
|                     { | ||||
|                         // cell是空的,说明还是上一行的部门 | ||||
|                     } | ||||
|  | ||||
|                     // 坐席名称 | ||||
|                     name = MyPOIUtils.getStringCellValue( row, 1 ); | ||||
|  | ||||
|                     // 忽略坐席名称为空的行 | ||||
|                     if ( name.equals( "全流程" ) || name.equals( "其他" ) || name.isEmpty() ) | ||||
|                     { | ||||
|                         continue; | ||||
|                     } | ||||
|  | ||||
|                     // 车险保费 | ||||
|                     double motoPremium = MyPOIUtils.getNumbericCellValue( row, 2 ); | ||||
|                     // 非车险保费 | ||||
|                     double nomotoPremium = MyPOIUtils.getNumbericCellValue( row, 4 ); | ||||
|                     // 车险保费占比 | ||||
|                     double motoPremiumProPortion = MyPOIUtils.getNumbericCellValue( row, 3 ) * 100; | ||||
|                     // 当月保费渗透率 | ||||
|                     double attachingRate = MyPOIUtils.getNumbericCellValue( row, 5 ) * 100; | ||||
|                     // 保费渗透率环比上月 | ||||
|                     double attachingRateChange = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100; | ||||
|                     // 当月客户渗透率 | ||||
|                     double customerHandleRateCell = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100; | ||||
|                     // 客户渗透率环比上月 | ||||
|                     double customerHandleRateChangeCell = | ||||
|                             MyPOIUtils.getNumbericCellValue( row, 8 ) * 100; | ||||
|                     // 当月车非客均保费 | ||||
|                     double noMotoPremiumPerCustomerCell = | ||||
|                             MyPOIUtils.getNumbericCellValue( row, 9 ) * 100; | ||||
|                     // 客均保费环比上月 | ||||
|                     double noMotoPremiumPerCustomerChangeCell = | ||||
|                             MyPOIUtils.getNumbericCellValue( row, 10 ) * 100; | ||||
|  | ||||
|                     BITelsalerAttachingRateRecord record = new BITelsalerAttachingRateRecord( | ||||
|                             departmentName, LocalDate.now(), name, motoPremium, nomotoPremium, | ||||
|                             motoPremiumProPortion, attachingRate, attachingRateChange, | ||||
|                             customerHandleRateCell, customerHandleRateChangeCell, | ||||
|                             noMotoPremiumPerCustomerCell, noMotoPremiumPerCustomerChangeCell ); | ||||
|  | ||||
|                     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; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 从excel文件读取坐席的车非渗透率数据。 | ||||
|      * @param filePath | ||||
|      * @param hasCaptionRow | ||||
|      * @param summaryDate | ||||
|      * @return | ||||
|      */ | ||||
|     public static ArrayList<BITelsalerRenewalRateRecord> importBITelsalerRenewalRateFromXlsx( | ||||
|             String filePath, int sheetIndex, int firstRow ) | ||||
|             throws IOException, InvalidFormatException | ||||
|     { | ||||
|         ArrayList<BITelsalerRenewalRateRecord> records = new ArrayList<>( 200 ); | ||||
|  | ||||
|         Workbook wb = null; | ||||
|         Sheet sheet = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             wb = WorkbookFactory.create( new File( filePath ) ); | ||||
|             sheet = wb.getSheetAt( sheetIndex ); | ||||
|             int rowIndex = 0; | ||||
|             String 责任部门 = null; | ||||
|             String 当前行责任部门 = null; | ||||
|             String 责任人 = null; | ||||
|  | ||||
|             if ( !checkExcelFormat( sheet, null, 0, TelSalerRenewalRateExcelTitle, 0 ) ) | ||||
|             { | ||||
|                 throw new InvalidFormatException( "格式错误,请检查报表内容!" ); | ||||
|             } | ||||
|  | ||||
|             for ( Row row : sheet ) | ||||
|             { | ||||
|                 rowIndex = row.getRowNum(); | ||||
|  | ||||
|                 // 从数据行开始 | ||||
|                 if ( row.getRowNum() < firstRow ) | ||||
|                 { | ||||
|                     continue; | ||||
|                 } | ||||
|  | ||||
|                 try | ||||
|                 { | ||||
|                     // 处理责任部门列 | ||||
|                     // 如果读取到的当前行责任部门不为空且与前一行责任部门不同,说明是另一个部门的数据 | ||||
|                     try | ||||
|                     { | ||||
|                         当前行责任部门 = MyPOIUtils.getStringCellValue( row, 0 ); | ||||
|  | ||||
|                         if ( !当前行责任部门.isEmpty() && !当前行责任部门.equals( 责任部门 ) ) | ||||
|                         { | ||||
|                             责任部门 = 当前行责任部门; | ||||
|                         } | ||||
|                     } | ||||
|                     catch ( NullPointerException error ) | ||||
|                     { | ||||
|                     } | ||||
|  | ||||
|                     // 判断责任人,如果是空值,就跳过此行 | ||||
|                     责任人 = MyPOIUtils.getStringCellValue( row, 1 ); | ||||
|  | ||||
|                     if ( 责任人.isEmpty() == true ) | ||||
|                     { | ||||
|                         continue; | ||||
|                     } | ||||
|  | ||||
|                     double 机构目标值 = MyPOIUtils.getNumbericCellValue( row, 2 ) * 100; | ||||
|                     double 到期数全月 = MyPOIUtils.getNumbericCellValue( row, 3 ); | ||||
|                     double 序时到期数占比 = MyPOIUtils.getNumbericCellValue( row, 4 ) * 100; | ||||
|                     double 个车续保率序时 = MyPOIUtils.getNumbericCellValue( row, 5 ) * 100; | ||||
|                     double 个车续保率全月 = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100; | ||||
|                     double 环比昨日 = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100; | ||||
|                     double 环比上月 = MyPOIUtils.getNumbericCellValue( row, 8 ) * 100; | ||||
|                     double 平均提前签单天数 = MyPOIUtils.getNumbericCellValue( row, 9 ); | ||||
|                     double 环比 = MyPOIUtils.getNumbericCellValue( row, 10 ); | ||||
|  | ||||
|                     BITelsalerRenewalRateRecord record = new BITelsalerRenewalRateRecord( 责任部门, 责任人, | ||||
|                             机构目标值, 到期数全月, 序时到期数占比, 个车续保率序时, 个车续保率全月, 环比昨日, 环比上月, 平均提前签单天数, 环比 ); | ||||
|  | ||||
|                     records.add( record ); | ||||
|                 } | ||||
|                 catch ( NullPointerException error ) | ||||
|                 { | ||||
|                     String message = "第" + String.valueOf( rowIndex ) + "行出现NullPointerException异常"; | ||||
|  | ||||
|                     logger.error( message, error ); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         finally | ||||
|         { | ||||
|             try | ||||
|             { | ||||
|                 if ( wb != null ) | ||||
|                 { | ||||
|                     wb.close(); | ||||
|                 } | ||||
|             } | ||||
|             catch ( Exception error ) | ||||
|             { | ||||
|                 error.printStackTrace(); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         return records; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 读取BI机构当月个车续保率跟踪表 | ||||
|      * @param filePath | ||||
|      * @param sheetIndex | ||||
|      * @param firstRow | ||||
|      * @return | ||||
|      * @throws IOException | ||||
|      * @throws InvalidFormatException | ||||
|      */ | ||||
|     public static ArrayList<BIDepartmentAttachingRateRecord> importBIDepartmentAttachingRateRecordsFromXlsx( | ||||
|             String filePath, int sheetIndex, int firstRow ) | ||||
|             throws IOException, InvalidFormatException | ||||
|     { | ||||
|         ArrayList<BIDepartmentAttachingRateRecord> records = new ArrayList<>( 5 ); | ||||
|  | ||||
|         Workbook wb = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             wb = WorkbookFactory.create( new File( filePath ) ); | ||||
|  | ||||
|             Sheet sheet = wb.getSheetAt( sheetIndex ); | ||||
|             int rowIndex = 0; | ||||
|  | ||||
|             if ( !checkExcelFormat( sheet, null, 0, DepartmentAttachingRateExcelTitle, 0 ) ) | ||||
|             { | ||||
|                 throw new InvalidFormatException( "Excel文件格式错误,请检查报表内容!" ); | ||||
|             } | ||||
|  | ||||
|             for ( Row row : sheet ) | ||||
|             { | ||||
|                 rowIndex = row.getRowNum(); | ||||
|  | ||||
|                 // 从数据行开始 | ||||
|                 if ( row.getRowNum() < firstRow ) | ||||
|                 { | ||||
|                     continue; | ||||
|                 } | ||||
|  | ||||
|                 try | ||||
|                 { | ||||
|                     String departmentName = MyPOIUtils.getStringCellValue( row, 0 ); | ||||
|  | ||||
|                     if ( departmentName.isEmpty() || departmentName.equals( "合计" ) ) | ||||
|                     { | ||||
|                         continue; | ||||
|                     } | ||||
|  | ||||
|                     double departmentObject = MyPOIUtils.getNumbericCellValue( row, 1 ) * 100; | ||||
|                     double objectGap = MyPOIUtils.getNumbericCellValue( row, 2 ) * 100; | ||||
|                     double motoPremium = MyPOIUtils.getNumbericCellValue( row, 3 ); | ||||
|                     double motoPremiumProPortion = MyPOIUtils.getNumbericCellValue( row, 4 ) * 100; | ||||
|                     double nomotoPremium = MyPOIUtils.getNumbericCellValue( row, 5 ); | ||||
|                     double attachingRate = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100; | ||||
|                     double attachingRateChange = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100; | ||||
|                     int motoInsuranceCustomerCount = (int)MyPOIUtils.getNumbericCellValue( row, 8 ); | ||||
|                     double customerHandleRate = MyPOIUtils.getNumbericCellValue( row, 9 ) * 100; | ||||
|                     double customerHandleRateChange = | ||||
|                             MyPOIUtils.getNumbericCellValue( row, 10 ) * 100; | ||||
|                     double premiumPerCustomer = MyPOIUtils.getNumbericCellValue( row, 11 ) * 100; | ||||
|                     double premiumPerCustomerChange = | ||||
|                             MyPOIUtils.getNumbericCellValue( row, 12 ) * 100; | ||||
|  | ||||
|                     BIDepartmentAttachingRateRecord record = new BIDepartmentAttachingRateRecord( | ||||
|                             departmentName, departmentObject, objectGap, motoPremium, | ||||
|                             motoPremiumProPortion, nomotoPremium, attachingRate, | ||||
|                             attachingRateChange, motoInsuranceCustomerCount, customerHandleRate, customerHandleRateChange, | ||||
|                             premiumPerCustomer, premiumPerCustomerChange ); | ||||
|  | ||||
|                     records.add( record ); | ||||
|                 } | ||||
|                 catch ( NullPointerException error ) | ||||
|                 { | ||||
|                     String message = "第" + String.valueOf( rowIndex ) + "行出现NullPointerException异常"; | ||||
|  | ||||
|                     logger.error( message, error ); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         finally | ||||
|         { | ||||
|             try | ||||
|             { | ||||
|                 if ( wb != null ) | ||||
|                 { | ||||
|                     wb.close(); | ||||
|                 } | ||||
|             } | ||||
|             catch ( Exception error ) | ||||
|             { | ||||
|                 String message = "关闭" + filePath + "时出现异常!"; | ||||
|  | ||||
|                 logger.error( message, error ); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         return records; | ||||
|     } | ||||
|  | ||||
|     public static ArrayList<BIDepartmentRenewalRateRecord> importBIDepartmentRenewalRateRecordsFromXlsx( | ||||
|             String filePath, int sheetIndex, int firstRow ) | ||||
|             throws IOException, InvalidFormatException | ||||
|     { | ||||
|         ArrayList<BIDepartmentRenewalRateRecord> records = new ArrayList<>( 20 ); | ||||
|  | ||||
|         Workbook wb = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             wb = WorkbookFactory.create( new File( filePath ) ); | ||||
|  | ||||
|             Sheet sheet = wb.getSheetAt( sheetIndex ); | ||||
|             int rowIndex = 0; | ||||
|  | ||||
|             if ( !checkExcelFormat( sheet, null, 0, DepartmentRenewalRateExcelTitle, 0 ) ) | ||||
|             { | ||||
|                 throw new InvalidFormatException( "Excel文件格式错误,请检查报表内容!" ); | ||||
|             } | ||||
|  | ||||
|             for ( Row row : sheet ) | ||||
|             { | ||||
|                 rowIndex = row.getRowNum(); | ||||
|  | ||||
|                 if ( rowIndex < firstRow ) | ||||
|                 { | ||||
|                     continue; | ||||
|                 } | ||||
|  | ||||
|                 try | ||||
|                 { | ||||
|                     String 责任部门 = MyPOIUtils.getStringCellValue( row, 0 ); | ||||
|  | ||||
|                     // 部门为空或者是合计行,就跳过 | ||||
|                     if ( 责任部门.isEmpty() || 责任部门.equals( "合计" ) ) | ||||
|                     { | ||||
|                         continue; | ||||
|                     } | ||||
|  | ||||
|                     double 机构目标值 = MyPOIUtils.getNumbericCellValue( row, 1 ) * 100; | ||||
|                     int 到期数全月 = (int) MyPOIUtils.getNumbericCellValue( row, 2 ); | ||||
|                     double 序时到期数占比 = MyPOIUtils.getNumbericCellValue( row, 3 ) * 100; | ||||
|                     double 个车续保率序时 = MyPOIUtils.getNumbericCellValue( row, 4 ) * 100; | ||||
|                     double 个车续保率全月 = MyPOIUtils.getNumbericCellValue( row, 5 ) * 100; | ||||
|                     double 环比昨日 = MyPOIUtils.getNumbericCellValue( row, 6 ) * 100; | ||||
|                     double 环比上月 = MyPOIUtils.getNumbericCellValue( row, 7 ) * 100; | ||||
|                     int 平均提前签单天数 = (int) MyPOIUtils.getNumbericCellValue( row, 8 ); | ||||
|                     double 环比 = MyPOIUtils.getNumbericCellValue( row, 9 ) * 100; | ||||
|  | ||||
|                     BIDepartmentRenewalRateRecord record = new BIDepartmentRenewalRateRecord( 责任部门, | ||||
|                             机构目标值, 到期数全月, 序时到期数占比, 个车续保率序时, 个车续保率全月, 环比昨日, 环比上月, 平均提前签单天数, 环比 ); | ||||
|  | ||||
|                     records.add( record ); | ||||
|                 } | ||||
|                 catch ( NullPointerException error ) | ||||
|                 { | ||||
|                     String message = "第" + String.valueOf( rowIndex ) + "行出现NullPointerException异常"; | ||||
|  | ||||
|                     logger.error( message, error ); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         finally | ||||
|         { | ||||
|             if ( wb != null ) | ||||
|             { | ||||
|                 try | ||||
|                 { | ||||
|                     wb.close(); | ||||
|                 } | ||||
|                 catch ( Exception error ) | ||||
|                 { | ||||
|                     error.printStackTrace(); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         return records; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,64 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-07 23:17:13 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/utils/data/TelsalerData.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.ss.usermodel.Workbook; | ||||
| import org.apache.poi.ss.usermodel.WorkbookFactory; | ||||
| import com.cpic.xim.mybatis.pojo.TelsalerFromJYGL; | ||||
|  | ||||
| public class TelsalerData | ||||
| { | ||||
|     /** | ||||
|      * | ||||
|      * @param filePath Xlsx文件路径。 | ||||
|      * @return  | ||||
|      */ | ||||
|     public static ArrayList<TelsalerFromJYGL> importTelsalersFromXlsx( String filePath ) | ||||
|     { | ||||
|         ArrayList<TelsalerFromJYGL> telsalers = new ArrayList<>(); | ||||
|  | ||||
|         Workbook wb = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             wb = WorkbookFactory.create( new File( filePath ) ); | ||||
|         } | ||||
|         catch ( IOException error ) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|         finally | ||||
|         { | ||||
|             try | ||||
|             { | ||||
|                 if ( wb != null ) | ||||
|                 { | ||||
|                     wb.close(); | ||||
|                 } | ||||
|             } | ||||
|             catch ( IOException error ) | ||||
|             { | ||||
|                 error.printStackTrace(); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         return telsalers; | ||||
|     } | ||||
|  | ||||
|     public static int importTelsalers( ArrayList<TelsalerFromJYGL> telsalers ) | ||||
|     { | ||||
|         int importedCount = 0; | ||||
|  | ||||
|         return importedCount; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,76 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-08 22:12:05 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/utils/poi/MyPOIUtils.java | ||||
|  * @Description: POI相关的工具 | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.utils.poi; | ||||
|  | ||||
| import org.apache.poi.ss.usermodel.Cell; | ||||
| import org.apache.poi.ss.usermodel.Row; | ||||
| import org.apache.poi.ss.usermodel.Row.MissingCellPolicy; | ||||
|  | ||||
| public class MyPOIUtils | ||||
| { | ||||
|     public static String getStringCellValue( Cell cell ) | ||||
|     { | ||||
|         switch( cell.getCellType() ) | ||||
|         { | ||||
|             case STRING: | ||||
|                 return cell.getStringCellValue(); | ||||
|             default: | ||||
|                 return ""; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public static String getStringCellValue( Row row, int columnIndex ) | ||||
|     { | ||||
|         Cell cell = row.getCell(columnIndex, MissingCellPolicy.RETURN_NULL_AND_BLANK); | ||||
|  | ||||
|         switch( cell.getCellType() ) | ||||
|         { | ||||
|             case STRING: | ||||
|                 return cell.getStringCellValue(); | ||||
|             default: | ||||
|                 return ""; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public static double getNumbericCellValue( Cell cell ) | ||||
|     { | ||||
|         double value = 0.0; | ||||
|  | ||||
|         switch ( cell.getCellType() ) | ||||
|         { | ||||
|             case NUMERIC: | ||||
|                 value = cell.getNumericCellValue(); | ||||
|                 break; | ||||
|             default: | ||||
|                 value = 0.0; | ||||
|                 break; | ||||
|         } | ||||
|  | ||||
|         return value; | ||||
|     } | ||||
|  | ||||
|     public static double getNumbericCellValue( Row row, int columnIndex ) | ||||
|     { | ||||
|         double value = 0.0; | ||||
|         Cell cell = row.getCell( columnIndex, MissingCellPolicy.RETURN_NULL_AND_BLANK ); | ||||
|          | ||||
|         switch ( cell.getCellType() ) | ||||
|         { | ||||
|             case NUMERIC: | ||||
|                 value = cell.getNumericCellValue(); | ||||
|                 break; | ||||
|             default: | ||||
|                 value = 0.0; | ||||
|                 break; | ||||
|         } | ||||
|  | ||||
|         return value; | ||||
|     } | ||||
| } | ||||
| @@ -2,7 +2,7 @@ | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-04-05 22:34:36 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/QueryResult.java | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/QueryResponse.java | ||||
|  * @Description: | ||||
|  * | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved. | ||||
| @@ -11,36 +11,49 @@ package com.cpic.xim.web.controllers; | ||||
|  | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| public class QueryResponse { | ||||
| public class QueryResponse | ||||
| { | ||||
|     @JsonProperty( "success" ) | ||||
|     private boolean success; | ||||
|  | ||||
|     public QueryResponse(boolean success, String message) { | ||||
|     @JsonProperty( "message" ) | ||||
|     private String  message; | ||||
|  | ||||
|     public QueryResponse( boolean success, String message ) | ||||
|     { | ||||
|         this.success = success; | ||||
|         this.message = message; | ||||
|     } | ||||
|  | ||||
|     public QueryResponse() { | ||||
|     public QueryResponse() | ||||
|     { | ||||
|         this.success = false; | ||||
|         this.message = ""; | ||||
|     } | ||||
|  | ||||
|     public boolean isSuccess() { | ||||
|     public boolean isSuccess() | ||||
|     { | ||||
|         return success; | ||||
|     } | ||||
|  | ||||
|     public void setSuccess(boolean success) { | ||||
|     public void setSuccess( boolean success ) | ||||
|     { | ||||
|         this.success = success; | ||||
|     } | ||||
|  | ||||
|     public String getMessage() { | ||||
|     public String getMessage() | ||||
|     { | ||||
|         return message; | ||||
|     } | ||||
|  | ||||
|     public void setMessage(String message) { | ||||
|     public void setMessage( String message ) | ||||
|     { | ||||
|         this.message = message; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() { | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + (success ? 1231 : 1237); | ||||
| @@ -49,26 +62,30 @@ public class QueryResponse { | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean equals(Object obj) { | ||||
|         if (this == obj) return true; | ||||
|         if (obj == null) return false; | ||||
|         if (getClass() != obj.getClass()) return false; | ||||
|     public boolean equals( Object obj ) | ||||
|     { | ||||
|         if ( this == obj ) | ||||
|             return true; | ||||
|         if ( obj == null ) | ||||
|             return false; | ||||
|         if ( getClass() != obj.getClass() ) | ||||
|             return false; | ||||
|         QueryResponse other = (QueryResponse) obj; | ||||
|         if (success != other.success) return false; | ||||
|         if (message == null) { | ||||
|             if (other.message != null) return false; | ||||
|         } else if (!message.equals(other.message)) return false; | ||||
|         if ( success != other.success ) | ||||
|             return false; | ||||
|         if ( message == null ) | ||||
|         { | ||||
|             if ( other.message != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !message.equals( other.message ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|     public String toString() | ||||
|     { | ||||
|         return "QueryResult [success=" + success + ", message=" + message + "]"; | ||||
|     } | ||||
|  | ||||
|     @JsonProperty("success") | ||||
|     private boolean success; | ||||
|  | ||||
|     @JsonProperty("message") | ||||
|     private String message; | ||||
| } | ||||
|   | ||||
| @@ -29,7 +29,7 @@ import com.cpic.xim.utils.ranking.CallerRankingList; | ||||
| import com.cpic.xim.web.controllers.archievement.RankingList.RankingListRequest; | ||||
| import com.cpic.xim.web.controllers.archievement.RankingList.RankingListResponse; | ||||
| import com.cpic.xim.web.controllers.archievement.caller.CallerArchievementQueryRequest; | ||||
| import com.cpic.xim.web.controllers.archievement.caller.CallerArchievementQueryResult; | ||||
| import com.cpic.xim.web.controllers.archievement.caller.CallerArchievementQueryResponse; | ||||
| import com.cpic.xim.web.controllers.archievement.department.DepartmentArchievementQueryRequest; | ||||
| import com.cpic.xim.web.controllers.archievement.department.DepartmentArchievementQueryResult; | ||||
|  | ||||
| @@ -71,10 +71,10 @@ public class ArchievementQueryController | ||||
|             result.setTotalArchievement( departmentArch.getTotalArchievement() ); | ||||
|             result.setInsuranceRenewalRate( departmentArch.getInsuranceRenewalRate() ); | ||||
|             result.setAttachingRate( departmentArch.getAttachingRate() ); | ||||
|             result.addAdvanceRewardGainer( "沈群" ); | ||||
|             result.addLeadingRewardGainer( "王鸿津" ); | ||||
|             result.addLeadingRewardGainer( "林宗泽" ); | ||||
|             result.addBackwardStaff( "王炜" ); | ||||
|             // result.addAdvanceRewardGainer( "沈群" ); | ||||
|             // result.addLeadingRewardGainer( "王鸿津" ); | ||||
|             // result.addLeadingRewardGainer( "林宗泽" ); | ||||
|             // result.addBackwardStaff( "王炜" ); | ||||
|             result.setMensualArchievementList( departmentArch.getMensualArchievementList() ); | ||||
|         } | ||||
|         catch ( IOException error ) | ||||
| @@ -90,24 +90,24 @@ public class ArchievementQueryController | ||||
|  | ||||
|     @ResponseBody | ||||
|     @PostMapping( "/query_caller_archievement.do" ) | ||||
|     public CallerArchievementQueryResult queryCallerArchievement( | ||||
|     public CallerArchievementQueryResponse queryCallerArchievement( | ||||
|             @RequestBody CallerArchievementQueryRequest request ) | ||||
|     { | ||||
|         CallerArchievementQueryResult result = null; | ||||
|         CallerArchievementQueryResponse result = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             CallerArchievement archievement = | ||||
|                     CallerArchievement.getCallerArchievement( request.getCallerCode() ); | ||||
|  | ||||
|             result = new CallerArchievementQueryResult( true, "查询成功", archievement.getCallerCode(), | ||||
|                     request.getCallName(), archievement.getTotalArchievement(), | ||||
|             result = new CallerArchievementQueryResponse( true, "查询成功", archievement.getCallerCode(), | ||||
|                     request.getCallName(), archievement.getTotalArchievement(), archievement.getMotoPremiumPresentMonth(), | ||||
|                     archievement.getMensualArchievementList(), | ||||
|                     archievement.getInsuranceRenewalRate(), archievement.getAttachingRate() ); | ||||
|         } | ||||
|         catch ( IOException error ) | ||||
|         { | ||||
|             result = new CallerArchievementQueryResult(false, error.getMessage(), null, null, 0, null, null, null); | ||||
|             result = new CallerArchievementQueryResponse(false, error.getMessage(), null, null, 0, 0, null, null, null); | ||||
|         } | ||||
|  | ||||
|         return result; | ||||
|   | ||||
| @@ -0,0 +1,222 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-06-06 17:35:54 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/caller/CallerArchievementQueryResponse.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.archievement.caller; | ||||
|  | ||||
| import com.cpic.xim.mybatis.pojo.MensualArchievementItem; | ||||
| import com.cpic.xim.web.controllers.QueryResponse; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
| import java.util.ArrayList; | ||||
|  | ||||
| public class CallerArchievementQueryResponse extends QueryResponse | ||||
| { | ||||
|     @JsonProperty("callerCode") | ||||
|     String callerCode; | ||||
|  | ||||
|     @JsonProperty("callerName") | ||||
|     String callerName; | ||||
|  | ||||
|     @JsonProperty( "total_archievement" ) | ||||
|     private long totalArchievement; // 总业绩 | ||||
|  | ||||
|     @JsonProperty( "motoPremiumPresentMonth" ) | ||||
|     private double motoPremiumPresentMonth; // 当月车险保费 | ||||
|  | ||||
|     // 每月业绩列表 | ||||
|     // 要保证数据是按照月份排序。 | ||||
|     @JsonProperty( "mensual_archievement_list" ) | ||||
|     private ArrayList<MensualArchievementItem> mensualArchievementList; | ||||
|  | ||||
|     @JsonProperty( "insurance_renewal_rate" ) | ||||
|     private String insuranceRenewalRate; // 续保率 | ||||
|  | ||||
|     @JsonProperty( "attaching_rate" ) | ||||
|     private String attachingRate; // 车非渗透率 | ||||
|  | ||||
|     public CallerArchievementQueryResponse( boolean success, String message, String callerCode, | ||||
|             String callerName, long totalArchievement, double motoPremiumPresentMonth, | ||||
|             ArrayList<MensualArchievementItem> mensualArchievementList, String insuranceRenewalRate, | ||||
|             String attachingRate ) | ||||
|     { | ||||
|         super( success, message ); | ||||
|         this.callerCode = callerCode; | ||||
|         this.callerName = callerName; | ||||
|         this.totalArchievement = totalArchievement; | ||||
|         this.motoPremiumPresentMonth = motoPremiumPresentMonth; | ||||
|         this.mensualArchievementList = mensualArchievementList; | ||||
|         this.insuranceRenewalRate = insuranceRenewalRate; | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     public CallerArchievementQueryResponse( String callerCode, String callerName, | ||||
|             long totalArchievement, double motoPremiumPresentMonth, | ||||
|             ArrayList<MensualArchievementItem> mensualArchievementList, String insuranceRenewalRate, | ||||
|             String attachingRate ) | ||||
|     { | ||||
|         this.callerCode = callerCode; | ||||
|         this.callerName = callerName; | ||||
|         this.totalArchievement = totalArchievement; | ||||
|         this.motoPremiumPresentMonth = motoPremiumPresentMonth; | ||||
|         this.mensualArchievementList = mensualArchievementList; | ||||
|         this.insuranceRenewalRate = insuranceRenewalRate; | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "CallerArchievementQueryResponse [callerCode=" + callerCode + ", callerName=" | ||||
|                 + callerName + ", totalArchievement=" + totalArchievement | ||||
|                 + ", motoPremiumPresentMonth=" + motoPremiumPresentMonth | ||||
|                 + ", mensualArchievementList=" + mensualArchievementList + ", insuranceRenewalRate=" | ||||
|                 + insuranceRenewalRate + ", attachingRate=" + attachingRate + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = super.hashCode(); | ||||
|         result = prime * result + ((callerCode == null) ? 0 : callerCode.hashCode()); | ||||
|         result = prime * result + ((callerName == null) ? 0 : callerName.hashCode()); | ||||
|         result = prime * result + (int) (totalArchievement ^ (totalArchievement >>> 32)); | ||||
|         long temp; | ||||
|         temp = Double.doubleToLongBits( motoPremiumPresentMonth ); | ||||
|         result = prime * result + (int) (temp ^ (temp >>> 32)); | ||||
|         result = prime * result | ||||
|                 + ((mensualArchievementList == null) ? 0 : mensualArchievementList.hashCode()); | ||||
|         result = prime * result | ||||
|                 + ((insuranceRenewalRate == null) ? 0 : insuranceRenewalRate.hashCode()); | ||||
|         result = prime * result + ((attachingRate == null) ? 0 : attachingRate.hashCode()); | ||||
|         return result; | ||||
|     } | ||||
|  | ||||
|     public void setMotoPremiumPresentMonth( double motoPremiumPresentMonth ) | ||||
|     { | ||||
|         this.motoPremiumPresentMonth = motoPremiumPresentMonth; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean equals( Object obj ) | ||||
|     { | ||||
|         if ( this == obj ) | ||||
|             return true; | ||||
|         if ( !super.equals( obj ) ) | ||||
|             return false; | ||||
|         if ( getClass() != obj.getClass() ) | ||||
|             return false; | ||||
|         CallerArchievementQueryResponse other = (CallerArchievementQueryResponse) obj; | ||||
|         if ( callerCode == null ) | ||||
|         { | ||||
|             if ( other.callerCode != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !callerCode.equals( other.callerCode ) ) | ||||
|             return false; | ||||
|         if ( callerName == null ) | ||||
|         { | ||||
|             if ( other.callerName != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !callerName.equals( other.callerName ) ) | ||||
|             return false; | ||||
|         if ( totalArchievement != other.totalArchievement ) | ||||
|             return false; | ||||
|         if ( Double.doubleToLongBits( motoPremiumPresentMonth ) != Double | ||||
|                 .doubleToLongBits( other.motoPremiumPresentMonth ) ) | ||||
|             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 ( attachingRate == null ) | ||||
|         { | ||||
|             if ( other.attachingRate != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !attachingRate.equals( other.attachingRate ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public String getCallerCode() | ||||
|     { | ||||
|         return callerCode; | ||||
|     } | ||||
|  | ||||
|     public void setCallerCode( String callerCode ) | ||||
|     { | ||||
|         this.callerCode = callerCode; | ||||
|     } | ||||
|  | ||||
|     public String getCallerName() | ||||
|     { | ||||
|         return callerName; | ||||
|     } | ||||
|  | ||||
|     public void setCallerName( String callerName ) | ||||
|     { | ||||
|         this.callerName = callerName; | ||||
|     } | ||||
|  | ||||
|     public long getTotalArchievement() | ||||
|     { | ||||
|         return totalArchievement; | ||||
|     } | ||||
|  | ||||
|     public void setTotalArchievement( long totalArchievement ) | ||||
|     { | ||||
|         this.totalArchievement = totalArchievement; | ||||
|     } | ||||
|  | ||||
|     public ArrayList<MensualArchievementItem> getMensualArchievementList() | ||||
|     { | ||||
|         return mensualArchievementList; | ||||
|     } | ||||
|  | ||||
|     public void setMensualArchievementList( ArrayList<MensualArchievementItem> mensualArchievementList ) | ||||
|     { | ||||
|         this.mensualArchievementList = mensualArchievementList; | ||||
|     } | ||||
|  | ||||
|     public String getInsuranceRenewalRate() | ||||
|     { | ||||
|         return insuranceRenewalRate; | ||||
|     } | ||||
|  | ||||
|     public void setInsuranceRenewalRate( String insuranceRenewalRate ) | ||||
|     { | ||||
|         this.insuranceRenewalRate = insuranceRenewalRate; | ||||
|     } | ||||
|  | ||||
|     public String getAttachingRate() | ||||
|     { | ||||
|         return attachingRate; | ||||
|     } | ||||
|  | ||||
|     public void setAttachingRate( String attachingRate ) | ||||
|     { | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     public double getMotoPremiumPresentMonth() | ||||
|     { | ||||
|         return motoPremiumPresentMonth; | ||||
|     } | ||||
| } | ||||
| @@ -1,123 +0,0 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-06-06 17:35:54 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/archievement/caller/CallerArchievementQueryResult.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.archievement.caller; | ||||
|  | ||||
| import com.cpic.xim.mybatis.pojo.MensualArchievementItem; | ||||
| import com.cpic.xim.web.controllers.QueryResponse; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
| import java.util.ArrayList; | ||||
|  | ||||
| public class CallerArchievementQueryResult extends QueryResponse | ||||
| { | ||||
|     /** | ||||
|      *  | ||||
|      * @param success | ||||
|      * @param message | ||||
|      * @param callerCode | ||||
|      * @param callerName | ||||
|      * @param totalArchievement | ||||
|      * @param mensualArchievementList | ||||
|      * @param insuranceRenewalRate | ||||
|      * @param attachingRate | ||||
|      */ | ||||
|     public CallerArchievementQueryResult( boolean success, String message, String callerCode, | ||||
|             String callerName, long totalArchievement, | ||||
|             ArrayList<MensualArchievementItem> mensualArchievementList, String insuranceRenewalRate, | ||||
|             String attachingRate) | ||||
|     { | ||||
|         super( success, message ); | ||||
|         this.callerCode = callerCode; | ||||
|         this.callerName = callerName; | ||||
|         this.totalArchievement = totalArchievement; | ||||
|         this.mensualArchievementList = mensualArchievementList; | ||||
|         this.insuranceRenewalRate = insuranceRenewalRate; | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     @JsonProperty("callerCode") | ||||
|     String callerCode; | ||||
|  | ||||
|     public String getCallerCode() | ||||
|     { | ||||
|         return callerCode; | ||||
|     } | ||||
|  | ||||
|     public void setCallerCode( String callerCode ) | ||||
|     { | ||||
|         this.callerCode = callerCode; | ||||
|     } | ||||
|  | ||||
|     public String getCallerName() | ||||
|     { | ||||
|         return callerName; | ||||
|     } | ||||
|  | ||||
|     public void setCallerName( String callerName ) | ||||
|     { | ||||
|         this.callerName = callerName; | ||||
|     } | ||||
|  | ||||
|     public long getTotalArchievement() | ||||
|     { | ||||
|         return totalArchievement; | ||||
|     } | ||||
|  | ||||
|     public void setTotalArchievement( long totalArchievement ) | ||||
|     { | ||||
|         this.totalArchievement = totalArchievement; | ||||
|     } | ||||
|  | ||||
|     public ArrayList<MensualArchievementItem> getMensualArchievementList() | ||||
|     { | ||||
|         return mensualArchievementList; | ||||
|     } | ||||
|  | ||||
|     public void setMensualArchievementList( ArrayList<MensualArchievementItem> mensualArchievementList ) | ||||
|     { | ||||
|         this.mensualArchievementList = mensualArchievementList; | ||||
|     } | ||||
|  | ||||
|     public String getInsuranceRenewalRate() | ||||
|     { | ||||
|         return insuranceRenewalRate; | ||||
|     } | ||||
|  | ||||
|     public void setInsuranceRenewalRate( String insuranceRenewalRate ) | ||||
|     { | ||||
|         this.insuranceRenewalRate = insuranceRenewalRate; | ||||
|     } | ||||
|  | ||||
|     public String getAttachingRate() | ||||
|     { | ||||
|         return attachingRate; | ||||
|     } | ||||
|  | ||||
|     public void setAttachingRate( String attachingRate ) | ||||
|     { | ||||
|         this.attachingRate = attachingRate; | ||||
|     } | ||||
|  | ||||
|     @JsonProperty("callerName") | ||||
|     String callerName; | ||||
|  | ||||
|     @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; // 车非渗透率 | ||||
| } | ||||
| @@ -0,0 +1,31 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-06 00:34:15 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/dataimport/ImportController.java | ||||
|  * @Description: 导入相关的controller | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.dataimport; | ||||
|  | ||||
| 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.RequestParam; | ||||
| import org.springframework.web.bind.annotation.ResponseBody; | ||||
|  | ||||
| @Controller | ||||
| @RequestMapping( path = "/import", method = RequestMethod.POST ) | ||||
| public class ImportController | ||||
| { | ||||
|     @PostMapping( path = "/import_telsalers.do" ) | ||||
|     @ResponseBody | ||||
|     public ImportTelsalersResponse importTelsalers( @RequestParam ImportTelsalersRequest request ) | ||||
|     { | ||||
|         ImportTelsalersResponse response = new ImportTelsalersResponse(); | ||||
|  | ||||
|         return response; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,98 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-06 00:44:14 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/dataimport/ImportTelsalersRequest.java | ||||
|  * @Description: 导入作息列表请求。 | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.dataimport; | ||||
|  | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| public class ImportTelsalersRequest | ||||
| { | ||||
|     // 是否全量导入 | ||||
|     @JsonProperty( "fullImport" ) | ||||
|     private boolean fullImport; | ||||
|  | ||||
|     // 文件路径 | ||||
|     @JsonProperty( "filePath" ) | ||||
|     private String  filePath; | ||||
|  | ||||
|     /** | ||||
|      * 构造函数 | ||||
|      * @param fullImport 是否全量导入 | ||||
|      * @param filePath 文件路径 | ||||
|      */ | ||||
|     public ImportTelsalersRequest( boolean fullImport, String filePath ) | ||||
|     { | ||||
|         this.fullImport = fullImport; | ||||
|         this.filePath = filePath; | ||||
|     } | ||||
|  | ||||
|     public ImportTelsalersRequest() | ||||
|     { | ||||
|         this.fullImport = false; | ||||
|         this.filePath = ""; | ||||
|     } | ||||
|  | ||||
|     public boolean isFullImport() | ||||
|     { | ||||
|         return fullImport; | ||||
|     } | ||||
|  | ||||
|     public void setFullImport( boolean fullImport ) | ||||
|     { | ||||
|         this.fullImport = fullImport; | ||||
|     } | ||||
|  | ||||
|     public String getFilePath() | ||||
|     { | ||||
|         return filePath; | ||||
|     } | ||||
|  | ||||
|     public void setFilePath( String filePath ) | ||||
|     { | ||||
|         this.filePath = filePath; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "ImportTelsalersRequest [fullImport=" + fullImport + ", filePath=" + filePath + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + (fullImport ? 1231 : 1237); | ||||
|         result = prime * result + ((filePath == null) ? 0 : filePath.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; | ||||
|         ImportTelsalersRequest other = (ImportTelsalersRequest) obj; | ||||
|         if ( fullImport != other.fullImport ) | ||||
|             return false; | ||||
|         if ( filePath == null ) | ||||
|         { | ||||
|             if ( other.filePath != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !filePath.equals( other.filePath ) ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,74 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-06 01:30:29 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/dataimport/ImportTelsalersResponse.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.dataimport; | ||||
|  | ||||
| import com.cpic.xim.web.controllers.QueryResponse; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| public class ImportTelsalersResponse extends QueryResponse | ||||
| { | ||||
|     public ImportTelsalersResponse( boolean success, String message, int importedCount ) | ||||
|     { | ||||
|         super( success, message ); | ||||
|  | ||||
|         this.importedCount = importedCount; | ||||
|     } | ||||
|  | ||||
|     public ImportTelsalersResponse() | ||||
|     { | ||||
|         super(); | ||||
|  | ||||
|         importedCount = 0; | ||||
|     } | ||||
|  | ||||
|     public int getImportedCount() | ||||
|     { | ||||
|         return importedCount; | ||||
|     } | ||||
|  | ||||
|     public void setImportedCount( int importedCount ) | ||||
|     { | ||||
|         this.importedCount = importedCount; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "ImportTelsalersResponse [importedCount=" + importedCount + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = super.hashCode(); | ||||
|         result = prime * result + importedCount; | ||||
|         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; | ||||
|         ImportTelsalersResponse other = (ImportTelsalersResponse) obj; | ||||
|         if ( importedCount != other.importedCount ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     // 导入的结果数量 | ||||
|     @JsonProperty( "importedCount" ) | ||||
|     private int importedCount; | ||||
| } | ||||
| @@ -0,0 +1,257 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-12 00:34:39 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/dataimport/bi/ImportBIDataController.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.dataimport.bi; | ||||
|  | ||||
| import java.io.IOException; | ||||
| import java.time.LocalDate; | ||||
| import java.util.ArrayList; | ||||
| import org.apache.ibatis.exceptions.PersistenceException; | ||||
| import org.apache.ibatis.session.SqlSession; | ||||
| import org.apache.poi.openxml4j.exceptions.InvalidFormatException; | ||||
| import org.slf4j.Logger; | ||||
| import org.slf4j.LoggerFactory; | ||||
| import org.springframework.stereotype.Controller; | ||||
| import org.springframework.web.bind.annotation.RequestBody; | ||||
| 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.ImportBIArchievementDataMapper; | ||||
| 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; | ||||
| import com.cpic.xim.utils.data.ImportBIExcelData; | ||||
| import com.cpic.xim.web.controllers.dataimport.bi.ImportBIDataRequest.ReportType; | ||||
|  | ||||
| @Controller | ||||
| @RequestMapping( method = RequestMethod.POST, path = "/import_bi_data" ) | ||||
| public class ImportBIDataController | ||||
| { | ||||
|     private static Logger logger = LoggerFactory.getLogger( ImportBIDataRequest.class ); | ||||
|  | ||||
|     @RequestMapping( method = RequestMethod.POST, path = "/excel.do" ) | ||||
|     @ResponseBody | ||||
|     public static ImportBIDataResponse importBIData( @RequestBody ImportBIDataRequest request ) | ||||
|     { | ||||
|         ImportBIDataResponse response = new ImportBIDataResponse(); | ||||
|         String filePath = request.getFilePath(); | ||||
|         ReportType type = request.getReportType(); | ||||
|         int firstRow = request.getFirstRow(); | ||||
|         int sheetIndex = request.getSheetIndex(); | ||||
|         int importedCount = 0; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             if ( type == ReportType.TelsalerAttachingRateReport ) | ||||
|             { | ||||
|                 importedCount = importBITelsalerAttachingRate( filePath, sheetIndex, firstRow ); | ||||
|             } | ||||
|             else if ( type == ReportType.TelsalerRenewalRateReport ) | ||||
|             { | ||||
|                 importedCount = importBITeslsalerRenewalRate( filePath, sheetIndex, firstRow ); | ||||
|             } | ||||
|             else if ( type == ReportType.DepartmentAttachingRateReport ) | ||||
|             { | ||||
|                 importedCount = importBIDepartmentAttachingRate( filePath, sheetIndex, firstRow ); | ||||
|             } | ||||
|             else if ( type == ReportType.DepartmentRenewalRateReport ) | ||||
|             { | ||||
|                 importedCount = importBIDepartmentRenewalRate( filePath, sheetIndex, firstRow ); | ||||
|             } | ||||
|  | ||||
|             response.setImportedCount( importedCount ); | ||||
|             response.setSuccess( true ); | ||||
|             response.setMessage( "导入成功" ); | ||||
|         } | ||||
|         catch ( IOException error ) | ||||
|         { | ||||
|             String message = "加载文件错误,错误消息:" + error.getMessage(); | ||||
|             response.setSuccess( false ); | ||||
|             response.setMessage( message ); | ||||
|  | ||||
|             logger.error( message, error ); | ||||
|         } | ||||
|         catch ( InvalidFormatException error ) | ||||
|         { | ||||
|             String message = "Excel文件格式错误,错误消息:" + error.getMessage(); | ||||
|             response.setSuccess( false ); | ||||
|             response.setMessage( message ); | ||||
|  | ||||
|             logger.error( message, error ); | ||||
|         } | ||||
|         catch ( PersistenceException error ) | ||||
|         { | ||||
|             String message = "Mybatis执行错误,错误消息:" + error.getMessage(); | ||||
|             response.setSuccess( false ); | ||||
|             response.setMessage( message ); | ||||
|  | ||||
|             logger.error( message, error ); | ||||
|         } | ||||
|  | ||||
|         return response; | ||||
|     } | ||||
|  | ||||
|  | ||||
|     private static int importBITelsalerAttachingRate( String filePath, int sheetIndex, | ||||
|             int firstRow ) throws PersistenceException, IOException, InvalidFormatException | ||||
|     { | ||||
|         SqlSession session = null; | ||||
|         int importedCount = 0; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             ArrayList<BITelsalerAttachingRateRecord> records = ImportBIExcelData | ||||
|                     .importBITelsalerAttachingRateRecordFromXlsx( filePath, sheetIndex, firstRow ); | ||||
|  | ||||
|             session = MybatisUtils.getSqlSessionBatch(); | ||||
|             ImportBIArchievementDataMapper mapper = | ||||
|                     session.getMapper( ImportBIArchievementDataMapper.class ); | ||||
|  | ||||
|             mapper.cleanTelsalerAttachingRateData(); | ||||
|  | ||||
|             for ( BITelsalerAttachingRateRecord record : records ) | ||||
|             { | ||||
|                 mapper.insertTelsalerAttachingRateDataToDB( record ); | ||||
|                 importedCount++; | ||||
|             } | ||||
|  | ||||
|             session.commit(); | ||||
|         } | ||||
|         catch ( Exception error ) | ||||
|         { | ||||
|             if ( session != null ) | ||||
|             { | ||||
|                 session.rollback(); | ||||
|             } | ||||
|  | ||||
|             throw error; | ||||
|         } | ||||
|  | ||||
|         return importedCount; | ||||
|     } | ||||
|  | ||||
|     private static int importBITeslsalerRenewalRate( String filePath, int sheetIndex, int firstRow ) | ||||
|             throws PersistenceException, IOException, InvalidFormatException | ||||
|     { | ||||
|         ArrayList<BITelsalerRenewalRateRecord> records = null; | ||||
|         SqlSession session = null; | ||||
|         ImportBIArchievementDataMapper mapper = null; | ||||
|         int importedCount = 0; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             records = ImportBIExcelData.importBITelsalerRenewalRateFromXlsx( filePath, sheetIndex, | ||||
|                     firstRow ); | ||||
|  | ||||
|             session = MybatisUtils.getSqlSessionBatch(); | ||||
|             mapper = session.getMapper( ImportBIArchievementDataMapper.class ); | ||||
|  | ||||
|             // 清理数据 | ||||
|             mapper.cleanTelsalerRenewalRateData(); | ||||
|  | ||||
|             for ( BITelsalerRenewalRateRecord record : records ) | ||||
|             { | ||||
|                 mapper.insertTelsalerRenewalRateDataToDB( record ); | ||||
|                 importedCount++; | ||||
|             } | ||||
|  | ||||
|             session.commit(); | ||||
|         } | ||||
|         catch ( Exception error ) | ||||
|         { | ||||
|             if ( session != null ) | ||||
|             { | ||||
|                 session.rollback(); | ||||
|             } | ||||
|  | ||||
|             throw error; | ||||
|         } | ||||
|  | ||||
|         return importedCount; | ||||
|     } | ||||
|  | ||||
|     private static int importBIDepartmentAttachingRate( String filePath, int sheetIndex, | ||||
|             int firstRow ) throws PersistenceException, IOException, InvalidFormatException | ||||
|     { | ||||
|         ArrayList<BIDepartmentAttachingRateRecord> records = null; | ||||
|         SqlSession session = null; | ||||
|         ImportBIArchievementDataMapper mapper = null; | ||||
|         int importedCount = 0; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             records = ImportBIExcelData.importBIDepartmentAttachingRateRecordsFromXlsx( filePath, | ||||
|                     sheetIndex, firstRow ); | ||||
|             session = MybatisUtils.getSqlSessionBatch(); | ||||
|             mapper = session.getMapper( ImportBIArchievementDataMapper.class ); | ||||
|  | ||||
|             mapper.cleanDepartmentAttachingRateData(); | ||||
|  | ||||
|             for ( BIDepartmentAttachingRateRecord record : records ) | ||||
|             { | ||||
|                 mapper.insertDepartmentAttachingRateDataToDB( record ); | ||||
|                 importedCount++; | ||||
|             } | ||||
|  | ||||
|             session.commit(); | ||||
|         } | ||||
|         catch ( Exception error ) | ||||
|         { | ||||
|             if ( session != null ) | ||||
|             { | ||||
|                 session.rollback(); | ||||
|             } | ||||
|  | ||||
|             throw error; | ||||
|         } | ||||
|  | ||||
|         return importedCount; | ||||
|     } | ||||
|  | ||||
|     private static int importBIDepartmentRenewalRate( String filePath, int sheetIndex, int firstRow ) | ||||
|             throws PersistenceException, IOException, InvalidFormatException | ||||
|     { | ||||
|  | ||||
|         ArrayList<BIDepartmentRenewalRateRecord> records = null; | ||||
|         SqlSession session = null; | ||||
|         ImportBIArchievementDataMapper mapper = null; | ||||
|         int importedCount = 0; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             records = ImportBIExcelData.importBIDepartmentRenewalRateRecordsFromXlsx(filePath, sheetIndex, firstRow); | ||||
|             session = MybatisUtils.getSqlSessionBatch(); | ||||
|             mapper = session.getMapper(ImportBIArchievementDataMapper.class); | ||||
|              | ||||
|             mapper.cleanDepartmentRenewalRateData(); | ||||
|  | ||||
|             for ( BIDepartmentRenewalRateRecord record : records ) | ||||
|             { | ||||
|                 mapper.insertDepartmentRenewalRateDataToDB(record); | ||||
|  | ||||
|                 importedCount++; | ||||
|             } | ||||
|  | ||||
|             session.commit(); | ||||
|         } | ||||
|         catch ( Exception error) | ||||
|         { | ||||
|             if ( session != null ) | ||||
|             { | ||||
|                 session.rollback(); | ||||
|             } | ||||
|  | ||||
|             throw error; | ||||
|         } | ||||
|  | ||||
|         return importedCount; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,127 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-13 14:39:06 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/dataimport/bi/ImportBIDataRequest.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.dataimport.bi; | ||||
|  | ||||
| import org.springframework.stereotype.Controller; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| @Controller | ||||
| public class ImportBIDataRequest | ||||
| { | ||||
|     public enum ReportType { | ||||
|         TelsalerAttachingRateReport, TelsalerRenewalRateReport, DepartmentAttachingRateReport, DepartmentRenewalRateReport | ||||
|     }; | ||||
|  | ||||
|     // 导入文件的路径 | ||||
|     @JsonProperty( "filePath" ) | ||||
|     private String     filePath; | ||||
|  | ||||
|     // 报表名称 | ||||
|     @JsonProperty( "reportType" ) | ||||
|     private ReportType reportType; | ||||
|  | ||||
|     // 是否有标题行 | ||||
|     @JsonProperty( "firstRow" ) | ||||
|     private int    firstRow; | ||||
|  | ||||
|     // sheet索引 | ||||
|     @JsonProperty( "sheetIndex" ) | ||||
|     private int        sheetIndex; | ||||
|  | ||||
|     public ImportBIDataRequest() | ||||
|     {} | ||||
|  | ||||
|     public int getFirstRow() | ||||
|     { | ||||
|         return firstRow; | ||||
|     } | ||||
|  | ||||
|     public void setFirstRow( int firstRow ) | ||||
|     { | ||||
|         this.firstRow = firstRow; | ||||
|     } | ||||
|  | ||||
|     public int getSheetIndex() | ||||
|     { | ||||
|         return sheetIndex; | ||||
|     } | ||||
|  | ||||
|     public void setSheetIndex( int sheetIndex ) | ||||
|     { | ||||
|         this.sheetIndex = sheetIndex; | ||||
|     } | ||||
|  | ||||
|     public String getFilePath() | ||||
|     { | ||||
|         return filePath; | ||||
|     } | ||||
|  | ||||
|     public void setFilePath( String filePath ) | ||||
|     { | ||||
|         this.filePath = filePath; | ||||
|     } | ||||
|  | ||||
|     public ReportType getReportType() | ||||
|     { | ||||
|         return reportType; | ||||
|     } | ||||
|  | ||||
|     public void setReportType( ReportType reportType ) | ||||
|     { | ||||
|         this.reportType = reportType; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = 1; | ||||
|         result = prime * result + ((filePath == null) ? 0 : filePath.hashCode()); | ||||
|         result = prime * result + ((reportType == null) ? 0 : reportType.hashCode()); | ||||
|         result = prime * result + firstRow; | ||||
|         result = prime * result + sheetIndex; | ||||
|         return result; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean equals( Object obj ) | ||||
|     { | ||||
|         if ( this == obj ) | ||||
|             return true; | ||||
|         if ( obj == null ) | ||||
|             return false; | ||||
|         if ( getClass() != obj.getClass() ) | ||||
|             return false; | ||||
|         ImportBIDataRequest other = (ImportBIDataRequest) obj; | ||||
|         if ( filePath == null ) | ||||
|         { | ||||
|             if ( other.filePath != null ) | ||||
|                 return false; | ||||
|         } | ||||
|         else if ( !filePath.equals( other.filePath ) ) | ||||
|             return false; | ||||
|         if ( reportType != other.reportType ) | ||||
|             return false; | ||||
|         if ( firstRow != other.firstRow ) | ||||
|             return false; | ||||
|         if ( sheetIndex != other.sheetIndex ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "ImportBIDataRequest [filePath=" + filePath + ", reportType=" + reportType | ||||
|                 + ", firstRow=" + firstRow + ", sheetIndex=" + sheetIndex + "]"; | ||||
|     } | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -0,0 +1,78 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-13 14:39:58 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/dataimport/bi/ImportBIDataResponse.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.web.controllers.dataimport.bi; | ||||
|  | ||||
| import com.cpic.xim.web.controllers.QueryResponse; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| public class ImportBIDataResponse extends QueryResponse | ||||
| { | ||||
|     // 导入数量 | ||||
|     @JsonProperty( "importedCount" ) | ||||
|     int importedCount; | ||||
|  | ||||
|     public ImportBIDataResponse() | ||||
|     { | ||||
|         super(); | ||||
|  | ||||
|         importedCount = 0; | ||||
|     } | ||||
|  | ||||
|     public ImportBIDataResponse( boolean success, String message, int importedCount ) | ||||
|     { | ||||
|         super( success, message ); | ||||
|         this.importedCount = importedCount; | ||||
|     } | ||||
|  | ||||
|     public ImportBIDataResponse( int importedCount ) | ||||
|     { | ||||
|         this.importedCount = importedCount; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() | ||||
|     { | ||||
|         return "ImportBIDataResponse [importedCount=" + importedCount + "]"; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int hashCode() | ||||
|     { | ||||
|         final int prime = 31; | ||||
|         int result = super.hashCode(); | ||||
|         result = prime * result + importedCount; | ||||
|         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; | ||||
|         ImportBIDataResponse other = (ImportBIDataResponse) obj; | ||||
|         if ( importedCount != other.importedCount ) | ||||
|             return false; | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public int getImportedCount() | ||||
|     { | ||||
|         return importedCount; | ||||
|     } | ||||
|  | ||||
|     public void setImportedCount( int importedCount ) | ||||
|     { | ||||
|         this.importedCount = importedCount; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,97 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-01-22 23:11:26 | ||||
|  * @LastEditors: Kane | ||||
|  * @LastEditTime: 2023-10-23 17:01:29 | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/fileupload/FileUpload.java | ||||
|  * @Description: 用于接受上传文件的Controller。 | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
|  | ||||
| package com.cpic.xim.web.controllers.fileupload; | ||||
|  | ||||
| import java.io.File; | ||||
| import java.io.IOException; | ||||
| import java.time.LocalDateTime; | ||||
| import java.time.ZoneOffset; | ||||
| import java.util.Vector; | ||||
| import javax.servlet.http.HttpServletRequest; | ||||
| import org.springframework.stereotype.Controller; | ||||
| import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RequestParam; | ||||
| import org.springframework.web.bind.annotation.ResponseBody; | ||||
| import org.springframework.web.multipart.MultipartFile; | ||||
|  | ||||
| @SuppressWarnings( "unused" ) | ||||
| @Controller | ||||
| @RequestMapping( path = "/file" ) | ||||
| public class FileUpload | ||||
| { | ||||
|     /** | ||||
|      * 接收上传文件,并保存到临时目录: | ||||
|      * 1、临时目录下再用sessionID作为子目录保存文件。 | ||||
|      * 2、保存时不更改文件名,会覆盖同名文件。 | ||||
|      * 3、MultipartFile参数形参名称必须和请求form中file标签的name属性一致,否则值为null。 | ||||
|      * 4、返回值为接收结果和文件保存绝对路径。 | ||||
|      * @param taskName 任务名称字符串 | ||||
|      * @param files MultipartFile结构的文件对象 | ||||
|      * @param request HttpServletRequest对象实例 | ||||
|      * @return 返回一个FileUploadResult对象,包含上传结果。 | ||||
|      */ | ||||
|     @RequestMapping( path = "/file-upload.do" ) | ||||
|     @ResponseBody | ||||
|     public FileUploadResult getUploadFile( @RequestParam( "task-name" ) String taskName, | ||||
|             @RequestParam( "files" ) MultipartFile file, HttpServletRequest request ) | ||||
|     { | ||||
|         // session id用来创建临时目录,避免重复 | ||||
|         String sessionID = request.getSession().getId(); | ||||
|         FileUploadResult result = new FileUploadResult(); | ||||
|         Vector<String> fileNames = new Vector<String>(); | ||||
|  | ||||
|         result.setSuccess( true ); | ||||
|         result.setMessage( "上传成功!" ); | ||||
|  | ||||
|         String filePath = request.getServletContext().getRealPath( "/temp/upload/" + sessionID ); | ||||
|         File dir = new File( filePath ); | ||||
|  | ||||
|         if ( !dir.mkdirs() ) | ||||
|         { | ||||
|              | ||||
|         } | ||||
|  | ||||
|         // 检查文件长度,如果为0则跳过 | ||||
|         if ( file.isEmpty() ) | ||||
|         { | ||||
|             result.setSuccess( false ); | ||||
|             result.setMessage( "不允许上传空文件。" ); | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|             // 保存文件到临时目录 | ||||
|             Long milliSecond = | ||||
|                     LocalDateTime.now().toInstant( ZoneOffset.of( "+8" ) ).toEpochMilli(); | ||||
|             String fileName = String.valueOf( milliSecond ) + file.getOriginalFilename(); | ||||
|             // String fileName = file.getOriginalFilename(); | ||||
|             File destFile = new File( filePath, fileName ); | ||||
|  | ||||
|             try | ||||
|             { | ||||
|                 file.transferTo( destFile ); | ||||
|                 // 把上传文件的绝对路径保存,返回给前端 | ||||
|                 fileNames.add( destFile.getAbsolutePath() ); | ||||
|  | ||||
|                 result.setSuccess( true ); | ||||
|                 result.setMessage( "上传成功" ); | ||||
|                 result.setFileList( fileNames ); | ||||
|             } | ||||
|             catch ( IOException error ) | ||||
|             { | ||||
|                 result.setSuccess( false ); | ||||
|                 result.setMessage( "上传失败,原因:" + error.getMessage() ); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         return result; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,54 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-01-23 22:56:17 | ||||
|  * @LastEditors: Kane | ||||
|  * @LastEditTime: 2023-10-06 00:32:47 | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/FileUpload/FileUploadResult.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
|  | ||||
| package com.cpic.xim.web.controllers.fileupload; | ||||
|  | ||||
| import java.util.Vector; | ||||
| import com.cpic.xim.web.controllers.QueryResponse; | ||||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||||
|  | ||||
| @SuppressWarnings( "unused" ) | ||||
| public class FileUploadResult extends QueryResponse | ||||
| { | ||||
|     public FileUploadResult() | ||||
|     { | ||||
|         super(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 构造函数 | ||||
|      * @param success 是否上传成功 | ||||
|      * @param message 消息字符串 | ||||
|      * @param fileList 文件绝对路径字符串数组 | ||||
|      */ | ||||
|     public FileUploadResult( boolean success,  | ||||
|                              String message,  | ||||
|                              Vector<String> fileList ) | ||||
|     { | ||||
|         super( success, message ); | ||||
|  | ||||
|         this.fileList = fileList; | ||||
|     } | ||||
|  | ||||
|     public Vector<String> getFileList() | ||||
|     { | ||||
|         return fileList; | ||||
|     } | ||||
|  | ||||
|     public void setFileList( Vector<String> fileList ) | ||||
|     { | ||||
|         this.fileList = fileList; | ||||
|     } | ||||
|  | ||||
|     @JsonProperty( "fileList" ) | ||||
|     private Vector<String> fileList; | ||||
| } | ||||
|  | ||||
| @@ -2,7 +2,7 @@ | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-09-21 11:35:57 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/rewards/AddTelsalerResponse.java | ||||
|  * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/rewards/DeleteTelsalerResponse.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2022} by Kane, All Rights Reserved.  | ||||
|   | ||||
| @@ -15,6 +15,7 @@ | ||||
|             #{a_attaching_rate, mode=OUT, jdbcType=VARCHAR}, | ||||
|             #{a_renewal_rate, mode=OUT, jdbcType=VARCHAR}, | ||||
|             #{a_total, mode=OUT, jdbcType=INTEGER, javaType=Integer}, | ||||
|             #{a_present_month, mode=OUT, jdbcType=DOUBLE, javaType=Double}, | ||||
|             #{a_mensual_cur, mode=OUT, jdbcType=CURSOR, resultMap=MensualArchievementMapper}) | ||||
|     </select> | ||||
|  | ||||
|   | ||||
| @@ -0,0 +1,53 @@ | ||||
| <?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.ImportBIArchievementDataMapper"> | ||||
|     <insert id="insertTelsalerAttachingRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BITelsalerAttachingRateRecord"> | ||||
|         insert into BI电销坐席车非渗透率跟踪表 ( "部门","经办","车险保费(万)","车险保费占比","非车保费(万)", | ||||
|         "当月保费渗透率","保费渗透率环比上月","当月客户渗透率","客户渗透率环比上月", | ||||
|         "当月车非客均保费","客均保费环比上月" ) | ||||
|         values ( #{departmentName}, #{telsalerName}, #{motoPremium}, #{motoPremiumProportion}, #{nomotoPremium},  | ||||
|                  #{attachingRate},  #{attachingRateChange}, #{customerHandleRate}, | ||||
|                  #{customerHandleRateChange}, #{noMotoPremiumPerCustomer}, #{noMotoPremiumPerCustomerChange} ) | ||||
|     </insert> | ||||
|  | ||||
|     <insert id="insertTelsalerRenewalRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord"> | ||||
|         insert into BI电销坐席续保率跟踪表 ("责任部门","责任人","机构目标值1(%)","到期数-全月", | ||||
|                                          "序时到期数占比(%)","个车续保率(序时)(%)","个车续保率(全月)(%)", | ||||
|                                          "环比昨日(%)","环比上月(%)","平均提前签单天数","环比") | ||||
|         values (#{责任部门},#{责任人},#{机构目标值},#{到期数全月},#{序时到期数占比}, | ||||
|         #{个车续保率序时},#{个车续保率全月},#{环比昨日},#{环比上月}, | ||||
|         #{平均提前签单天数},#{环比}) | ||||
|     </insert> | ||||
|  | ||||
|     <insert id="insertDepartmentAttachingRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord"> | ||||
|         insert into BI机构渗透率跟踪表 ( 部门,"目标值-机构",目标差距,"车险保费", | ||||
|         车险保费占比,"非车保费",当月保费渗透率,保费渗透率环比上月,当月客户渗透率, | ||||
|         客户渗透率环比上月,当月车非客均保费,客均保费环比上月,车险客户数) | ||||
|         values (#{departmentName},#{departmentObject},#{objectGap},#{motoPremium}, | ||||
|         #{motoPremiumProPortion},#{nomotoPremium},#{attachingRate},#{attachingRateChange}, | ||||
|         #{customerHandleRate},#{customerHandleRateChange},#{premiumPerCustomer},#{premiumPerCustomerChange}, | ||||
|         #{motoInsuranceCustomerCount} ) | ||||
|     </insert> | ||||
|  | ||||
|     <insert id="insertDepartmentRenewalRateDataToDB" parameterType="com.cpic.xim.mybatis.pojo.BIDepartmentRenewalRateRecord" > | ||||
|         insert into BI机构当月个车续保率跟踪表( "责任部门","机构目标值1(%)","到期数-全月" ,"序时到期数占比(%)","个车续保率(序时)(%)", | ||||
|         "个车续保率(全月)(%)","环比昨日(%)","环比上月(%)","平均提前签单天数","环比") | ||||
|         values (#{责任部门},#{机构目标值},#{到期数全月},#{序时到期数占比}, | ||||
|         #{个车续保率序时},#{个车续保率全月},#{环比昨日},#{环比上月}, | ||||
|         #{平均提前签单天数},#{环比}) | ||||
|     </insert> | ||||
|  | ||||
|     <select id="cleanTelsalerAttachingRateData" statementType="CALLABLE"> | ||||
|         call telsale_bi_utils.清理BI电销坐席车非渗透跟踪表() | ||||
|     </select> | ||||
|     <select id="cleanTelsalerRenewalRateData" statementType="CALLABLE"> | ||||
|         call telsale_bi_utils.清理BI电销坐席续保率跟踪表() | ||||
|     </select> | ||||
|     <select id="cleanDepartmentAttachingRateData" statementType="CALLABLE"> | ||||
|         call telsale_bi_utils.清理BI部门渗透率跟踪表() | ||||
|     </select> | ||||
|  | ||||
|     <select id="cleanDepartmentRenewalRateData" statementType="CALLABLE"> | ||||
|         call telsale_bi_utils.清理BI部门续保率跟踪表() | ||||
|     </select> | ||||
| </mapper> | ||||
| @@ -26,5 +26,6 @@ | ||||
|         <mapper resource="mybatis/mapper/ArchievementMapper.xml" /> | ||||
|         <mapper resource="mybatis/mapper/RankingListMapper.xml" /> | ||||
|         <mapper resource="mybatis/mapper/RewardsMapper.xml" /> | ||||
|         <mapper resource="mybatis/mapper/ImportBIArchievementDataMapper.xml" />   | ||||
|     </mappers> | ||||
| </configuration> | ||||
| @@ -0,0 +1,151 @@ | ||||
| /* | ||||
|  * @Author: Kane | ||||
|  * @Date: 2023-10-12 10:43:31 | ||||
|  * @LastEditors: Kane | ||||
|  * @FilePath: /desktop_archievement_backend/src/test/java/com/cpic/xim/DesktopArchievement/test/BatchInsertTest.java | ||||
|  * @Description:  | ||||
|  *  | ||||
|  * Copyright (c) ${2023} by Kane, All Rights Reserved.  | ||||
|  */ | ||||
| package com.cpic.xim.DesktopArchievement.test; | ||||
|  | ||||
| import java.util.ArrayList; | ||||
| import org.apache.ibatis.exceptions.PersistenceException; | ||||
| import org.apache.ibatis.session.SqlSession; | ||||
| import org.apache.poi.openxml4j.exceptions.InvalidFormatException; | ||||
| import org.junit.Test; | ||||
| import org.slf4j.Logger; | ||||
| import org.slf4j.LoggerFactory; | ||||
| import com.cpic.xim.mybatis.mapper.ImportBIArchievementDataMapper; | ||||
| import com.cpic.xim.mybatis.pojo.BIDepartmentAttachingRateRecord; | ||||
| import com.cpic.xim.mybatis.pojo.BITelsalerRenewalRateRecord; | ||||
| import com.cpic.xim.mybatis.utils.MybatisUtils; | ||||
| import com.cpic.xim.utils.data.ImportBIExcelData; | ||||
|  | ||||
| public class BatchInsertTest | ||||
| { | ||||
|     private static Logger logger = LoggerFactory.getLogger(BatchInsertTest.class); | ||||
|     @Test | ||||
|     public void testBatchInsertIntoBITelsalerAttachingRate() | ||||
|     { | ||||
|         String filePath = "D:/develop/cpicxim/deskop_task_schedule/数据/测试用/经办 (2).xlsx"; | ||||
|         ArrayList<BITelsalerRenewalRateRecord> records = null; | ||||
|         SqlSession session = null; | ||||
|         ImportBIArchievementDataMapper mapper = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             records = ImportBIExcelData.importBITelsalerRenewalRateFromXlsx( filePath, 0, | ||||
|                     1 ); | ||||
|             session = MybatisUtils.getSqlSessionBatch(); | ||||
|             mapper = session.getMapper( ImportBIArchievementDataMapper.class ); | ||||
|  | ||||
|             mapper.cleanTelsalerRenewalRateData(); | ||||
|  | ||||
|             for ( BITelsalerRenewalRateRecord record : records ) | ||||
|             { | ||||
|                 mapper.insertTelsalerRenewalRateDataToDB( record ); | ||||
|             } | ||||
|  | ||||
|             session.commit(); | ||||
|  | ||||
|             assert (true); | ||||
|         } | ||||
|         catch ( PersistenceException error) | ||||
|         { | ||||
|             System.out.println(error); | ||||
|             assert( false ); | ||||
|         } | ||||
|         catch(InvalidFormatException error) | ||||
|         { | ||||
|              | ||||
|         } | ||||
|         catch ( Exception error ) | ||||
|         { | ||||
|             if ( session != null ) | ||||
|             { | ||||
|                 session.rollback(); | ||||
|  | ||||
|                 assert (false); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void testBatchInsertBITeslsalerRenewalRate() | ||||
|     { | ||||
|         String filePath = "D:/develop/cpicxim/deskop_task_schedule/数据/测试用/坐席-续保.xlsx"; | ||||
|         ArrayList<BITelsalerRenewalRateRecord> records = null; | ||||
|         SqlSession session = null; | ||||
|         ImportBIArchievementDataMapper mapper = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             session = MybatisUtils.getSqlSessionBatch(); | ||||
|             mapper = session.getMapper( ImportBIArchievementDataMapper.class ); | ||||
|  | ||||
|             records = ImportBIExcelData.importBITelsalerRenewalRateFromXlsx( filePath, 0, 1 ); | ||||
|  | ||||
|             // 清理数据 | ||||
|             mapper.cleanTelsalerRenewalRateData(); | ||||
|  | ||||
|             for ( BITelsalerRenewalRateRecord record : records ) | ||||
|             { | ||||
|                 mapper.insertTelsalerRenewalRateDataToDB( record ); | ||||
|             } | ||||
|  | ||||
|             session.commit(); | ||||
|  | ||||
|             System.out.println( records ); | ||||
|             assert (!records.isEmpty()); | ||||
|         } | ||||
|         catch ( Exception error ) | ||||
|         { | ||||
|             logger.error("出现错误", error); | ||||
|             assert (false); | ||||
|  | ||||
|             if ( session != null ) | ||||
|             { | ||||
|                 session.rollback(); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void testBatchInsertBIDepartmentAttachingRateToDB() | ||||
|     { | ||||
|         String filePath = "D:/develop/cpicxim/deskop_task_schedule/数据/测试用/机构渗透.xlsx"; | ||||
|  | ||||
|         ArrayList<BIDepartmentAttachingRateRecord> records = null; | ||||
|         SqlSession session = null; | ||||
|         ImportBIArchievementDataMapper mapper = null; | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             records = | ||||
|                     ImportBIExcelData.importBIDepartmentAttachingRateRecordsFromXlsx( filePath, 0, 1 ); | ||||
|             session = MybatisUtils.getSqlSessionBatch(); | ||||
|             mapper = session.getMapper( ImportBIArchievementDataMapper.class ); | ||||
|              | ||||
|             mapper.cleanDepartmentAttachingRateData(); | ||||
|  | ||||
|             for ( BIDepartmentAttachingRateRecord record : records ) | ||||
|             { | ||||
|                 mapper.insertDepartmentAttachingRateDataToDB( record ); | ||||
|             } | ||||
|  | ||||
|             session.commit(); | ||||
|         } | ||||
|         catch ( Exception error ) | ||||
|         { | ||||
|             if ( session != null ) | ||||
|             { | ||||
|                 session.rollback(); | ||||
|             } | ||||
|  | ||||
|             logger.error("错误", error); | ||||
|              | ||||
|             assert( false ); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/坐席-渗透.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/坐席-渗透.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/坐席-续保.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/坐席-续保.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/当月个车续保率跟踪报表【机构】.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/当月个车续保率跟踪报表【机构】.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/TWr业务员人力查询 - 坐席清单.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/TWr业务员人力查询 - 坐席清单.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席清单.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席清单.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席续保率.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席续保率.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席车非渗透 - 副本.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席车非渗透 - 副本.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席车非渗透.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/坐席车非渗透.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/当月个车续保率跟踪报表【机构】.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/当月个车续保率跟踪报表【机构】.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/测试11.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/测试11.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/部门 - 副本 (2).xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/部门 - 副本 (2).xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/部门 - 副本.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/部门 - 副本.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/旧/部门.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/旧/部门.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								数据/测试用/机构渗透.xlsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								数据/测试用/机构渗透.xlsx
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user