| | |
| | | private AccidentTaskQuartzScheduler accidentTaskQuartzScheduler; |
| | | |
| | | @ApiOperation(value = "事故类型列表", response = XpErrorType.class, tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/errorTypeList") |
| | | @GetMapping("/maintenance-app/api/v1/task/errorTypeList") |
| | | public R<List<XpErrorType>> errorTypeList() { |
| | | return xpErrorTypeService.errorTypeList(); |
| | | } |
| | | |
| | | @ApiOperation(value = "任务中心列表", response = TaskPageListVO.class, tags = "运维APP-任务中心") |
| | | @PostMapping("/api/v1/task/pageList") |
| | | @PostMapping("/maintenance-app/api/v1/task/pageList") |
| | | public R<PageInfo<TaskPageListVO>> pageList(@RequestBody TaskPageListQuery query) { |
| | | query.setUserId(tokenService.getLoginOperationUser().getXpOperationsUser().getId()); |
| | | PageInfo<TaskPageListVO> pageList = xpTaskService.pageList(query); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "事故任务确认到达", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/confirmArrive") |
| | | @GetMapping("/maintenance-app/api/v1/task/confirmArrive") |
| | | public R confirmArrive(Long id) { |
| | | Long userId = tokenService.getLoginOperationUser().getXpOperationsUser().getId(); |
| | | return xpTaskService.confirmArrive(id, userId); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询车辆不分页列表", tags = "运维APP-任务中心") |
| | | @PostMapping("/api/v1/task/listVehicle") |
| | | @PostMapping("/maintenance-app/api/v1/task/listVehicle") |
| | | public R<List<VehicleListVO>> listVehicle() { |
| | | |
| | | LoginOperationUser loginOperationUser = tokenService.getLoginOperationUser(); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "上传车辆事故", tags = "运维APP-任务中心") |
| | | @PostMapping("/api/v1/task/saveVehicleAccident") |
| | | @PostMapping("/maintenance-app/api/v1/task/saveVehicleAccident") |
| | | public R saveVehicleAccident(@RequestBody SaveVehicleAccidentDto dto) { |
| | | LoginOperationUser loginOperationUser = tokenService.getLoginOperationUser(); |
| | | XpOperationsUser xpOperationsUser = loginOperationUser.getXpOperationsUser(); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆事故任务详情", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/vehicleAccidentDetail") |
| | | @GetMapping("/maintenance-app/api/v1/task/vehicleAccidentDetail") |
| | | public R<TaskAccidentDetailVO> vehicleAccidentDetail(Long id) throws UnsupportedEncodingException { |
| | | return xpTaskService.vehicleAccidentDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆其他常规任务详情", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/vehicleRoutineDetail") |
| | | @GetMapping("/maintenance-app/api/v1/task/vehicleRoutineDetail") |
| | | public R<TaskRoutineDetailVO> vehicleRoutineDetail(Long id) throws UnsupportedEncodingException { |
| | | return xpTaskService.vehicleRoutineDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "上传车辆其他常规任务详情", tags = "运维APP-任务中心") |
| | | @PostMapping("/api/v1/task/saveRoutineDetail") |
| | | @PostMapping("/maintenance-app/api/v1/task/saveRoutineDetail") |
| | | public R saveRoutineDetail(@RequestBody SaveRoutineDetailDto dto) { |
| | | LoginOperationUser loginOperationUser = tokenService.getLoginOperationUser(); |
| | | Long id = loginOperationUser.getId(); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆常规充电任务详情", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/chargingDetail") |
| | | @GetMapping("/maintenance-app/api/v1/task/chargingDetail") |
| | | public R<TaskChargingDetailVO> chargingDetail(Long id) { |
| | | return xpTaskService.chargingDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆常规维修任务详情", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/repairDetail") |
| | | @GetMapping("/maintenance-app/api/v1/task/repairDetail") |
| | | public R<TaskRepairDetailVO> repairDetail(Long id) { |
| | | return xpTaskService.repairDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆常规整备任务详情", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/preparationDetail") |
| | | @GetMapping("/maintenance-app/api/v1/task/preparationDetail") |
| | | public R<TaskPreparationDetailVO> preparationDetail(Long id) { |
| | | return xpTaskService.preparationDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆常规检测任务详情", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/detectionDetail") |
| | | @GetMapping("/maintenance-app/api/v1/task/detectionDetail") |
| | | public R<TaskDetectionDetailVO> detectionDetail(Long id) { |
| | | return xpTaskService.detectionDetail(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "车辆常规洗车任务详情", tags = "运维APP-任务中心") |
| | | @GetMapping("/api/v1/task/cleanDetail") |
| | | @GetMapping("/maintenance-app/api/v1/task/cleanDetail") |
| | | public R<TaskCleanDetailVO> cleanDetail(Long id) throws UnsupportedEncodingException { |
| | | return xpTaskService.cleanDetail(id); |
| | | } |
| | |
| | | @Transactional |
| | | @ShardingSphereTransactionType(TransactionType.BASE) |
| | | @ApiOperation(value = "处理车辆事故", tags = "运维APP-任务中心") |
| | | @PostMapping("/api/v1/task/handleVehicleAccident") |
| | | @PostMapping("/maintenance-app/api/v1/task/handleVehicleAccident") |
| | | public R handleVehicleAccident(@RequestBody HandleVehicleAccidentDto dto) { |
| | | LoginOperationUser loginOperationUser = tokenService.getLoginOperationUser(); |
| | | XpOperationsUser xpOperationsUser = loginOperationUser.getXpOperationsUser(); |