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

querywarpper and(** or **)

上一篇:golang 写文件4种方式


下一篇:在vue中使用 Echarts组件化 父子组件--> 动态刷新