| | |
| | | package com.xiaopeng.maintenance.controller; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.xiaopeng.api.feignClient.vehicleConvoy.XpFleetClient; |
| | | import com.xiaopeng.api.feignClient.vehicleConvoy.XpVehicleClient; |
| | | import com.xiaopeng.api.model.maintenance.XpCheckLocation; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | return R.ok(xpCheckLocationService.getById(id)); |
| | | } |
| | | |
| | | @PostMapping("/inner/check-location/listByIds") |
| | | @ApiOperation(value = "根据ID列表批量查询打卡地址", tags = {"内部接口"}) |
| | | public R<List<XpCheckLocation>> listByIds(@RequestBody List<Long> ids) { |
| | | if (CollUtil.isEmpty(ids)) { |
| | | return R.ok(new ArrayList<>()); |
| | | } |
| | | return R.ok(xpCheckLocationService.listByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据ID查询打卡地址", tags = {"运维APP-排班与考勤"}) |
| | | @GetMapping("/api/v1/check-location/queryByUserId") |
| | | public R<XpCheckLocation> queryByUserId() { |