我想写成如果username=admin,就跳过,否则等于查询的值。 但是数据库里的username存储格式是:公司\姓名,如fanruan\zhangsan 这种格式。 转义一直有问题 求救 这样也不行: ${if(fine_username="admin","and 1=1", "and replace(u.username,'xincheng\\','')='"+replace(fine_username,'xincheng\\','')+"'")} 这样也不行: ${if(fine_username="admin","and 1=1","and username = 'xincheng'+'\\\\'+"replace(fine_username,'xincheng\\','')" ")}
|
立即参与
最佳回答 |
||||
|
0
|
|
|||
