LIVE_YE 2 years ago
parent
commit
fe52dfd099

+ 8 - 0
boman-web-core/src/main/java/com/boman/web/core/controller/TaskController.java

@@ -70,6 +70,14 @@ public class TaskController {
         taskService.upStarTime(starTime);
     }
 
+    /**
+     * 修改starTime
+     */
+    @GetMapping("/upToQianShanStartTime")
+    private void upToQianShanStartTime(String starTime) {
+        taskService.upToQianShanStartTime(starTime);
+    }
+
     @GetMapping("/pphshjNo")
     private void pphshjNo() {
         taskService.pphshjNo();

+ 5 - 1
boman-web-core/src/main/java/com/boman/web/core/service/TaskService.java

@@ -925,7 +925,11 @@ public class TaskService {
     }
 
     public void upStarTime(String starTim) {
-        redisService.setCacheObject("toQianShanStartTime", starTim);
+        redisService.setCacheObject("startTime", starTim);
+    }
+
+    public void upToQianShanStartTime(String starTime) {
+        redisService.setCacheObject("toQianShanStartTime", starTime);
     }
 
     /**