| | |
| | | LambdaQueryWrapper<LampPost> wrapper = Wrappers.lambdaQuery(LampPost.class); |
| | | if(receiveParam.getKeyWord()!=null){ |
| | | wrapper.like(LampPost::getLampId,receiveParam.getKeyWord()) |
| | | .or(lampPostLambdaQueryWrapper -> { |
| | | lampPostLambdaQueryWrapper.like(LampPost::getName,receiveParam.getKeyWord()); |
| | | }); |
| | | .or(lampPostLambdaQueryWrapper -> lampPostLambdaQueryWrapper.like(LampPost::getName,receiveParam.getKeyWord())); |
| | | } |
| | | List<LampPost> lsit= poleService.list(wrapper); |
| | | return ResponseUtil.success(lsit); |
| | | List<LampPost> list= poleService.list(wrapper); |
| | | return ResponseUtil.success(list); |
| | | } |
| | | |
| | | } |