Open dazhaozhao opened 5 days ago
同一个组内,同一个字段,field(..)
只会生效一次,你可以把它合并在一起:
MapUtils.builder()
.field("A").sql("locate($1,'xxxx')>0 and length($1)=5")
.build()
或者:
MapUtils.builder()
.field("A").sql("locate($1,'xxxx')>0 or length($1)=5")
.build()
有简化,咋个关闭简化?
目前尚未提供取消自动化简的功能。你为何要取消呢,可以描述一下你的使用场景 以及 取消的意义吗?
MapUtils.builder().field("A").sql("locate($1,'xxxx')>0").field("A").sql("length($1)=5").build()
结果SQL 只有length(A)=5
有简化,咋个关闭简化?