You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
案例如下:
where menu0_.cat_id=? and menu0_.parent_id=? and menu0_.enable=?
如果我的menu0_.parent_id=? 这个id的值为null
因为不是自己写sql,自己写的时候会写menu0_.parent_id is null这样才能查询出符合语句的数据来,
问现在的Nutz.dao有没处理值为空的时候生成的查询sql就是 menu0_.parent_id is null呢
案例如下:
where menu0_.cat_id=? and menu0_.parent_id=? and menu0_.enable=?
如果我的menu0_.parent_id=? 这个id的值为null
因为不是自己写sql,自己写的时候会写menu0_.parent_id is null这样才能查询出符合语句的数据来,
问现在的Nutz.dao有没处理值为空的时候生成的查询sql就是 menu0_.parent_id is null呢
cri.where().andEquals("abc", null); 就会错
需要在andEquals 中添加判断字段值为空的时候生成is null语句
The text was updated successfully, but these errors were encountered: