| | |
| | | import com.xiaopeng.api.model.operation.XpElectronicFenceArea; |
| | | import com.xiaopeng.api.query.operation.PointListQuery; |
| | | import com.xiaopeng.api.query.operation.PointPageListListQuery; |
| | | import com.xiaopeng.api.vo.map.QueryTestPoint; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.web.controller.BaseController; |
| | | import com.xiaopeng.common.core.web.page.PageInfo; |
| | |
| | | public R<PageInfo<XpTestPoint>> pageList(@RequestBody PointPageListListQuery query) { |
| | | PageInfo<XpTestPoint> pageList = xpTestPointService.pageList(query); |
| | | return R.ok(pageList); |
| | | } |
| | | |
| | | @PostMapping("/api/v1/testPoint/getByIds") |
| | | public R<List<XpTestPoint>> getByIds(@RequestBody XpPointExportExcelQuery query) { |
| | | List<XpTestPoint> list = xpTestPointService.lambdaQuery().in(XpTestPoint::getId, query.getPointIds()).list(); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 点位详情 |
| | | */ |
| | | @GetMapping("/api/v1/testPoint/queryPointById") |
| | | public R<List<XpTestPoint>> queryByIds(@RequestParam List<Long> ids){ |
| | | List<XpTestPoint> xpTestPoints = xpTestPointService.listByIds(ids); |
| | | @PostMapping("/api/v1/testPoint/queryPointByIds") |
| | | public R<List<XpTestPoint>> queryPointByIds(@RequestBody QueryTestPoint query){ |
| | | List<XpTestPoint> xpTestPoints = xpTestPointService.listByIds(query.getIds()); |
| | | return R.ok(xpTestPoints); |
| | | } |
| | | } |