在业务层判断 如果条件不为空则加上 l例如 String sql=select * from a where 1=1 if(name!=null){ sql+= name=name; }
81,094
社区成员
341,711
社区内容
加载中
试试用AI创作助手写篇文章吧