diff --git a/bonus-common/bonus-common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java b/bonus-common/bonus-common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java index f5e7067..2a4cc56 100644 --- a/bonus-common/bonus-common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java +++ b/bonus-common/bonus-common-security/src/main/java/com/bonus/common/security/config/WebMvcConfig.java @@ -1,6 +1,6 @@ package com.bonus.common.security.config; -import com.bonus.common.security.interceptor.ParamSecureHandler; +//import com.bonus.common.security.interceptor.ParamSecureHandler; import org.springframework.context.annotation.Bean; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @@ -23,11 +23,11 @@ public class WebMvcConfig implements WebMvcConfigurer .addPathPatterns("/**") .excludePathPatterns(EXCLUDEURLS) .order(-10); - //自定义拦截器 - registry.addInterceptor(getParamSecureInterceptor()) - .addPathPatterns("/**") - .excludePathPatterns(EXCLUDEURLS) - .order(-10); +// //自定义拦截器 +// registry.addInterceptor(getParamSecureInterceptor()) +// .addPathPatterns("/**") +// .excludePathPatterns(EXCLUDEURLS) +// .order(-10); } /** @@ -42,9 +42,9 @@ public class WebMvcConfig implements WebMvcConfigurer /** * 自定义参数拦截器 */ - public ParamSecureHandler getParamSecureInterceptor() - { - return new ParamSecureHandler(); - } +// public ParamSecureHandler getParamSecureInterceptor() +// { +// return new ParamSecureHandler(); +// } } diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml index ddb887c..c09d84d 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -21,12 +21,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + - select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time + select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time from sys_dept d - + - + - + - + - + - + - + - + - + insert into sys_dept( dept_id, @@ -112,7 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" sysdate() ) - + update sys_dept @@ -129,7 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where dept_id = #{deptId} - + update sys_dept set ancestors = - + - update sys_dept set status = '0' where dept_id in + update sys_dept set status = '0' where dept_id in #{deptId} - + update sys_dept set del_flag = '2' where dept_id = #{deptId} - \ No newline at end of file + diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml index e199868..e1909e9 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -116,8 +116,8 @@ AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) - - ${params.dataScope} + +