数据权限为仅本人时异常解决

pull/78/head
lingdu 4 years ago
parent 3d47ec2e73
commit 4f62d0a36e

@ -19,7 +19,7 @@ import com.ruoyi.system.api.model.LoginUser;
/**
*
*
*
* @author ruoyi
*/
@Aspect
@ -96,7 +96,7 @@ public class DataScopeAspect
/**
*
*
*
* @param joinPoint
* @param user
* @param deptAlias
@ -139,7 +139,7 @@ public class DataScopeAspect
else
{
// 数据权限为仅本人且没有userAlias别名不查询任何数据
sqlString.append(" OR 1=0 ");
sqlString.append(StringUtils.format(" OR {}.dept_id is null ",deptAlias));
}
}
}

Loading…
Cancel
Save