| | |
| | | import javax.validation.Valid; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 控制器 |
| | |
| | | public R<IPage<RouteinVO>> list(Routein routein, Query query) { |
| | | IPage<Routein> pages = routeinService.page(Condition.getPage(query), Condition.getQueryWrapper(routein)); |
| | | return R.data(RouteinWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * 分页 |
| | | */ |
| | | @GetMapping("/tree") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入routein") |
| | | public R<List<RouteinVO>> tree(Routein routein, Query query) { |
| | | List<RouteinVO> tree = routeinService.tree(); |
| | | return R.data(tree); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | /** |
| | | * 巡逻路线新增 |
| | | * |
| | | * @param routeName |
| | | * @param regionId |
| | | * @param routeInfo |
| | |
| | | |
| | | /** |
| | | * 修改巡逻路线 |
| | | * |
| | | * @param id |
| | | * @param routeName |
| | | * @param regionId |
| | |
| | | |
| | | /** |
| | | * 巡逻路线查询 |
| | | * |
| | | * @param routeName 路线名称 |
| | | * @param response |
| | | * @return |