杰表4.0 SQL条件问题
select * from tt_talbe t where 1=1 ${name1==void || name1.equals("")?" 这里是否可以再连接一个宏":""}
如:
select * from tt_talbe t where 1=1 ${name1==void || name1.equals("")? ${name2==void || name2.equals("") ? " and 1=2" :" and name2='"+name2+" ' " } :" and name1=' "+name1"'"}