mybatisPlus 条件构造器
程序员文章站
2024-03-02 13:31:28
...
@PostMapping("plusDemo")
@ApiOperation(value = "plusDemo")
@ApiOperationSupport(order = 29)
public Object plusDemo(){
//User 表对应的实体
QueryWrapper<User> queryWrapper=new QueryWrapper<>();
queryWrapper.eq("表字段","参数值");
queryWrapper.like ("表字段","参数值");
queryWrapper.in ("表字段","参数值集合");
//等....
return null;
}
用了之后,和jpa对比一下,谁是最可爱的dao层小可爱呢......