| | |
| | | package com.xiaopeng.operation.controller; |
| | | |
| | | |
| | | import cn.hutool.core.lang.Snowflake; |
| | | import cn.hutool.core.util.IdUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.xiaopeng.api.dto.operation.CruisePointDto; |
| | |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | |
| | | private final IXpCruisePlanPointService xpCruisePlanPointService; |
| | | private final XpPointService pointService; |
| | | private final XpVehicleClient xpVehicleClient; |
| | | |
| | | @Resource(name = "hutoolSnowflake") |
| | | private Snowflake snowflake; |
| | | |
| | | @ApiOperation(value = "获取巡游计划分页列表", tags = {"管理后台-巡游计划"}) |
| | | @PostMapping(value = {"/api/v1/xp-cruise-plan/pageList"}) |
| | |
| | | newXpCruiseOrder.setMissionId(plan.getCruisePlanId()); |
| | | newXpCruiseOrder.setStatus(1); |
| | | newXpCruiseOrder.setOrderReverse(1); |
| | | newXpCruiseOrder.setXpuTaskId(snowflake.nextId() + ""); |
| | | |
| | | GeoJsonPoint point = dto.getPoint(); |
| | | |
| | | // 起点 |