Jelajahi Sumber

标准化工时

zzx 2 tahun lalu
induk
melakukan
de84c4f526

+ 1 - 1
src/main/java/com/galaxis/manatee/service/LogService.java

@@ -155,7 +155,7 @@ public class LogService {
         DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
         LocalDateTime localDateTime = LocalDateTime.now().minusDays(9999);
         List<String> m = List.of("user_2," + userId, "Status_6,[1;2;3]", "logDate_1," + df.format(localDateTime));
-        Filter filter = Filter.instance(0, 500, true, Filter.AND, m);
+        Filter filter = Filter.instance(0, 600, true, Filter.AND, m);
 
         ChuanyunFindAllBizDTO<Object> chuanyunFindAllResponse = null;
         try {

+ 4 - 4
src/main/resources/application.yml

@@ -50,11 +50,11 @@ spring:
         size: 500
       thread-name-prefix: scheduled-task-
   datasource:
-#    url: jdbc:mysql://10.1.6.49:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
-    url: jdbc:mysql://localhost:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
+    url: jdbc:mysql://10.2.5.35:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
+#    url: jdbc:mysql://localhost:3306/manatee?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
     username: root
-#    password: root
-    password: 123456
+    password: j$%rW-GRu$H#pj%V2M-B
+#    password: 123456
     hikari:
       maximum-pool-size: 128
   jpa:

+ 46 - 0
src/test/java/com/galaxis/manatee/Test/zzx/ProjectTest5.java

@@ -0,0 +1,46 @@
+package com.galaxis.manatee.Test.zzx;
+
+import com.galaxis.manatee.service.LogService;
+import com.galaxis.manatee.service.LogStandardService;
+import com.galaxis.manatee.service.LogUpdateService;
+import lombok.extern.slf4j.Slf4j;
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@Slf4j
+@SpringBootTest
+public class ProjectTest5 {     //标准化工时
+    @Autowired
+    private LogService logService;
+
+    @Autowired
+    private LogStandardService logStandardService;
+
+    @Autowired
+    private LogUpdateService logUpdateService;
+
+    @Test
+    public void downloadLogByUserId(){      //从氚云下载工时
+        logService.downloadLogByUserId("b70e1376-0268-4c20-9338-a70061bdd26a"); //王文荟
+//        logService.downloadLogByUserId("7a62f8f0-6cad-44e6-a628-5b0c8d0649c7"); //夏晓婷
+//        logService.downloadLogByUserId("9bfef9f7-8ea0-41fa-8e89-f26e9a1476bb"); //王玉清
+//        logService.downloadLogByUserId("4927e8a0-985e-4561-907e-d386df1c134a"); //吕洁
+    }
+
+    @Test
+    public void standardSelfWorkHourByUserId(){     //标准化工时
+        logStandardService.standardSelfWorkHourByUserId("b70e1376-0268-4c20-9338-a70061bdd26a");
+//        logStandardService.standardSelfWorkHourByUserId("7a62f8f0-6cad-44e6-a628-5b0c8d0649c7");
+//        logStandardService.standardSelfWorkHourByUserId("9bfef9f7-8ea0-41fa-8e89-f26e9a1476bb");
+//        logStandardService.standardSelfWorkHourByUserId("4927e8a0-985e-4561-907e-d386df1c134a");
+    }
+
+    @Test
+    public void pushOne(){      //上传至氚云
+        logUpdateService.updateChuanyunSelfWorkHourListByUserId("b70e1376-0268-4c20-9338-a70061bdd26a");
+//        logUpdateService.updateChuanyunSelfWorkHourListByUserId("7a62f8f0-6cad-44e6-a628-5b0c8d0649c7");
+//        logUpdateService.updateChuanyunSelfWorkHourListByUserId("9bfef9f7-8ea0-41fa-8e89-f26e9a1476bb");
+//        logUpdateService.updateChuanyunSelfWorkHourListByUserId("4927e8a0-985e-4561-907e-d386df1c134a");
+    }
+}