mybatis plus in的写法

        if(userIdList!=null&&userIdList.size()>0){
            queryWrapper.lambda().in(QingJia::getQingJiaRenId,userIdList);
        }

 

    @ApiOperation("in")
    @GetMapping("/get")
    public ResponseEntity get() {
        QueryWrapper<QingJia> queryWrapper = new QueryWrapper<>();
        List<Integer> arr = new ArrayList<>();
        arr .add(519);
        queryWrapper.lambda().in(QingJia::getQingJiaRenId,arr);
        val list= qingJiaService.list(queryWrapper);
        return new ResponseEntity(list,HttpStatus.OK);
    }

 

posted @ 2020-06-23 15:31  liliyou  阅读(2105)  评论(0编辑  收藏  举报