Ver Fonte

20241101

“lifuquan” há 2 meses atrás
pai
commit
9bf4298468

+ 144 - 144
doc/部署环境/手动入库数据.md

@@ -1,144 +1,144 @@
-# 手动入库数据
-
-## 手动发送
-
-```http
-POST http://192.168.31.10:11111/tsl/task/send HTTP/1.1
-Content-Type:application/json
-
-20231016
-```
-
-> 注意:文件缺失时不需要手动入库和生成报表,当前已经加入了等待,检查的机制。发送的逻辑后续需要修改一下。
-
-## 手动生成报表
-
-```http
-POST http://192.168.10.7:22222/tsl_data/report/generate/v3 HTTP/1.1
-Content-Type:application/json
-
-20240601
-```
-
-## 数据手动入库
-
-- cem_mobile_experience_list
-
-```http
-### 入库 cem_mobile_experience_list
-POST http://192.168.10.7:22222/tsl_data/source/warehouse/cem_mobile_experience_list HTTP/1.1
-Content-Type:application/json
-
-20240325
-```
-
-```http
-### 删除 cem_mobile_experience_list
-POST http://192.168.10.7:22222/tsl_data/source/delete/cem_mobile_experience_list HTTP/1.1
-Content-Type:application/json
-
-20240325
-```
-
-- report_auto.he_d_mobile_comp
-
-```http
-POST http://192.168.10.7:29100/tsl/task/warahouse/mobilecomp HTTP/1.1
-Content-Type:application/json
-
-20230623
-```
-
-- report_auto.he_d_high_quality
-
-```http
-POST http://192.168.10.7:29100/tsl/task/warahouse/highquality HTTP/1.1
-Content-Type:application/json
-
-20231015
-```
-
-## 查询数据
-
-```http
-POST http://192.168.10.7:29100/tsl/task/check/srcfile HTTP/1.1
-Content-Type:application/json
-
-20230815
-```
-
-## 删除数据
-
-- report_auto.he_d_mobile_comp
-
-```http
-POST http://192.168.10.7:29100/tsl/task/delete/mobilecomp HTTP/1.1
-Content-Type:application/json
-
-20230815
-```
-
-- report_auto.he_d_high_quality
-
-```http
-POST http://192.168.10.7:29100/tsl/task/delete/highquality HTTP/1.1
-Content-Type:application/json
-
-20231015
-```
-
-```http
-### 入库 mobile_complaint 数据
-POST http://192.168.10.7:22222/tsl_data/source/warehouse/mobile_complaint
-Content-Type: application/json
-
-20231203
-
-### 删除 mobile_complaint 数据
-POST http://192.168.10.7:22222/tsl_data/source/delete/mobile_complaint
-Content-Type: application/json
-
-20231203
-
-### 入库 high_quality_count 数据
-POST http://192.168.10.7:22222/tsl_data/source/warehouse/high_quality_count
-Content-Type: application/json
-
-20231203
-
-### 删除 high_quality_count 数据
-POST http://192.168.10.7:22222/tsl_data/source/delete/high_quality_count
-Content-Type: application/json
-
-20231203
-
-### 入库 high_quality_list 数据
-POST http://192.168.10.7:22222/tsl_data/source/warehouse/high_quality_list
-Content-Type: application/json
-
-20231203
-
-### 删除 high_quality_list 数据
-POST http://192.168.10.7:22222/tsl_data/source/delete/high_quality_list
-Content-Type: application/json
-
-20231203
-
-### 删除 high_quality_list 数据
-POST http://192.168.10.7:22222/tsl_data/highQualityData/generate
-Content-Type: application/json
-
-20231203
-
-### 删除 high_quality_list 数据
-POST http://192.168.10.7:22222/tsl_data/highQualityData/delete
-Content-Type: application/json
-
-20231203
-
-### 生成报表
-POST http://192.168.10.7:22222/tsl_data/report/generate
-Content-Type: application/json
-
-20231203
-```
+# 手动入库数据
+
+## 手动发送
+
+```http
+POST http://192.168.31.10:11111/tsl/task/send HTTP/1.1
+Content-Type:application/json
+
+20231016
+```
+
+> 注意:文件缺失时不需要手动入库和生成报表,当前已经加入了等待,检查的机制。发送的逻辑后续需要修改一下。
+
+## 手动生成报表
+
+```http
+POST http://192.168.10.7:22222/tsl_data/report/generate/v3 HTTP/1.1
+Content-Type:application/json
+
+20241031
+```
+
+## 数据手动入库
+
+- cem_mobile_experience_list
+
+```http
+### 入库 cem_mobile_experience_list
+POST http://192.168.10.7:22222/tsl_data/source/warehouse/cem_mobile_experience_list HTTP/1.1
+Content-Type:application/json
+
+20240325
+```
+
+```http
+### 删除 cem_mobile_experience_list
+POST http://192.168.10.7:22222/tsl_data/source/delete/cem_mobile_experience_list HTTP/1.1
+Content-Type:application/json
+
+20240325
+```
+
+- report_auto.he_d_mobile_comp
+
+```http
+POST http://192.168.10.7:29100/tsl/task/warahouse/mobilecomp HTTP/1.1
+Content-Type:application/json
+
+20230623
+```
+
+- report_auto.he_d_high_quality
+
+```http
+POST http://192.168.10.7:29100/tsl/task/warahouse/highquality HTTP/1.1
+Content-Type:application/json
+
+20231015
+```
+
+## 查询数据
+
+```http
+POST http://192.168.10.7:29100/tsl/task/check/srcfile HTTP/1.1
+Content-Type:application/json
+
+20230815
+```
+
+## 删除数据
+
+- report_auto.he_d_mobile_comp
+
+```http
+POST http://192.168.10.7:29100/tsl/task/delete/mobilecomp HTTP/1.1
+Content-Type:application/json
+
+20230815
+```
+
+- report_auto.he_d_high_quality
+
+```http
+POST http://192.168.10.7:29100/tsl/task/delete/highquality HTTP/1.1
+Content-Type:application/json
+
+20231015
+```
+
+```http
+### 入库 mobile_complaint 数据
+POST http://192.168.10.7:22222/tsl_data/source/warehouse/mobile_complaint
+Content-Type: application/json
+
+20231203
+
+### 删除 mobile_complaint 数据
+POST http://192.168.10.7:22222/tsl_data/source/delete/mobile_complaint
+Content-Type: application/json
+
+20231203
+
+### 入库 high_quality_count 数据
+POST http://192.168.10.7:22222/tsl_data/source/warehouse/high_quality_count
+Content-Type: application/json
+
+20231203
+
+### 删除 high_quality_count 数据
+POST http://192.168.10.7:22222/tsl_data/source/delete/high_quality_count
+Content-Type: application/json
+
+20231203
+
+### 入库 high_quality_list 数据
+POST http://192.168.10.7:22222/tsl_data/source/warehouse/high_quality_list
+Content-Type: application/json
+
+20231203
+
+### 删除 high_quality_list 数据
+POST http://192.168.10.7:22222/tsl_data/source/delete/high_quality_list
+Content-Type: application/json
+
+20231203
+
+### 删除 high_quality_list 数据
+POST http://192.168.10.7:22222/tsl_data/highQualityData/generate
+Content-Type: application/json
+
+20231203
+
+### 删除 high_quality_list 数据
+POST http://192.168.10.7:22222/tsl_data/highQualityData/delete
+Content-Type: application/json
+
+20231203
+
+### 生成报表
+POST http://192.168.10.7:22222/tsl_data/report/generate
+Content-Type: application/json
+
+20231203
+```

