Преглед изворни кода

dingtalk v1.3 tsl_data v1.6 上线版本

lifuquan пре 1 година
родитељ
комит
c90925528e

+ 6 - 2
README.md

@@ -1,11 +1,15 @@
 # REPORT_AUTO
 
-nohup java -jar tsl_data-1.5-exec.jar >output.log 2>&1 &
+nohup java -jar tsl_data-1.6-exec.jar >output.log 2>&1 &
 
-nohup java -jar dingtalk_auto-1.2-exec.jar >output.log 2>&1 &
+nohup java -jar dingtalk_auto-1.3-exec.jar >output.log 2>&1 &
 
 ## dingtalk_auto版本说明
 
+### v1.3
+
+1. 新增了数据表--客户端-战略考核截图的发送
+
 ### v1.2
 
 1. 修改了每天总结的内容,当万投比全部达标的情况与存在不达标情况时进行区别

+ 1 - 1
dingtalk_auto/pom.xml

@@ -13,7 +13,7 @@
 
     <groupId>com.nokia</groupId>
     <artifactId>dingtalk_auto</artifactId>
-    <version>1.2</version>
+    <version>1.3</version>
 
     <packaging>jar</packaging>
 

+ 12 - 6
dingtalk_auto/src/main/java/com/nokia/dingtalk_auto/service/TslTaskService.java

@@ -86,37 +86,43 @@ public class TslTaskService {
             }
         }
         for (File file : files) {
-            if (file.getName().toLowerCase().endsWith("-2-重复投诉率.png")) {
+            if (file.getName().toLowerCase().endsWith("-2-客户端-战略考核.png")) {
                 String mediaId = tslTaskDingTalkUtil.upload(file.getAbsolutePath(), "image");
                 tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
             }
         }
         for (File file : files) {
-            if (file.getName().toLowerCase().endsWith("-3-超时工单.png")) {
+            if (file.getName().toLowerCase().endsWith("-3-重复投诉率.png")) {
                 String mediaId = tslTaskDingTalkUtil.upload(file.getAbsolutePath(), "image");
                 tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
             }
         }
         for (File file : files) {
-            if (file.getName().toLowerCase().endsWith("-4-处理时长.png")) {
+            if (file.getName().toLowerCase().endsWith("-4-超时工单.png")) {
                 String mediaId = tslTaskDingTalkUtil.upload(file.getAbsolutePath(), "image");
                 tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
             }
         }
         for (File file : files) {
-            if (file.getName().toLowerCase().endsWith("-5-满意率.png")) {
+            if (file.getName().toLowerCase().endsWith("-5-处理时长.png")) {
                 String mediaId = tslTaskDingTalkUtil.upload(file.getAbsolutePath(), "image");
                 tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
             }
         }
         for (File file : files) {
-            if (file.getName().toLowerCase().endsWith("-6-解决率.png")) {
+            if (file.getName().toLowerCase().endsWith("-6-满意率.png")) {
                 String mediaId = tslTaskDingTalkUtil.upload(file.getAbsolutePath(), "image");
                 tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
             }
         }
         for (File file : files) {
-            if (file.getName().toLowerCase().endsWith("-7-响应率.png")) {
+            if (file.getName().toLowerCase().endsWith("-7-解决率.png")) {
+                String mediaId = tslTaskDingTalkUtil.upload(file.getAbsolutePath(), "image");
+                tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
+            }
+        }
+        for (File file : files) {
+            if (file.getName().toLowerCase().endsWith("-8-响应率.png")) {
                 String mediaId = tslTaskDingTalkUtil.upload(file.getAbsolutePath(), "image");
                 tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
             }

+ 1 - 1
dingtalk_auto/src/main/resources/application.properties

@@ -1,4 +1,4 @@
-spring.profiles.active=dev
+spring.profiles.active=pro
 
 server.port=11111
 

+ 2 - 1
dingtalk_auto/src/test/java/com/nokia/dingtalk_auto/DingTalkAutoTest.java

@@ -14,7 +14,8 @@ public class DingTalkAutoTest {
 
     @Test
     void test() throws Exception {
-        taskService.runTask("20230624");
+        taskService.download("20230627");
+        taskService.sendDingTalkMsg("20230627");
     }
 
 }

BIN
tsl_data/doc/输入数据/河北_CEM高品质2日统计/河北_CEM高品质2日统计_HE_D_HIGH_QUALITY.xlsx


+ 1 - 1
tsl_data/src/main/resources/application.properties

@@ -1,4 +1,4 @@
-spring.profiles.active=dev
+spring.profiles.active=pro
 
 server.port=29100
 mybatis.mapper-locations=classpath:mapper/*.xml