Criteria写没有映射字段的条件!可以用sql语句

cc.add(Restrictions.sqlRestriction("branchUuid="+user.getBranchId()));

猜你喜欢

转载自blog.csdn.net/dongyan3595/article/details/69349188