|
|
@ -142,8 +142,12 @@ public class DataScopeAspect
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(sqlString.toString()))
|
|
|
|
if (StringUtils.isNotBlank(sqlString.toString()))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BaseEntity baseEntity = (BaseEntity) joinPoint.getArgs()[0];
|
|
|
|
Object params = joinPoint.getArgs()[0];
|
|
|
|
baseEntity.getParams().put(DATA_SCOPE, " AND (" + sqlString.substring(4) + ")");
|
|
|
|
if (StringUtils.isNotNull(params) && params instanceof BaseEntity)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
BaseEntity baseEntity = (BaseEntity) params;
|
|
|
|
|
|
|
|
baseEntity.getParams().put(DATA_SCOPE, " AND (" + sqlString.substring(4) + ")");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|