代码提交
This commit is contained in:
parent
b4e96a5835
commit
ecef33ed81
|
|
@ -45,7 +45,6 @@ public class DataCollectDataController extends BaseController {
|
|||
return getDataTable(list);
|
||||
}
|
||||
@SysLog(title = "数据汇集管理详情", businessType = OperaType.QUERY, module = "数据汇集管理->数据汇集管理", details = "数据汇集管理详情")
|
||||
@RequiresPermissions("data:Collect:share")
|
||||
@GetMapping("/queryById")
|
||||
public AjaxResult queryById(KyDataCollectData kyDataCollectData) {
|
||||
Map map = dataCollectDataService.queryDetailById(kyDataCollectData);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import com.bonus.framework.interceptor.RepeatSubmitInterceptor;
|
|||
|
||||
/**
|
||||
* 通用配置
|
||||
*
|
||||
*
|
||||
* @author bonus
|
||||
*/
|
||||
@Configuration
|
||||
|
|
@ -73,6 +73,7 @@ public class ResourcesConfig implements WebMvcConfigurer
|
|||
.excludePathPatterns("/smartArchives/getRouters")
|
||||
.excludePathPatterns("/smartArchives/session/check")
|
||||
.excludePathPatterns("/smartArchives/sys/config/getConfig")
|
||||
.excludePathPatterns("/smartArchives/data/Collect/queryById")
|
||||
.excludePathPatterns(EXCLUDEURLS)
|
||||
.order(-15);
|
||||
}
|
||||
|
|
@ -98,4 +99,4 @@ public class ResourcesConfig implements WebMvcConfigurer
|
|||
// 返回新的CorsFilter
|
||||
return new CorsFilter(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import com.bonus.framework.security.handle.LogoutSuccessHandlerImpl;
|
|||
|
||||
/**
|
||||
* spring security配置
|
||||
*
|
||||
*
|
||||
* @author bonus
|
||||
*/
|
||||
@EnableMethodSecurity(prePostEnabled = true, securedEnabled = true)
|
||||
|
|
@ -36,7 +36,7 @@ public class SecurityConfig
|
|||
*/
|
||||
@Autowired
|
||||
private UserDetailsService userDetailsService;
|
||||
|
||||
|
||||
/**
|
||||
* 认证失败处理类
|
||||
*/
|
||||
|
|
@ -54,7 +54,7 @@ public class SecurityConfig
|
|||
*/
|
||||
@Autowired
|
||||
private JwtAuthenticationTokenFilter authenticationTokenFilter;
|
||||
|
||||
|
||||
/**
|
||||
* 跨域过滤器
|
||||
*/
|
||||
|
|
@ -112,7 +112,7 @@ public class SecurityConfig
|
|||
.authorizeHttpRequests((requests) -> {
|
||||
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll());
|
||||
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
||||
requests.antMatchers("/login", "/register", "/captchaImage","/sys/config/getConfig","/session/check").permitAll()
|
||||
requests.antMatchers("/login", "/register", "/captchaImage","/sys/config/getConfig","/session/check","/data/Collect/queryById").permitAll()
|
||||
// 静态资源,可匿名访问
|
||||
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
||||
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ public class ReplayAttackInterceptor implements HandlerInterceptor {
|
|||
ignoreUrlPatterns.add("/smartArchives/getRouters");
|
||||
ignoreUrlPatterns.add("/smartArchives/session/check");
|
||||
ignoreUrlPatterns.add("/smartArchives/sys/config/getConfig");
|
||||
ignoreUrlPatterns.add("/smartArchives/data/Collect/queryById");
|
||||
}
|
||||
|
||||
private final RedisCache redisUtil;
|
||||
|
|
@ -301,4 +302,4 @@ public class ReplayAttackInterceptor implements HandlerInterceptor {
|
|||
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
|
||||
// 可选的清理操作
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class DataCollectDataServiceImpl implements DataCollectDataService {
|
|||
JSONObject object = (JSONObject) obj;
|
||||
if (object != null) {
|
||||
String id = object.getString("id");
|
||||
if (id.equals(kyDataCollectData.getJsonId())) {
|
||||
if (id.equals(kyDataCollectData.getJsonId().toString())) {
|
||||
Map<String, Object> map = (Map<String, Object>) object;
|
||||
return map;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue