Query<WmsInoutTransportWD> transportWD = QB.create(WmsInoutTransportWD.class);
Condition numcond =QB.or(
QB.ne(WmsInoutTransportWD.Field.num, ""),
QB.ne(WmsInoutTransportWD.Field.numweight, "")
);
transportWD.addCondition(numcond);
//或者
transportWD.addCondition(QB.or(
QB.ne(WmsInoutTransportWD.Field.num, ""),
QB.ne(WmsInoutTransportWD.Field.numweight, "")
));
//此时的transportWD 相当于:
//WmsInoutTransportWD transportWD = new WmsInoutTransportWD ();
//transportWD.getQuary();