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

上一篇:2021-07-13


下一篇:Cron表达式以及定时任务配置