Search in sources :

Example 1 with QRoleDept

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;
}
Also used : QRole(com.github.liuweijw.business.admin.domain.QRole) Role(com.github.liuweijw.business.admin.domain.Role) QRoleDept(com.github.liuweijw.business.admin.domain.QRoleDept) QRole(com.github.liuweijw.business.admin.domain.QRole)

Aggregations

QRole (com.github.liuweijw.business.admin.domain.QRole)1 QRoleDept (com.github.liuweijw.business.admin.domain.QRoleDept)1 Role (com.github.liuweijw.business.admin.domain.Role)1