✨ 调度端运单详情新增车辆实时定位接口

This commit is contained in:
2026-10-25 18:40:55 +08:00
parent c950f13c55
commit d3d2c9f116
@@ -38,6 +38,7 @@ import org.springblade.transport.pojo.vo.AdminHomeVO;
import org.springblade.transport.pojo.vo.AdminVehicleOptionVO;
import org.springblade.transport.pojo.vo.AdminWaybillCardVO;
import org.springblade.transport.pojo.vo.AdminWaybillDetailVO;
import org.springblade.transport.pojo.vo.WaybillLocateVO;
import org.springblade.transport.pojo.vo.WaybillPunchRecordsVO;
import org.springblade.transport.pojo.vo.WaybillTrackVO;
import org.springblade.transport.service.IManageWaybillService;
@@ -170,4 +171,12 @@ public class ManageWaybillController extends BladeController {
return R.data(waybillService.trackVehicle(id, startDate, endDate));
}
@PostMapping("/locate")
@ApiOperationSupport(order = 12)
@Operation(summary = "车辆实时定位", description = "小程序调度端:仅需登录态,按运单绑定车牌查询 LBS 最新定位")
public R<WaybillLocateVO> locate(
@Parameter(description = "运单ID", required = true) @RequestParam Long id) {
return R.data(waybillService.locateVehicle(id));
}
}