+ 52 - 52
doc/需求文档/20240408/20240408.md

@@ -1,52 +1,52 @@
-# 20240408
-
-```sql
-select day_id1, count(1)
-from tsl_data.complaint_details_fix_ywd_day cdfyd 
-where month_id = '202404' and day_id = '06'
-and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
-group by day_id1 
-
-select day_id1, count(1)
-from tsl_data.complaint_details_fix_ywd_day cdfyd 
-where month_id = '202403' and day_id = '31'
-and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
-group by day_id1 
-
-SELECT acct_date, count(1)
-FROM tsl_data.mobile_complaint_day mcd 
-where month_id = '202403' and day_id = '31'
-and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
-group by acct_date   
-
-SELECT acct_date, count(1)
-FROM tsl_data.mobile_complaint_day mcd 
-where month_id = '202403' and day_id = '31'
-and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能')
-group by acct_date
-order by acct_date 
-
-SELECT acct_date, count(1)
-FROM tsl_data.mobile_complaint_day mcd 
-where month_id = '202403' and day_id = '31'
-and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
-group by acct_date
-order by acct_date 
-
-
-select *
-from tsl_data.mobile_complaint_day mcd 
-where sheet_no in ('TS202403011513473716')
-
-select count(1)
-FROM tsl_data.mobile_complaint_day mcd 
-where month_id = '202403' and day_id = '31'
-order by acct_date 
-
-select acct_date, count(1)
-FROM tsl_data.mobile_complaint_day mcd 
-where month_id = '202403' and day_id = '31'
-and duty_reason_id_day = '移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能'
-group by acct_date
-order by acct_date 
-```
+# 20240408
+
+```sql
+select day_id1, count(1)
+from tsl_data.complaint_details_fix_ywd_day cdfyd 
+where month_id = '202404' and day_id = '06'
+and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
+group by day_id1 
+
+select day_id1, count(1)
+from tsl_data.complaint_details_fix_ywd_day cdfyd 
+where month_id = '202403' and day_id = '31'
+and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
+group by day_id1 
+
+SELECT acct_date, count(1)
+FROM tsl_data.mobile_complaint_day mcd 
+where month_id = '202403' and day_id = '31'
+and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
+group by acct_date   
+
+SELECT acct_date, count(1)
+FROM tsl_data.mobile_complaint_day mcd 
+where month_id = '202403' and day_id = '31'
+and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能')
+group by acct_date
+order by acct_date 
+
+SELECT acct_date, count(1)
+FROM tsl_data.mobile_complaint_day mcd 
+where month_id = '202403' and day_id = '31'
+and duty_reason_id_day in ('移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能', '移网质量>>网络覆盖>>2/3G网络精简>>2/3G网络精简')
+group by acct_date
+order by acct_date 
+
+
+select *
+from tsl_data.mobile_complaint_day mcd 
+where sheet_no in ('TS202403011513473716')
+
+select count(1)
+FROM tsl_data.mobile_complaint_day mcd 
+where month_id = '202403' and day_id = '31'
+order by acct_date 
+
+select acct_date, count(1)
+FROM tsl_data.mobile_complaint_day mcd 
+where month_id = '202403' and day_id = '31'
+and duty_reason_id_day = '移网质量>>网络覆盖>>Vo-LTE>>未开通/不支撑Vo-LTE功能'
+group by acct_date
+order by acct_date 
+```

