소스 검색

更新了投诉处理时长的小更改

“lifuquan” 1 년 전
부모
커밋
d4bab56b77

+ 4 - 0
doc/需求文档/2024年适配/关于投诉工单日报表2024年适配的需求.md

@@ -50,6 +50,10 @@
 
 处理时长,30小时是达标,30-36小时线性扣分
 
+涨幅换成与目标差距,按照本月处理时长倒序排序
+
+达标值改成目标值
+
 ### 7.4 三率调整
 
 指标三:移网综合投诉评价“三率”(1.5分)

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

@@ -174,9 +174,7 @@ public class ReportServiceV3 {
                 list.sort((o1, o2) -> Double.compare((double) o2.get(0), (double) o1.get(0)));
                 stringBuffer.append(list.get(0).get(1).toString()).append("、")
                         .append(list.get(1).get(1).toString()).append("、")
-                        .append(list.get(2).get(1).toString()).append("</font>;与")
-                        .append(sheet.getRow(1).getCell(7).getStringCellValue()).append("比<font color=#FF0000>")
-                        .append(sheet.getRow(2).getCell(6).getStringCellValue()).append("</font>时长增幅较大。");
+                        .append(list.get(2).get(1).toString()).append("</font>。");
             }
             TextUtil.writeToFileWithUTF8(stringBuffer.toString(), Paths.get(file.getParent(), "总结.txt").toString());
         } catch (IOException e) {
@@ -536,10 +534,10 @@ public class ReportServiceV3 {
         cell.setCellValue(String.format("%s月", monthOfYear));
         cell.setCellStyle(workbookWrapper.getCellStyle3());
         cell = row.createCell(9);
-        cell.setCellValue("标值");
+        cell.setCellValue("标值");
         cell.setCellStyle(workbookWrapper.getCellStyle3());
         cell = row.createCell(10);
-        cell.setCellValue("涨幅");
+        cell.setCellValue("与目标值差距");
         cell.setCellStyle(workbookWrapper.getCellStyle3());
         // 写入超时工单情况
         List<List<Object>> sheet3Data1 = workFlowService.getTimeoutCountInfo(day);
@@ -582,7 +580,7 @@ public class ReportServiceV3 {
             cell = row.createCell(8);
             cell.setCellValue((double) list.get(2));
             cell.setCellStyle(workbookWrapper.getCellStyle5());
-            // 标值
+            // 标值
             cell = row.createCell(9);
             cell.setCellValue((int) list.get(3));
             cell.setCellStyle(workbookWrapper.getCellStyle5());

+ 3 - 2
src/main/java/com/nokia/tsl_data/service/WorkFlowService.java

@@ -193,11 +193,12 @@ public class WorkFlowService {
             } else {
                 list.add(2, dayMap.get(area).get("avg_duration"));
                 list.add(3, targetProperties.getDuration());
-                list.add(4, ((double) list.get(2)) - (double) list.get(1));
+                // 与目标值差距
+                list.add(4, ((double) list.get(2)) - (int) list.get(3));
             }
         }
         // 逆序排序
-        result.sort((o1, o2) -> Double.compare((double) o2.get(4), (double) o1.get(4)));
+        result.sort((o1, o2) -> Double.compare((double) o2.get(2), (double) o1.get(2)));
         // 全省数据
         List<Object> allCity = new ArrayList<>(4);
         result.add(allCity);

+ 0 - 12
src/test/java/com/nokia/tsl_data/TslDataApplicationTest.java

@@ -1,13 +1,9 @@
 package com.nokia.tsl_data;
 
-import java.util.List;
-import java.util.Map;
-
 import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 
-import com.nokia.tsl_data.dao.ManagementDetailMapper;
 import com.nokia.tsl_data.service.TaskService;
 
 @SpringBootTest
@@ -20,12 +16,4 @@ class TslDataApplicationTest {
     void test() {
         taskService.generateReportV3("20240103");
     }
-
-    @Autowired
-    private ManagementDetailMapper managementDetailMapper;
-    @Test
-    void test1() {
-       List<Map<String, Object>> data = managementDetailMapper.selectRepeatTsCountForDay("20240103");
-       data.forEach(System.out::println);
-    }
 }