update 优化 删除无用注释

2.X
疯狂的狮子Li 5 months ago
parent f864eaa996
commit 5b9135f94a

@ -4,7 +4,6 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.helper.DataPermissionHelper;
import org.dromara.common.mybatis.service.SysDataScopeService;
import org.dromara.system.api.model.LoginUser;
/**
@ -14,9 +13,9 @@ import org.dromara.system.api.model.LoginUser;
*
* - {@code user}: {@link LoginUser}
*
* - {@code sdss}: {@link SysDataScopeService}
* - {@code sdss}: SysDataScopeService
* {@link DataPermissionHelper}
* {@link SysDataScopeService}
* SysDataScopeService
* </p>
*
* @author Lion Li
@ -33,29 +32,21 @@ public enum DataScopeType {
/**
*
* 使 SpEL `#{#deptName} IN ( #{@sdss.getRoleCustom( #user.roleId )} )`
* 使 SQL `1 = 0`
*/
CUSTOM("2", " #{#deptName} IN ( #{@sdss.getRoleCustom( #user.roleId )} ) ", " 1 = 0 "),
/**
*
* 使 SpEL `#{#deptName} = #{#user.deptId}`
* 使 SQL `1 = 0`
*/
DEPT("3", " #{#deptName} = #{#user.deptId} ", " 1 = 0 "),
/**
*
* 使 SpEL `#{#deptName} IN ( #{@sdss.getDeptAndChild( #user.deptId )}`
* 使 SQL `1 = 0`
*/
DEPT_AND_CHILD("4", " #{#deptName} IN ( #{@sdss.getDeptAndChild( #user.deptId )} )", " 1 = 0 "),
/**
*
* 使 SpEL `#{#userName} = #{#user.userId}`
* 使 SQL `1 = 0`
*/
SELF("5", " #{#userName} = #{#user.userId} ", " 1 = 0 ");

Loading…
Cancel
Save