+ 19 - 19
doc/需求文档/20240611提出的需求/20240611提出的需求.md

@@ -1,19 +1,19 @@
-# 20240611提出的需求
-
-## 1. 在第一个sheet(管理端-移网感知类), 回退到去年的同口径,即删除无法被叫的投诉
-
-之前的口径变化如下:
-
-*2024年适配需求 统计数据在原有基础(河北_CEM移网质量投诉明细全量数据)上增加新订阅的 河北客户体验管理智能定责投诉明细月累计接口日 表中日定责问题分类(duty_reason_id_day) 字段值为 业务使用>>基础业务使用>>移网主被叫>>手机无法主被叫 的部分。*
-
-在之前修改时,增加了一个新表,用来把以上两个表的内容进行聚合,在新表中标识了数据来源。
-
-本次修改采用不改变流程,在从新表查询数据时添加限制的方式实现。
-
-5月份的目标值不做更改,更改6月之后的目标值。
-
-第一个需求要求尽快实现。
-
-## 2. 三率的计算要做修改,采用详表数据,按照自己的原则计算三率
-
-## 3. 集团对于超时工单会有数据直接生成,后续需要订阅集团超时工单相关数据,并修改超时工单通报数据源
+# 20240611提出的需求
+
+## 1. 在第一个sheet(管理端-移网感知类), 回退到去年的同口径,即删除无法被叫的投诉
+
+之前的口径变化如下:
+
+*2024年适配需求 统计数据在原有基础(河北_CEM移网质量投诉明细全量数据)上增加新订阅的 河北客户体验管理智能定责投诉明细月累计接口日 表中日定责问题分类(duty_reason_id_day) 字段值为 业务使用>>基础业务使用>>移网主被叫>>手机无法主被叫 的部分。*
+
+在之前修改时,增加了一个新表,用来把以上两个表的内容进行聚合,在新表中标识了数据来源。
+
+本次修改采用不改变流程,在从新表查询数据时添加限制的方式实现。
+
+5月份的目标值不做更改,更改6月之后的目标值。
+
+第一个需求要求尽快实现。
+
+## 2. 三率的计算要做修改,采用详表数据,按照自己的原则计算三率
+
+## 3. 集团对于超时工单会有数据直接生成,后续需要订阅集团超时工单相关数据,并修改超时工单通报数据源

+ 12 - 10
src/main/java/com/nokia/tsl_data/service/ReportServiceV3.java

@@ -215,13 +215,14 @@ public class ReportServiceV3 {
                         Paths.get(file.getParentFile().getAbsolutePath(), "3G简网投诉情况" + day + ".png").toFile());
             }
             // 截图 服请
-            sheet = workbook.getSheet("移网感知服务请求率");
-            if (sheet != null) {
-                area = "A1:" + CellRect.getColumnName(dayOfMonth + 7) + "15";
-                screenShot = PoiUtil.screenShot(sheet, area, "微软雅黑");
-                ImageIO.write(screenShot, "png",
-                        Paths.get(file.getParentFile().getAbsolutePath(), "移网感知服务请求率-" + day + ".png").toFile());
-            }
+            // 20241101 暂时注释
+            // sheet = workbook.getSheet("移网感知服务请求率");
+            // if (sheet != null) {
+            //     area = "A1:" + CellRect.getColumnName(dayOfMonth + 7) + "15";
+            //     screenShot = PoiUtil.screenShot(sheet, area, "微软雅黑");
+            //     ImageIO.write(screenShot, "png",
+            //             Paths.get(file.getParentFile().getAbsolutePath(), "移网感知服务请求率-" + day + ".png").toFile());
+            // }
             // 截图 重复投诉
             sheet = workbook.getSheet("管理端-重复投诉率");
             if (sheet != null) {
@@ -270,9 +271,10 @@ public class ReportServiceV3 {
         writeSheet3Gjw(workbookWrapper, day);
         log.info("帐期 {} 3G简网投诉情况 sheet写入成功", day);
         // 1.2 写入 服请情况
-        cemMobileExperienceListService.checkStatDayCount(day);
-        writeSheetServiceRequest(workbookWrapper, day);
-        log.info("帐期 {} 服务请求 sheet写入成功", day);
+        // 20241101 暂时注释
+        // cemMobileExperienceListService.checkStatDayCount(day);
+        // writeSheetServiceRequest(workbookWrapper, day);
+        // log.info("帐期 {} 服务请求 sheet写入成功", day);
         // 1.3 管理端-重复投诉率
         writeSheetRepeatTs(workbookWrapper, day);
         log.info("帐期 {} 管理端-重复投诉率 sheet写入成功", day);