|
@@ -253,6 +253,14 @@ public class SaveDataServiceImpl implements SaveDataService {
|
|
taskNotice.setCreateTime(new Date());
|
|
taskNotice.setCreateTime(new Date());
|
|
taskNotice.setSiteId(siteInfo.getSiteId());
|
|
taskNotice.setSiteId(siteInfo.getSiteId());
|
|
taskNoticeMapper.insert(taskNotice);
|
|
taskNoticeMapper.insert(taskNotice);
|
|
|
|
+ //任务完成更新状态
|
|
|
|
+ TaskResult taskResult = taskResultMapper.queryByTaskid(taskNotice.getTaskid());
|
|
|
|
+ if (taskResult == null){
|
|
|
|
+ log.error("查询站点失败入库失败 无法查询任务结果 站码:{}", taskNotice.getId());
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ taskResult.setStatus(2);
|
|
|
|
+ taskResultMapper.update(taskResult);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("小车任务完成 入库错误:", e);
|
|
log.error("小车任务完成 入库错误:", e);
|
|
}
|
|
}
|