mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-25 06:57:13 +08:00
chore: 优化部分代码格式
This commit is contained in:
@@ -68,8 +68,8 @@ public class DataPermissionDialect extends CommonsDialectImpl {
|
|||||||
* 构建自定义数据权限表达式
|
* 构建自定义数据权限表达式
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept
|
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept where
|
||||||
* where role_id = xxx);
|
* role_id = xxx);
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param dataPermission 数据权限
|
* @param dataPermission 数据权限
|
||||||
@@ -124,8 +124,8 @@ public class DataPermissionDialect extends CommonsDialectImpl {
|
|||||||
* 构建本部门及以下数据权限表达式
|
* 构建本部门及以下数据权限表达式
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id =
|
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id = xxx or
|
||||||
* xxx or find_in_set(xxx, ancestors));
|
* find_in_set(xxx, ancestors));
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param dataPermission 数据权限
|
* @param dataPermission 数据权限
|
||||||
|
@@ -35,7 +35,10 @@ import top.continew.starter.data.core.enums.QueryType;
|
|||||||
import top.continew.starter.data.core.util.SqlInjectionUtils;
|
import top.continew.starter.data.core.util.SqlInjectionUtils;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -35,25 +35,21 @@ public class CrudTreeProperties {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 父 ID 字段名
|
* 父 ID 字段名
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
private String parentIdKey = "parentId";
|
private String parentIdKey = "parentId";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 名称字段名
|
* 名称字段名
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
private String nameKey = "name";
|
private String nameKey = "name";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 排序字段名
|
* 排序字段名
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
private String weightKey = "weight";
|
private String weightKey = "weight";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 子列表字段名
|
* 子列表字段名
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
private String childrenKey = "children";
|
private String childrenKey = "children";
|
||||||
|
|
||||||
|
@@ -117,8 +117,8 @@ public class DefaultDataPermissionHandler implements DataPermissionHandler {
|
|||||||
* 构建本部门及以下数据权限表达式
|
* 构建本部门及以下数据权限表达式
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id =
|
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id = xxx or
|
||||||
* xxx or find_in_set(xxx, ancestors));
|
* find_in_set(xxx, ancestors));
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param dataPermission 数据权限
|
* @param dataPermission 数据权限
|
||||||
@@ -194,8 +194,8 @@ public class DefaultDataPermissionHandler implements DataPermissionHandler {
|
|||||||
* 构建自定义数据权限表达式
|
* 构建自定义数据权限表达式
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept
|
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept where
|
||||||
* where role_id = xxx);
|
* role_id = xxx);
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param dataPermission 数据权限
|
* @param dataPermission 数据权限
|
||||||
|
Reference in New Issue
Block a user