Browse Source

tsl_data v1.6上线版本

lifuquan 1 year ago
parent
commit
0b4142e2b3

+ 6 - 6
tsl_data/src/main/java/com/nokia/tsl_data/service/TslReportService.java

@@ -672,9 +672,9 @@ public class TslReportService {
         font.setFontHeightInPoints((short) 10);
         cellStyle3.setFont(font);
 
-        // 第一行 标题栏
+        // 第一行 标题栏2023年客服投诉清单各地市投诉率情况(客户端-战略考核)
         cell = sheet.createRow(0).createCell(0);
-        cell.setCellValue(day.substring(0, 4) + "年客服投诉清单各地市投诉率情况(管理端-移网质量类)");
+        cell.setCellValue(day.substring(0, 4) + "年客服投诉清单各地市投诉率情况(客户端-战略考核)");
         cell.setCellStyle(cellStyle3);
         // 合并单元格
         rangeAddress = new CellRangeAddress(0, 0, 0, dayOfMonth + 7);
@@ -780,7 +780,7 @@ public class TslReportService {
         setConditionalFormatting(sheet, rangeAddress);
 
         // 设置sheet的列宽
-        sheet.setColumnWidth(0, 1500);
+        sheet.setColumnWidth(0, 1600);
         for (int i = 1; i <= dayOfMonth; i++) {
             sheet.setColumnWidth(i, 1100);
         }
@@ -790,7 +790,7 @@ public class TslReportService {
         sheet.setColumnWidth(dayOfMonth + 4, 2100);
         sheet.setColumnWidth(dayOfMonth + 5, 1700);
         sheet.setColumnWidth(dayOfMonth + 6, 2100);
-        sheet.setColumnWidth(dayOfMonth + 7, 1500);
+        sheet.setColumnWidth(dayOfMonth + 7, 1600);
 
         // 设置行高 15
         for (int i = 0; i < rowNum; i++) {
@@ -956,7 +956,7 @@ public class TslReportService {
         setConditionalFormatting(sheet, rangeAddress);
 
         // 设置sheet的列宽
-        sheet.setColumnWidth(0, 1500);
+        sheet.setColumnWidth(0, 1600);
         for (int i = 1; i <= dayOfMonth; i++) {
             sheet.setColumnWidth(i, 1100);
         }
@@ -966,7 +966,7 @@ public class TslReportService {
         sheet.setColumnWidth(dayOfMonth + 4, 2100);
         sheet.setColumnWidth(dayOfMonth + 5, 1700);
         sheet.setColumnWidth(dayOfMonth + 6, 2100);
-        sheet.setColumnWidth(dayOfMonth + 7, 1500);
+        sheet.setColumnWidth(dayOfMonth + 7, 1600);
 
         // 设置行高 15
         for (int i = 0; i < rowNum; i++) {

+ 4 - 2
tsl_data/src/main/java/com/nokia/tsl_data/service/TslTaskService.java

@@ -89,15 +89,17 @@ public class TslTaskService {
             String checkResult = tslWaraHouseService.check(day);
             if (checkResult == null || !checkResult.endsWith("数据源正常。")) {
                 pushMessageUtil.sendTextMessage(checkResult);
-                // 等待1小时后再次检查
+                // 每小时检查一次
                 try {
                     Thread.sleep(1000L * 3600L);
                 } catch (InterruptedException e) {
                     e.printStackTrace();
                     throw new RuntimeException(e.getMessage());
                 }
+            } else {
+                flag = true;
             }
-        } while (flag);
+        } while (!flag);
     }
 
     /**