Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
b0cdb30386
|
|
@ -1,6 +1,6 @@
|
||||||
package com.bonus.common.security.config;
|
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.context.annotation.Bean;
|
||||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||||
|
|
@ -23,11 +23,11 @@ public class WebMvcConfig implements WebMvcConfigurer
|
||||||
.addPathPatterns("/**")
|
.addPathPatterns("/**")
|
||||||
.excludePathPatterns(EXCLUDEURLS)
|
.excludePathPatterns(EXCLUDEURLS)
|
||||||
.order(-10);
|
.order(-10);
|
||||||
//自定义拦截器
|
// //自定义拦截器
|
||||||
registry.addInterceptor(getParamSecureInterceptor())
|
// registry.addInterceptor(getParamSecureInterceptor())
|
||||||
.addPathPatterns("/**")
|
// .addPathPatterns("/**")
|
||||||
.excludePathPatterns(EXCLUDEURLS)
|
// .excludePathPatterns(EXCLUDEURLS)
|
||||||
.order(-10);
|
// .order(-10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -42,9 +42,9 @@ public class WebMvcConfig implements WebMvcConfigurer
|
||||||
/**
|
/**
|
||||||
* 自定义参数拦截器
|
* 自定义参数拦截器
|
||||||
*/
|
*/
|
||||||
public ParamSecureHandler getParamSecureInterceptor()
|
// public ParamSecureHandler getParamSecureInterceptor()
|
||||||
{
|
// {
|
||||||
return new ParamSecureHandler();
|
// return new ParamSecureHandler();
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
</if>
|
</if>
|
||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
|
||||||
order by d.parent_id, d.order_num
|
order by d.parent_id, d.order_num
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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},
|
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId},
|
||||||
ancestors) ))
|
ancestors) ))
|
||||||
</if>
|
</if>
|
||||||
<!-- 数据范围过滤 -->
|
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
|
||||||
${params.dataScope}
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
||||||
|
|
@ -134,7 +134,7 @@
|
||||||
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
||||||
</if>
|
</if>
|
||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
||||||
</if>
|
</if>
|
||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">
|
<select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue