先贴报错:
18-05-27 04:30:41.538 WARN [http-nio-8080-exec-1] Error@/admin/member-list :
org.nutz.dao.DaoException: !Nutz SQL Error: 'SELECT COUNT(*) FROM user WHERE '
PreparedStatement:
'SELECT COUNT(*) FROM user WHERE '
看,多了WHERE
String cusername = "";
SqlExpressionGroup sg = Cnd.exps(Cnd.expEX("username", "like", cusername)).orEX("email", "like", cusername)
.orEX("nickname", "like", cusername);
Cnd cnd = Cnd.where(sg);
System.out.println(cnd.toString());
打印结果:WHERE