This commit is contained in:
nyoung 2024-08-31 00:21:25 +08:00
parent e188fbd3a2
commit 5ebb3a8d2a
2 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,9 @@ public class RescueDriverSocket {
return appcontext;
}
public void init(){
}
/**
* 创建连接

View File

@ -435,7 +435,7 @@ public class RescueInfoServiceImpl extends ServiceImpl<RescueInfoMapper, RescueI
rescueInfo.setRescueStatus(null);
}
// 取消订单时删除定时任务
if (rescueInfo.getRescueStatus().equals("0")) {
if (null!=rescueInfo && StringUtils.isNotEmpty(rescueInfo.getRescueStatus()) && rescueInfo.getRescueStatus().equals("0")) {
redissonDelayQueue.removeAllTasks(rescueInfo.getId());
}
return baseMapper.updateById(rescueInfo);