lifuquan 1 jaar geleden
bovenliggende
commit
f21bc715e4

+ 6 - 2
README.md

@@ -1,8 +1,8 @@
 # REPORT_AUTO
 
-nohup java -jar tsl_data-1.7-exec.jar >output.log 2>&1 &
+nohup java -jar tsl_data-exec.jar >output.log 2>&1 &
 
-nohup java -jar dingtalk_auto-1.3-exec.jar >output.log 2>&1 &
+nohup java -jar dingtalk_auto-exec.jar >output.log 2>&1 &
 
 ## dingtalk_auto版本说明
 
@@ -16,6 +16,10 @@ nohup java -jar dingtalk_auto-1.3-exec.jar >output.log 2>&1 &
 
 ## tsl_data版本说明
 
+### v1.8
+
+1. 修复了sql语句的错误 selectClientRatioForDay
+
 ### v1.7
 
 1. 修复了一个sql语句的0除问题 selectClientRatioForDay

+ 1 - 0
dingtalk_auto/pom.xml

@@ -81,6 +81,7 @@
     </dependencies>
 
     <build>
+        <finalName>dingtalk_auto</finalName>
         <plugins>
             <plugin>
                 <groupId>org.springframework.boot</groupId>

+ 3 - 3
doc/开发文档/部署环境接口测试.md

@@ -7,10 +7,10 @@ nohup java -jar dingtalk_auto-1.1-exec.jar >output.log 2>&1 &
 ## 手动发送
 
 ```http
-POST http://192.168.31.10:11111/tsl/task/send HTTP/1.1
+POST http://192.168.31.182:11111/tsl/task/send HTTP/1.1
 Content-Type:application/json
 
-20230621
+20230703
 ```
 
 ## 数据手动入库
@@ -28,7 +28,7 @@ Content-Type:application/json
 POST http://192.168.10.7:29100/tsl/task/report/generate HTTP/1.1
 Content-Type:application/json
 
-20230522
+20230703
 ```
 
 ## 查询数据

+ 2 - 1
tsl_data/pom.xml

@@ -13,7 +13,7 @@
 
     <groupId>com.nokia</groupId>
     <artifactId>tsl_data</artifactId>
-    <version>1.7</version>
+    <version>1.8</version>
 
     <packaging>jar</packaging>
 
@@ -90,6 +90,7 @@
     </dependencies>
 
     <build>
+        <finalName>tsl_data</finalName>
         <plugins>
             <plugin>
                 <groupId>org.springframework.boot</groupId>

+ 1 - 1
tsl_data/src/main/resources/mapper/TslDao.xml

@@ -15,7 +15,7 @@
         complaint_satisfied_list::float8, complaint_satisfied_count::float8,
         complaint_resolution_list::float8, complaint_resolution_count::float8,
         complaint_response_list::float8, complaint_response_count::float8, complaint::float8 from
-        report_auto.he_d_high_quality hdhq where acct_date = '2023-07-01' and profes_dep = '网络质量'
+        report_auto.he_d_high_quality hdhq where acct_date = #{day} and profes_dep = '网络质量'
         and big_type_name = '移网网络体验' and small_type_name = '--') select '全省' as businoareaname,
         sum(complaint_satisfied_list) / sum(complaint_satisfied_count + complaint) as
         complaint_satisfied, sum(complaint_resolution_list) / sum(complaint_resolution_count +

+ 1 - 1
tsl_data/src/test/java/com/nokia/tsl_data/TslDataApplicationTest.java

@@ -36,7 +36,7 @@ public class TslDataApplicationTest {
 
     @Test
     void test2() {
-        List<Map<String, Object>> selectClientRatioForDay = tslDao.selectClientRatioForDay("20230701");
+        List<Map<String, Object>> selectClientRatioForDay = tslDao.selectClientRatioForDay("2023-07-03");
         System.out.println(selectClientRatioForDay);
     }