mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			918ed0d6d0
			...
			df070b7d78
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					df070b7d78 | ||
| 
						 | 
					83dd98faf3 | ||
| 
						 | 
					37f89f560f | 
@@ -15,7 +15,7 @@ public class SqlUtil {
 | 
			
		||||
    /**
 | 
			
		||||
     * 定义常用的 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>-->
 | 
			
		||||
<!--            <groupId>org.anyline</groupId>-->
 | 
			
		||||
<!--            <artifactId>anyline-data-jdbc-oracle</artifactId>-->
 | 
			
		||||
<!--        <version>${anyline.version}</version>-->
 | 
			
		||||
<!--            <version>${anyline.version}</version>-->
 | 
			
		||||
<!--        </dependency>-->
 | 
			
		||||
 | 
			
		||||
<!--        <dependency>-->
 | 
			
		||||
<!--            <groupId>org.anyline</groupId>-->
 | 
			
		||||
<!--            <artifactId>anyline-data-jdbc-postgresql</artifactId>-->
 | 
			
		||||
<!--        <version>${anyline.version}</version>-->
 | 
			
		||||
<!--            <version>${anyline.version}</version>-->
 | 
			
		||||
<!--        </dependency>-->
 | 
			
		||||
 | 
			
		||||
<!--        <dependency>-->
 | 
			
		||||
<!--            <groupId>org.anyline</groupId>-->
 | 
			
		||||
<!--            <artifactId>anyline-data-jdbc-mssql</artifactId>-->
 | 
			
		||||
<!--        <version>${anyline.version}</version>-->
 | 
			
		||||
<!--            <version>${anyline.version}</version>-->
 | 
			
		||||
<!--        </dependency>-->
 | 
			
		||||
 | 
			
		||||
    </dependencies>
 | 
			
		||||
 
 | 
			
		||||
@@ -275,6 +275,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
 | 
			
		||||
                dept.setAncestors(newAncestors);
 | 
			
		||||
                updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors);
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
            dept.setAncestors(oldDept.getAncestors());
 | 
			
		||||
        }
 | 
			
		||||
        int result = baseMapper.updateById(dept);
 | 
			
		||||
        if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user