querywarpper and(** or **)

queryWrapper.eq("fatherCode","1");

queryWrapper.and(Wrapper -> Wrapper.ne("interfaceId",1).or().isNull("isInterface"));

相当于  where fatherCode = 1 and ( interfaceId != 1 or isInterface is null)

 

queryWrapper.eq("fatherCode","1");

queryWrapper.ne("interfaceId",1).or().isNull("isInterface");

相当于  where fatherCode = 1 and interfaceId != 1 or isInterface is null

posted @ 2021-08-02 15:20  朝暮的小知识  阅读(388)  评论(0编辑  收藏  举报