use of com.github.liuweijw.business.admin.domain.QRoleDept in project fw-cloud-framework by liuweijw.
the class RoleServiceImpl method getRoleListByDeptId.
@Override
public List<Role> getRoleListByDeptId(Integer deptId) {
if (null == deptId || deptId <= 0)
return null;
// load role
QRoleDept qRoleDept = QRoleDept.roleDept;
QRole qRole = QRole.role;
List<Role> rList = this.queryFactory.select(qRole).from(qRoleDept, qRole).where(qRoleDept.deptId.eq(deptId)).where(qRoleDept.roleId.eq(qRole.roleId)).fetch();
return rList;
}