对于复杂sql cri 抛出反射异常,是无法嵌套使用的原因嘛?
//sql+=" and (status!='"+statusId+"' or (status='"+statusId+"' and location_flag in ('1','2') )) ";
cri.where().and(cri.where().andNotEquals("status", statusId).and("status", "!=", statusId)
.or(cri.where().and("status", "=", statusId).andIn("locationFlag", 1,2)));