فهرست منبع

排期任务定时任务

leon 5 سال پیش
والد
کامیت
5407b09cad
1فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 6 3
      src/main/java/com/mokamrp/privates/tast/pangu/SyncFosterwxTask.java

+ 6 - 3
src/main/java/com/mokamrp/privates/tast/pangu/SyncFosterwxTask.java

@@ -63,9 +63,12 @@ public class SyncFosterwxTask {
                     FosterwxTaskScheduleHandle handle = new FosterwxTaskScheduleHandle();
                     handle.setTaskId(fosterwxTaskSchedule.getTaskId());
                     handle.setStationId(fosterwxTaskSchedule.getStationId());
-                    FosterwxTaskSchedule mobileContent = fosterwxTaskScheduleService.getInfo(handle);
-                    fosterwxTaskSchedule.setMobileCount(mobileContent.getMobileCount());
-                    fosterwxTaskSchedule.setComment(mobileContent.getComment());
+                    FosterwxTaskSchedule taskInfo = fosterwxTaskScheduleService.getInfo(handle);
+                    if(taskInfo == null){
+                        continue;
+                    }
+                    fosterwxTaskSchedule.setMobileCount(taskInfo.getMobileCount());
+                    fosterwxTaskSchedule.setComment(taskInfo.getComment());
                 }
                 stringRedisTemplate.opsForHash().put(RedisKey.PanWxfosterTask+stationId,nextDate, JSON.toJSONString(fosterwxTaskScheduleList));
             }