Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/master'

lqc 5 anni fa
parent
commit
56e6796404

+ 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));
             }