| | |
| | | import com.xiaopeng.maintenance.utils.UUIDUtil; |
| | | import com.xiaopeng.maintenance.vo.TaskCleanDetailVO; |
| | | import com.xiaopeng.maintenance.vo.TaskDetectionDetailVO; |
| | | import com.xiaopeng.maintenance.vo.TaskReassignDetailVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shardingsphere.transaction.annotation.ShardingSphereTransactionType; |
| | |
| | | task.setStatus(4); |
| | | noticeAdministrator(task);//TODO 需要通知管理员手动处理,考虑再AliPushUtil 中给管理员发送消息 |
| | | } |
| | | |
| | | updateById(task); |
| | | |
| | | if(StringUtils.isNotBlank(task.getHandleUserId())){ |
| | | sendAccidentNotificationAsync(task, vehicle.getPlateNumber(), taskRule.getProcessingTimeLimit()); |
| | | } |
| | |
| | | sendAccidentNotificationAsync(getById(task.getId()), vehicle.getPlateNumber(), (int) Duration.between(LocalDateTime.now(),task.getEndTime()).toMinutes()); |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<TaskVO> reassignTaskPageList(TaskPageListQuery query) { |
| | | return baseMapper.reassignTaskPageList(query); |
| | | } |
| | | |
| | | @Override |
| | | public TaskReassignDetailVO detail(Long taskId) { |
| | | XpTask task = getById(taskId); |
| | | |
| | | // 根据taskId去查询XpTaskHandleDetail, |
| | | // XpTaskHandleDetail taskHandleDetail = xpTaskHandleDetailClient.queryByTaskId(taskId).getData(); |
| | | |
| | | |
| | | // return baseMapper.detail(taskId); |
| | | // todo |
| | | return null; |
| | | } |
| | | |
| | | @Value("${robotaxi.sms.app-id:1476153389173952512}") |
| | | private String smsAppId; |
| | | @Value("${robotaxi.sms.app-push-config-code:ROBOTAXI_VERIFY_CODE_SMS}") |