Ver Fonte

Merge remote-tracking branch 'origin/master'

xiahan há 1 ano atrás
pai
commit
d9f348a538

+ 2 - 1
cx-equipment/cx-equipment-server/src/main/java/com/rongwei/bsserver/sys/controller/MaintenanceController.java

@@ -9,6 +9,7 @@ import com.rongwei.rwcommon.base.R;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
@@ -49,7 +50,7 @@ public class MaintenanceController {
         }
 
     }
-
+    @Scheduled(cron = "0 0 22 10/1 * *")
     @PostMapping("batchSavePlansTiming")
     public R batchSavePlansTiming(){
         try {