Kaynağa Gözat

Merge remote-tracking branch 'origin/main'

zhanghao 1 ay önce
ebeveyn
işleme
21a643e975

+ 4 - 4
pom.xml

@@ -126,14 +126,14 @@
                     </annotationProcessorPaths>
                 </configuration>
             </plugin>
-            <!--<plugin>
+            <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
                 <version>${spring-boot.version}</version>
-                <configuration>
+                <!--<configuration>
                     <mainClass>com.sckj.project.ProjectSynServiceApplication</mainClass>
                     <skip>true</skip>
-                </configuration>
+                </configuration>-->
                 <executions>
                     <execution>
                         <id>repackage</id>
@@ -142,7 +142,7 @@
                         </goals>
                     </execution>
                 </executions>
-            </plugin>-->
+            </plugin>
         </plugins>
     </build>
 

+ 5 - 5
src/main/java/com/sckj/project/task/ProjectTaskController.java

@@ -31,7 +31,7 @@ public class ProjectTaskController {
     /**
      *  服务保障中心
      */
-    @Scheduled(cron = "0 */2 * * * ?")
+    @Scheduled(cron = "0 0/30 * * * ?")
     public void taskService() {
         log.info("服务保障中心定时任务开始执行");
         serviceTaskService.myTask();
@@ -42,7 +42,7 @@ public class ProjectTaskController {
     /**
      *  后勤资源监控
      */
-    @Scheduled(cron = "0 */2 * * * ?")
+    @Scheduled(cron = "0 0/30 * * * ?")
     public void taskLogistics(){
         log.info("后勤资源监控定时任务开始执行");
         logisticsTaskService.myTask();
@@ -53,7 +53,7 @@ public class ProjectTaskController {
     /**
      *  楼宇运行监控
      */
-    @Scheduled(cron = "0 */2 * * * ?")
+    @Scheduled(cron = "0 0/30 * * * ?")
     public void taskBuilding(){
         log.info("楼宇运行监控定时任务开始执行");
         buildingTaskService.myTask();
@@ -63,7 +63,7 @@ public class ProjectTaskController {
     /**
      *  工程现场监控
      */
-    @Scheduled(cron = "0 */2 * * * ?")
+    @Scheduled(cron = "0 0/30 * * * ?")
     public void taskEngineering(){
         log.info("工程现场监控定时任务开始执行");
         engineeringTaskService.myTask();
@@ -73,7 +73,7 @@ public class ProjectTaskController {
     /**
      *  公务用车
      */
-    @Scheduled(cron = "0 */2 * * * ?")
+    @Scheduled(cron = "0 0/30 * * * ?")
     public void taskCar(){
         log.info("公务用车定时任务开始执行");
         carTaskService.myTask();