mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-11-12 04:03:44 +08:00
Compare commits
3 Commits
918ed0d6d0
...
df070b7d78
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df070b7d78 | ||
|
|
83dd98faf3 | ||
|
|
37f89f560f |
@@ -15,7 +15,7 @@ public class SqlUtil {
|
|||||||
/**
|
/**
|
||||||
* 定义常用的 sql关键字
|
* 定义常用的 sql关键字
|
||||||
*/
|
*/
|
||||||
public static final String SQL_REGEX = "select |insert |delete |update |drop |count |exec |chr |mid |master |truncate |char |and |declare ";
|
public static String SQL_REGEX = "and |extractvalue|updatexml|sleep|exec |insert |select |delete |update |drop |count |chr |mid |master |truncate |char |declare |or |union |like |+|/*|user()";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序)
|
* 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序)
|
||||||
|
|||||||
@@ -64,19 +64,19 @@
|
|||||||
<!-- <dependency>-->
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>org.anyline</groupId>-->
|
<!-- <groupId>org.anyline</groupId>-->
|
||||||
<!-- <artifactId>anyline-data-jdbc-oracle</artifactId>-->
|
<!-- <artifactId>anyline-data-jdbc-oracle</artifactId>-->
|
||||||
<!-- <version>${anyline.version}</version>-->
|
<!-- <version>${anyline.version}</version>-->
|
||||||
<!-- </dependency>-->
|
<!-- </dependency>-->
|
||||||
|
|
||||||
<!-- <dependency>-->
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>org.anyline</groupId>-->
|
<!-- <groupId>org.anyline</groupId>-->
|
||||||
<!-- <artifactId>anyline-data-jdbc-postgresql</artifactId>-->
|
<!-- <artifactId>anyline-data-jdbc-postgresql</artifactId>-->
|
||||||
<!-- <version>${anyline.version}</version>-->
|
<!-- <version>${anyline.version}</version>-->
|
||||||
<!-- </dependency>-->
|
<!-- </dependency>-->
|
||||||
|
|
||||||
<!-- <dependency>-->
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>org.anyline</groupId>-->
|
<!-- <groupId>org.anyline</groupId>-->
|
||||||
<!-- <artifactId>anyline-data-jdbc-mssql</artifactId>-->
|
<!-- <artifactId>anyline-data-jdbc-mssql</artifactId>-->
|
||||||
<!-- <version>${anyline.version}</version>-->
|
<!-- <version>${anyline.version}</version>-->
|
||||||
<!-- </dependency>-->
|
<!-- </dependency>-->
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -275,6 +275,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
|||||||
dept.setAncestors(newAncestors);
|
dept.setAncestors(newAncestors);
|
||||||
updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors);
|
updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
dept.setAncestors(oldDept.getAncestors());
|
||||||
}
|
}
|
||||||
int result = baseMapper.updateById(dept);
|
int result = baseMapper.updateById(dept);
|
||||||
if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors())
|
if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors())
|
||||||
|
|||||||
Reference in New Issue
Block a user