当然可以 select id, name, password from user where 1=1 and id=#{id} and name=#{name} and password=#{password}
可以使用If呀