| | |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | public ResponseVO<Object> listPole(@RequestParam String keyword) { |
| | | public ResponseVO<Object> listPole(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) { |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | LambdaQueryWrapper<Pole> wrapper = Wrappers.lambdaQuery(Pole.class); |
| | | if (StrUtil.isNotBlank(keyword)) { |
| | | wrapper.like(Pole::getPoleCode, keyword) |
| | |
| | | }); |
| | | } |
| | | List<Pole> list = poleService.list(wrapper); |
| | | return ResponseUtil.success(list); |
| | | return ResponseUtil.successPage(list); |
| | | } |
| | | |
| | | @GetMapping("listPoleAndState") |