select * from table1 where 1=1 ${if(len(dm)==0,""," and dm='"+dm+"'")} 这样可以使用 但是 我多加一个条件 就不行了 报错 select * from table1 where 1=1 ${if(len(dm)==0,""," and dm='"+dm+"'")} ${if(len(XM)==0,""," and XM='"+XM+"'")} 这种多个 IF 的要怎么个写法? |
最佳回答 |
||||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|