| | |
| | | import com.xiaopeng.maintenance.dto.XpChargingRecordStopDTO; |
| | | import com.xiaopeng.maintenance.model.vo.XpChargingRecordVO; |
| | | import com.xiaopeng.maintenance.service.IXpChargingRecordService; |
| | | import com.xiaopeng.maintenance.service.XpTaskService; |
| | | import com.xiaopeng.maintenance.vo.ChargingStatusVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Autowired |
| | | private IXpChargingRecordService xpChargingRecordService; |
| | | |
| | | @Autowired |
| | | private XpVehicleClient xpVehicleClient; |
| | | @Autowired |
| | | private XpOperationUserClient xpOperationUserClient; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | @Autowired |
| | | private XpTaskService xpTaskService; |
| | | |
| | | /** |
| | | * 车辆运维-车辆运维-车辆开始充电 |
| | |
| | | |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | | xpChargingRecordService.stopCharging(dto, id); |
| | | //更新任务状态 |
| | | xpTaskService.updateTaskStatus(dto.getTaskId(), 2); |
| | | return R.ok(); |
| | | } |
| | | |