如:.where(m=>m.Id>10) 它是如何转换成select * from table where id>10中的条件
2025-04-25 14:46:53
推荐回答(1个)
回答1:
String where=" 1=1 "; if(ti!=null){ where = where + " AND ti LIKE '%"+ti+"%'"; } if(an!=null){ where = where + " AND an LIKE '%"+an+"%'"; } if(pa!=null){ where = where + " AND NOT pa LIKE '%"+pa+"%'"; } if(pd!=null){ where = "