Parcourir la source

报告定时任务异常修复

fuyuchuan il y a 1 semaine
Parent
commit
b405b53a29

+ 4 - 4
service-iot/service-iot-api/src/main/java/com/usky/iot/RemoteIotService.java

@@ -8,9 +8,9 @@ import org.springframework.web.bind.annotation.GetMapping;
 @FeignClient(contextId = "remoteIotService", value = "service-iot" , fallbackFactory = RemoteIotFactory.class)
 public interface RemoteIotService {
 
-    @GetMapping("/executeTimedSending")
-    void executeTimedSending();
+    @GetMapping("/executeTimedSendingOld")
+    void executeTimedSendingOld();
 
-    @GetMapping("/reportSubmissionReminder")
-    void reportSubmissionReminder();
+    @GetMapping("/reportSubmissionReminderOld")
+    void reportSubmissionReminderOld();
 }

+ 2 - 2
service-iot/service-iot-api/src/main/java/com/usky/iot/factory/RemoteIotFactory.java

@@ -24,13 +24,13 @@ public class RemoteIotFactory implements FallbackFactory<RemoteIotService>
         return new RemoteIotService()
         {
             @Override
-            public void executeTimedSending() {
+            public void executeTimedSendingOld() {
                 log.error("工作报告定时发送异常:{}", throwable.getMessage());
                 throw new FeignBadRequestException(500,"工作报告定时发送异常"+throwable.getMessage());
             }
 
             @Override
-            public void reportSubmissionReminder() {
+            public void reportSubmissionReminderOld() {
                 log.error("工作报告提交提醒发送异常:{}", throwable.getMessage());
                 throw new FeignBadRequestException(500,"工作报告提交提醒发送异常"+throwable.getMessage());
             }

+ 2 - 2
service-iot/service-iot-biz/src/main/java/com/usky/iot/controller/api/PmTimedSendingApi.java

@@ -21,13 +21,13 @@ public class PmTimedSendingApi implements RemoteIotService {
     private PmWorkReportService pmWorkReportService;
 
     @Override
-    public void executeTimedSending() {
+    public void executeTimedSendingOld() {
         LocalDateTime now = LocalDateTime.now();
         pmWorkReportService.timedSending(now);
     }
 
     @Override
-    public void reportSubmissionReminder() {
+    public void reportSubmissionReminderOld() {
         pmWorkReportService.reportSubmissionReminder();
     }