| | |
| | | * @param category 附件分类 |
| | | * @return 结果 |
| | | */ |
| | | public int uploadAttachment(Long taskId, MultipartFile file, String category); |
| | | public Long uploadAttachment(Long taskId, MultipartFile file, String category); |
| | | |
| | | /** |
| | | * 从微信mediaId上传任务附件 |
| | |
| | | * @param accessToken 微信AccessToken |
| | | * @param mediaId 微信mediaId |
| | | * @param category 附件分类 |
| | | * @return 结果 |
| | | * @return |
| | | */ |
| | | public int uploadAttachmentFromWechat(Long taskId, String accessToken, String mediaId, String category); |
| | | public Long uploadAttachmentFromWechat(Long taskId, String accessToken, String mediaId, String category); |
| | | |
| | | /** |
| | | * 删除任务附件 |
| | |
| | | */ |
| | | public SysTaskAttachment getAttachmentById(Long attachmentId); |
| | | |
| | | |
| | | public List<SysTaskAttachment> getAttachmentsByTaskId(Long taskId); |
| | | /** |
| | | * 分配车辆给任务 |
| | | * |
| | |
| | | * @return 任务详情 |
| | | */ |
| | | public SysTask getTaskDetail(Long taskId); |
| | | |
| | | /** |
| | | * 检查车辆是否有正在进行中的任务 |
| | | * 正在进行中的任务是指状态不为:PENDING(待处理)、COMPLETED(已完成)、CANCELLED(已取消)的任务 |
| | | * |
| | | * @param vehicleId 车辆ID |
| | | * @return 正在进行中的任务列表 |
| | | */ |
| | | public List<SysTask> checkVehicleActiveTasks(Long vehicleId); |
| | | } |