搞定了,打印sql用cnd.toString() cnd.and("validState", "=", 1); cnd.and(Cnd.exps(new Static("enableAmount is null or enableAmount=0")).or("enableAmount","<=",enableAmount)); 表示的sql语句是:validState =1 and (enableAmount is null or enableAmount =0 or enableAmount <=具体值)