Skip to content

Commit 73b066a

Browse files
committed
chore: 优化部分代码格式
1 parent 2a5ace0 commit 73b066a

File tree

5 files changed

+13
-14
lines changed
  • continew-starter-core/src/main/java/top/continew/starter/core/validation/constraints
  • continew-starter-data
  • continew-starter-extension
    • continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/autoconfigure
    • continew-starter-extension-datapermission/continew-starter-extension-datapermission-mp/src/main/java/top/continew/starter/extension/datapermission/handler

5 files changed

+13
-14
lines changed

continew-starter-core/src/main/java/top/continew/starter/core/validation/constraints/EnumValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* {@code @EnumValue(value = XxxEnum.class, message = "参数值非法")} <br />
3434
* {@code @EnumValue(enumValues = {"F", "M"} ,message = "性别只允许为F或M")}
3535
* </p>
36-
*
36+
*
3737
* @author Jasmine
3838
* @author Charles7c
3939
* @since 2.7.3

continew-starter-data/continew-starter-data-mf/src/main/java/top/continew/starter/data/mf/datapermission/DataPermissionDialect.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public String forSelectByQuery(QueryWrapper queryWrapper) {
6868
* 构建自定义数据权限表达式
6969
*
7070
* <p>
71-
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept
72-
* where role_id = xxx);
71+
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept where
72+
* role_id = xxx);
7373
* </p>
7474
*
7575
* @param dataPermission 数据权限
@@ -124,8 +124,8 @@ private void buildDeptExpression(DataPermission dataPermission,
124124
* 构建本部门及以下数据权限表达式
125125
*
126126
* <p>
127-
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id =
128-
* xxx or find_in_set(xxx, ancestors));
127+
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id = xxx or
128+
* find_in_set(xxx, ancestors));
129129
* </p>
130130
*
131131
* @param dataPermission 数据权限

continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/mp/util/QueryWrapperHelper.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
import top.continew.starter.data.core.util.SqlInjectionUtils;
3636

3737
import java.lang.reflect.Field;
38-
import java.util.*;
38+
import java.util.ArrayList;
39+
import java.util.Collection;
40+
import java.util.Collections;
41+
import java.util.List;
3942
import java.util.function.Consumer;
4043

4144
/**

continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/autoconfigure/CrudTreeProperties.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,21 @@ public class CrudTreeProperties {
3535

3636
/**
3737
* 父 ID 字段名
38-
*
3938
*/
4039
private String parentIdKey = "parentId";
4140

4241
/**
4342
* 名称字段名
44-
*
4543
*/
4644
private String nameKey = "name";
4745

4846
/**
4947
* 排序字段名
50-
*
5148
*/
5249
private String weightKey = "weight";
5350

5451
/**
5552
* 子列表字段名
56-
*
5753
*/
5854
private String childrenKey = "children";
5955

continew-starter-extension/continew-starter-extension-datapermission/continew-starter-extension-datapermission-mp/src/main/java/top/continew/starter/extension/datapermission/handler/DefaultDataPermissionHandler.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ private Expression buildDataScopeFilter(DataPermission dataPermission, Expressio
117117
* 构建本部门及以下数据权限表达式
118118
*
119119
* <p>
120-
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id =
121-
* xxx or find_in_set(xxx, ancestors));
120+
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select id from sys_dept where id = xxx or
121+
* find_in_set(xxx, ancestors));
122122
* </p>
123123
*
124124
* @param dataPermission 数据权限
@@ -194,8 +194,8 @@ private Expression buildSelfExpression(DataPermission dataPermission,
194194
* 构建自定义数据权限表达式
195195
*
196196
* <p>
197-
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept
198-
* where role_id = xxx);
197+
* 处理完后的 SQL 示例:<br /> select t1.* from table as t1 where t1.dept_id in (select dept_id from sys_role_dept where
198+
* role_id = xxx);
199199
* </p>
200200
*
201201
* @param dataPermission 数据权限

0 commit comments

Comments
 (0)