| | |
| | | package com.xiaopeng.operation.controller; |
| | | |
| | | |
| | | import com.xiaopeng.api.feignClient.operation.XpTestPointClient; |
| | | import com.xiaopeng.api.feignClient.vehicleConvoy.XpVehicleClient; |
| | | import com.xiaopeng.api.model.map.XpTestPoint; |
| | | import com.xiaopeng.api.model.operation.XpTestPlan; |
| | | import com.xiaopeng.api.model.operation.XpTestPlanPoint; |
| | | import com.xiaopeng.api.model.operation.XpTestPlanVehicle; |
| | | import com.xiaopeng.api.model.operation.XpTestPoint; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.web.page.PageInfo; |
| | | import com.xiaopeng.operation.dto.XpTestPlanAddDTO; |
| | |
| | | import com.xiaopeng.operation.service.IXpTestPlanPointService; |
| | | import com.xiaopeng.operation.service.IXpTestPlanService; |
| | | import com.xiaopeng.operation.service.IXpTestPlanVehicleService; |
| | | import com.xiaopeng.operation.service.XpTestPointService; |
| | | import com.xiaopeng.operation.vo.XpTestPlanDetailVO; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | private final IXpTestPlanService xpTestPlanService; |
| | | private final XpVehicleClient xpVehicleClient; |
| | | private final IXpTestPlanPointService xpTestPlanPointService; |
| | | private final XpTestPointService xpTestPointService; |
| | | private final XpTestPointClient xpTestPointService; |
| | | private final IXpTestPlanVehicleService xpTestPlanVehicleService; |
| | | |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "新增测试计划", tags = {"管理后台-测试计划"}) |
| | | @PostMapping(value = {"/api/v1/xp-test-plan/add"}) |
| | | public R<?> add(@Valid @RequestBody XpTestPlanAddDTO dto) { |
| | | xpTestPlanService.add(dto); |
| | | return R.ok(); |
| | | public R<Long> add() { |
| | | XpTestPlan plan = new XpTestPlan(); |
| | | xpTestPlanService.save(plan); |
| | | return R.ok(plan.getId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑测试计划", tags = {"管理后台-测试计划"}) |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据id获取测试计划点位 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/v1/xp-test-plan/getXpTestPointById") |
| | | public R<XpTestPoint> getXpTestPointById(@RequestParam Long id){ |
| | | XpTestPoint xpTestPoint = xpTestPointService.getById(id); |
| | | return R.ok(xpTestPoint); |
| | | } |
| | | |
| | | |
| | | /** |